Skip to content

Environment Variables

The following is a list of correspondence between Torque and SLURM environment variables:

Description Torque SLURM Variable
The ID of the job PBS_JOBID SLURM_JOB_ID
Job array ID (index) number PBS_ARRAYID SLURM_ARRAY_TASK_ID
Directory where the
submission command
was executed
PBS_O_WORKDIR SLURM_SUBMIT_DIR
Name of the job PBS_JOBNAME SLURM_JOB_NAME
List of nodes allocated
to the job
PBS_NODEFILE SLURM_JOB_NODELIST
Number of Processors
Per Node requeste
PBS_NUM_PPN SLURM_JOB_CPUS_PER_NODE
Total number of cores requested PBS_NP SLURM_NTASKS *
SLURM_CPUS_PER_TASK
Total number of nodes requested PBS_NUM_NODES SLURM_NTASKS
Current Host of PBS job PBS_O_HOST SLURM_SUBMIT_HOST