Skip to content

Instantly share code, notes, and snippets.

@afnanenayet
Created April 9, 2019 02:53
Show Gist options
  • Save afnanenayet/88ab9140ea7aeebb48fea832ca970302 to your computer and use it in GitHub Desktop.
Save afnanenayet/88ab9140ea7aeebb48fea832ca970302 to your computer and use it in GitHub Desktop.
Generate a render with PBRT on the Dartmouth Anthill cluster
#!/bin/bash
# The name of the job, can be anything, simply used when displaying the list of running jobs
#$ -N pbrt-killeroos-render
# Combining output/error messages into one file
#$ -j y
# Set memory request:
#$ -l vf=1G
# Set walltime request:
#$ -l h_rt=02:59:59
# set num threads
#$ -pe smp 16
# One needs to tell the queue system to use the current directory as the working directory
# Or else the script may fail as it will execute in your top level home directory /home/username
#$ -cwd
# then you tell it retain all environment variables (as the default is to scrub your environment)
#$ -V
# Load modules
module load gcc/8.1.0
module load cmake/3.9.0
module load zlib/1.2.11
# Now comes the command to be executed
/home/ifs-users/afnan/gfx/pbrt-v3/build/pbrt /home/ifs-users/afnan/gfx/pbrt-v3/scenes/killeroo-simple.pbrt --outfile killeroos_139.exr
exit 0
@afnanenayet
Copy link
Author

Change the paths to PBRT and the scene file based on whatever you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment