Personal tools

Template:Slurm Variables

From UABgrid Documentation

Revision as of 14:36, 20 October 2016 by (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Variable Description
SLURM_NTASKS Total number of processes in the current job (and SLURM_NPROCS for backwards compatibility)
SLURM_NODELIST List of nodes allocated to the job
SLURM_NNODES Total number of nodes in the job's resource allocation
SLURM_JOB_NAME Set to the value of the --job-name option or the command name when srun is used to create a new job allocation. Not set when srun is used only to create a job step (i.e. within an existing job allocation)
SLURM_JOB_ID Job id of the executing job (and SLURM_JOBID for backwards compatibility)
SLURM_SUBMIT_DIR The directory from which srun was invoked
SLURM_TASKS_PER_NODE Number of tasks to be initiated on each node. Values are comma separated and in the same order as SLURM_NODELIST. If two or more consecutive nodes are to have the same task count, that count is followed by "(x#)" where "#" is the repetition count. For example, "SLURM_TASKS_PER_NODE=2(x3),1" indicates that the first three nodes will each execute three tasks and the fourth node will execute one task