Difference between revisions of "General/Slurm"

From HPC
Jump to: navigation , search
Line 23: Line 23:
 
|-
 
|-
 
|}
 
|}
 +
====sbatch====
 +
 
===Common Submission Flags===
 
===Common Submission Flags===
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 10:31, 2 February 2017

Application Details


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

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