Difference between revisions of "General/Slurm"
From HPC
MSummerbell (talk | contribs) |
MSummerbell (talk | contribs) (→sbatch) |
||
| Line 24: | Line 24: | ||
|} | |} | ||
====sbatch==== | ====sbatch==== | ||
| + | <pre style="background-color: #C8C8C8; color: black; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
| + | [username@login01 ~]$ sbatch jobfile.job | ||
| + | Submitted batch job 289535 | ||
| + | </pre> | ||
===Common Submission Flags=== | ===Common Submission Flags=== | ||
Revision as of 10:34, 2 February 2017
Application Details
- Version: 15.08.8
- Further information: https://slurm.schedmd.com/
- Slurm Rosetta (Useful for converting submission scripts from other formats)
Common Slurm Commands
| Command | Description |
| sbatch | Submits a batch script to SLURM. The batch script may be given to sbatch through a file name on the command line, or if no file name is specified, sbatch will read in a script from standard input. |
| squeue | Used to view job and job step information for jobs managed by SLURM. |
| scancel | Used to signal or cancel jobs, job arrays or job steps. |
| sinfo | Used to view partition and node information for a system running SLURM. |
sbatch
[username@login01 ~]$ sbatch jobfile.job Submitted batch job 289535
Common Submission Flags
| Flag | Description |
| -J / --job-name | Specify a name for the job |
| -N / --nodes | Specifies the number of nodes to be allocated to a job |
| -n / --ntasks | Specifies the allocation of resources e.g. for 1 Compute Node the maximum would be 28 |
| -o / --output | Specifies the name of the output file |
| -e / --error | Specifies the name of the error file |
| -p / --partition | Specifies the specific partition for the job e.g. compute, highmem, gpu |
| --exclusive | Requests exclusive access to nodes preventing other jobs from running |