Download User Manual - Support
Transcript
7.2 Submitting A Job echo echo echo echo echo 43 Time is $(date) Directory is $(pwd) PBS job ID is $PBS_JOBID This job runs on the following machines: $(cat $PBS_NODEFILE | uniq) $mpirun_command="mpirun $application $options" #! Run the parallel MPI executable (nodes*ppn) echo Running $mpirun_command eval $mpirun_command In the preceding script, no machine file is needed, since it is automatically built by the workload manager and passed on to the mpirun parallel job launcher utility. The job is given a unique ID and run in parallel on the nodes based on the resource specification. 7.1.5 Links To Other Resources About Job Scripts In Torque And PBS Pro A number of useful links are: • Torque examples: http://bmi.cchmc.org/resources/software/torque/examples • PBS Pro script files: http://www.ccs.tulane.edu/computing/pbs/pbs.phtml 7.2 Submitting A Job 7.2.1 Preliminaries: Loading The Modules Environment To submit a job to the workload management system, the user must ensure that the following environment modules are loaded: • If using Torque with no external scheduler: $ module add shared torque • If using Torque with Maui: $ module add shared torque maui • If using Torque with Moab: $ module add shared torque moab • If using PBS Pro: $ module add shared pbspro Users can pre-load particular environment modules as their default using the “module init*” commands (section 2.3.3). © Bright Computing, Inc.