Slurm options
There is a great number of options for srun and sbatch. Below are the more important ones. For sbatch, it is recommended you specify these in your submission script rather than on the command line.
Option | Description |
|---|---|
| Name the job. |
| Name of the partition to run the job. Defaults to |
| Number of nodes to allocate. Defaults to 1. Do not use more than 1 unless your code can run on multiple nodes (e.g. MPI). |
| Number of parallel tasks (simultaneous instances of the same program) to run. Defaults to 1. Do not use more than 1 unless your code can run on multiple processes (e.g. MPI). |
| Number of CPUs to allocate per task (see |
| Amount of memory to allocate. Unit is If your job uses more memory than allocated with |
| Number of GPUs to allocate in exclusive mode. The GPU will NOT be shared with any other job. Use only when the job needs the whole of a GPU (e.g. all GPU memory). |
| Number of GPU shards to allocate in shared mode. The GPU may be shared with other jobs. Use when the job has a small memory footprint and may simultaneously run along with other jobs. |
| Redirect the standard output to the file specified. Defaults to |
| Redirect the standard error to the file specified. Defaults to |
| Send an email to |
| Type of notification to receive an email: ALL | BEGIN | END | FAIL | REQUEUE |