Skip to content

Variables

Please consult the following table for available variables:

Global variables

Variable name Description
$HOME Your home directory, limited to 10 GB.
$SCRATCH High-speed storage for temporary, short-lived data used in computations. Data older than 30 days and job directories older than 7 days are automatically deleted.
$PLG_GROUPS_STORAGE/groupname Long-term storage, for data living for the period of computing grant. Should be used for storing significant amounts of data.

Storage features variables

Variable name Description
$MEMFS Temporary scratch space while using memfs.
$SCRATCH_LOCAL Temporary scratch space while using localfs.

SLURM specific variables

Variable name Description
$SLURM_JOB_ID The SLURM Job ID.
$SLURM_JOBID Deprecated. Same as $SLURM_JOB_ID
$SLURM_SUBMIT_DIR The path of the job submission directory.
$SLURM_CPUS_PER_TASK Number of CPUs per task.
$SLURM_CPUS_ON_NODE Number of CPUs on the allocated node.
$SLURM_JOB_CPUS_PER_NODE Count of processors available to the job on this node.
$SLURM_NTASKS Same as -n, --ntasks. The number of tasks.
$SLURM_NTASKS_PER_NODE Number of tasks requested per node.
$SLURM_NTASKS_PER_GPU Number of tasks requested per GPU.
$SLURM_NPROCS Same as -n, --ntasks. See $SLURM_NTASKS.
$SLURM_NNODES Total number of nodes in the job’s resource allocation.
$SLURM_TASKS_PER_NODE Number of tasks to be initiated on each node.
$SLURM_ARRAY_JOB_ID Job array’s master job ID number.
$SLURM_ARRAY_TASK_ID Job array ID (index) number.
$SLURM_ARRAY_TASK_COUNT Total number of tasks in a job array.

A full list of environment variables for SLURM can be found by visiting the SLURM page on environment variables.