Child pages
  • HPC PBSPro script files

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Card
labelPBS Directives

The filenames, paths, email addresses, and some values below are things you will probably need to change. In some cases, values/names have been used to demonstrate possibilities that you could employ (in a slightly different way). Apart from the -l options, no option should appear on multiple lines.

Directive(s)

Description of purpose

#PBS -V

Export environment variables to the batch job

#PBS -c n
#PBS -c s
#PBS -c enabled

No checkpointing to be performed
Checkpointing is to be done on a job at pbs_mom shutdown
Checkpointing is allowed but must be explicitly invoked by a qhold or qchkpt command

#PBS -d /fast/jc123456

Defines the working directory path to be used for the job

#PBS -j oe
#PBS -o /tmp/output.$PBS_O_JOBID

Merge standard output and standard error streams into the named file

#PBS -l pmem=8gb
#PBS -l nodes=1:ppn=2
{{#PBS -l walltime=24:00:00

Request that 4GB of memory be reserved for the batch job
Request that 2 CPU cores on 1 host be reserved for the batch job
Advise the scheduler that this job will have completed within 24 hours

{{#PBS

#PBS -m ae
#PBS -M john.doe@jcu.edu.au
#PBS -M joe.blogg@my.jcu.edu.au

Send mail at batch job abort/exit to the Email address provided

#PBS -N job_name

Assign a name to the batch job

#PBS -l pmem=4gbRequest that 4GB of memory be reserved for V

Export environment variables to the batch job

#PBS -l nodes=1:ppn=2

Request that 2 CPU cores be reserved for the batch job

Card
labelPBS Variables

The variables listed in the table below are commonly used within a PBS script file.

Variable

Description

PBS_JOBNAME

Job name specified by the user

PBS_O_WORKDIR

Working directory from which the job was submitted

PBS_O_HOME

Home directory of user submitting the job

PBS_O_LOGNAME

Name of user submitting the job

PBS_O_SHELL

Script shell

PBS_O_JOBID

Unique PBS job id

PBS_O_HOST

Host on which job script is running

PBS_QUEUE

Name of the job queue

PBS_NODEFILE

File containing line delimited list on nodes allocated to the job

PBS_O_PATH

Path variable used to locate executables within the job script

Note: On multi-core systems, a node (line in PBS_NODEFILE) will identify the hostname and a CPU core.

...