Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • SLURM_JOBID
  • SLURM_NODELIST
  • SLURM_SUBMIT_DIR

Tip

For a complete list of variables defined by slurm, you submit a job which runs

No Format
env | grep SLURM


Job arrays

Job arrays offer a mechanism for submitting and managing collections of similar jobs quickly and easily. The array index values are specified using the --array or -a option of the sbatch command. The option argument can be specific array index values, a range of index values, and an optional step size as shown in the examples below. Jobs which are part of a job array will have the environment variable SLURM_ARRAY_TASK_ID set to its array index value.

...