Output environment variables in SLURM#
The SLURM controller will set the following variables in the environment of the batch script.
Documentation for ouput environment variables in slurm
Most used are:
Variable | |
---|---|
SLURM_ARRAY_JOB_ID | Job array's master job ID number. |
SLURM_JOB_ID | The ID of the job allocation. |
SLURM_JOBID | New version for the ID of the job allocation |
SLURM_JOB_DEPENDENCY | Set to value of the --dependency option |
SLURM_JOB_NAME | Name of the job. |
SLURM_JOB_NODELIST | List of nodes allocated to the job |
SLURM_JOB_NUM_NODES | Total number of nodes in the job's resource allocation |
SLURM_JOB_PARTITION | Name of the partition in which the job is running |
SLURM_NODELIST | List of nodes allocated to the job |
SLURM_SUBMIT_DIR | The directory from which sbatch was invoked |