commands.sh

srun

alllinux

Run a command under the Slurm workload manager.

More info →

Options (2)

-n, --ntasksboolean

Run a job with 4 tasks (CPUs)

Example: srun {{[-n|--ntasks]}} 4 {{path/to/program}}
-p, --partitionboolean

Run a job on a specific partition

Example: srun {{[-p|--partition]}} gpu {{path/to/program}}

Examples (5)

Run a simple command interactively

Run a job with 4 tasks (CPUs)

srun [-n|--ntasks] 4 path/to/program

Allocate 8 GB of memory

srun --mem 8G path/to/program

Run a job on a specific partition

srun [-p|--partition] gpu path/to/program

Run a job and save the output to a file

srun path/to/program > path/to/output
made by @shridhargupta | data from tldr-pages