Difference between revisions of "Submitting a job to a slurm queue"

From HPC Guide
Jump to navigation Jump to search
(Created page with "===slurm commands=== sbatch - submits script salloc - submit interactive job - allocates what it needs, but will not start to work on the node/s srun - submits interactive j...")
 
Line 1: Line 1:
 
===slurm commands===
 
===slurm commands===
sbatch - submits script
+
'''sbatch''' - submits script
  
salloc - submit interactive job - allocates what it needs, but will not start to work on the node/s
+
'''salloc''' - submit interactive job - allocates what it needs, but will not start to work on the node/s
  
srun - submits interactive job w mpi ("job step")
+
'''srun''' - submits interactive job w mpi ("job step")
  
sattach - connect stdin/out/err for an existing job (or job step)
+
'''sattach''' - connect stdin/out/err for an existing job (or job step)
  
 
So for example, may submit a job with command:
 
So for example, may submit a job with command:

Revision as of 14:28, 13 March 2023

slurm commands

sbatch - submits script

salloc - submit interactive job - allocates what it needs, but will not start to work on the node/s

srun - submits interactive job w mpi ("job step")

sattach - connect stdin/out/err for an existing job (or job step)

So for example, may submit a job with command:

sbatch script.sh