Skip to content

Slurm⚓︎

Tip and tricks about the Slurm workload manager.

When multiple ranks output to stdout (for example when using nvidia-smi with multiple ranks), the output can be labelled with the rank number using the --label flag.

Label output per task

srun -n 4 --gpus-per-task=1 --label nvidia-smi

Slurm configuration⚓︎

Check generic resources (Gres)⚓︎

The following command will show the generic resources (Gres) available on the node:

scontrol show nods | grep Gres | sort -u

This command can be used to check for misconfigures nodes.

Check reservations⚓︎

scontrol show res

To run on a serervations use the --reservation flag:

srun --reservation=<reservation_name> <command>