Versions Compared

Key

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

...

Column

Table 2. List of options for PBS Pro and Slurm

Option PBS Pro Slurm
Script directive #PBS#SBATCH
Job name -N [name]--job-name=[name]
Queue -q [queue]--partition=[queue]
Accounting -W group_list=[acct]--account=[acct]
Wall clock limit -l walltime=[hh:mm:ss]--time=[hh:mm:ss]
Select -l select=[chunk]--nodes=[chunk]
Node count -l nodes=[count]--nodes=[count]
CPU count-l mpiprocs=[count]
-l ppn=[count]
-l mppwidth=[count]

--ntasks-per-node=[count]

(alternatively use --ntasks option)

OpenMP threads -l ompthreads=[nthr]--cpus-per-task=[nthr]
Memory size-l mem=[MB]--mem=[mem][M|G|T]
--mem-per-cpu=[mem][M|G|T]
Standard output file -o [filename]--output=[filename]
Standard error file -e [filename]--error=[filename]
Combine stdout/stderr -j oe (to stdout)(this is the default behaviour if --output is used without –-error)
Copy environment -V--export=ALL (default)
Copy environment variable -v [var]--export=var
Job dependency -W depend=[state:jobid]--dependency=[state:jobid]
Event notification -m abe--mail-type=[events]
Email address -M [address]--mail-user=[address]
GPU count-l ngpus=[count]--gpus-per-task=[count]


To convert the PBS Pro select statement, use the --nodes and --ntasks-per-node options. For example, listing 2 shows the Slurm equivalent of the PBS Pro directive shown in listing 1.

...