# declare a name for this job to be sample_job #PBS -N my_parallel_job # request a total of 4 processors for this job (2 nodes and 2 processors per node) #PBS -l nodes=2:ppn=2 # request 4 hours of cpu time #PBS -l cput=0:04:00 # combine PBS standard output and error files #PBS -j oe # mail is sent to you when the job starts and when it terminates or aborts #PBS -m bea # specify your email address #PBS -M John.Smith@dartmouth.edu #change to the directory where you submitted the job cd $PBS_O_WORKDIR #include the full path to the name of your MPI program mpirun -machinefile $PBS_NODEFILE -np 4 /path_to_executable/program_name exit 0