Slurm environmental variables
Slurm Variable Name | Description | Example Value |
---|---|---|
$SLURM_JOB_ID | Job ID | 123456 |
$SLURM_ARRAY_JOB_ID | Job ID if part of Array job | 123456 |
$SLURM_ARRAY_TASK_ID | Job Index within Array job | 1 |
$SLURM_JOB_NAME | Job Name | MyBatchJob |
$SLURM_SUBMIT_DIR | Submit Directory | /home/ab123456 |
$SLURM_JOB_NODELIST | Nodes assigned to job | ncm[0001,0004,0074-0080] |
$SLURM_SUBMIT_HOST | Submitting host | login18-1.hpc.itc.rwth-aachen.de |
$SLURM_JOB_NUM_NODES | Number of nodes used by job | 4 |
$SLURM_JOB_CPUS_PER_NODE | Number of cores per node | 8,8,8,6 |
$SLURM_TASKS_PER_NODE | Number of tasks per node | 1,1,1,1 |
$SLURM_MEM_PER_CPU | Memory per CPU in MB | 3000 |
$SLURM_NTASKS | Total number of tasks for job | 48 |
$SLURM_NPROCS | Total number of processes for job | 48 |
$TEMPDIR | In that path is a copy of the job script used for the job |