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

From HPC Guide
Jump to navigation Jump to search
Line 1: Line 1:
===slurm commands===
+
===submit commands===
 
'''sbatch''' - submits script
 
'''sbatch''' - submits script
  
Line 12: Line 12:
 
sbatch script.sh
 
sbatch script.sh
 
</pre>
 
</pre>
 +
 +
===info commands===
 +
'''sinfo'''<-- to see all queues (partitions)
 +
'''squeue'''    <-- to see all jobs
 +
'''scontrol show partition'''    <-- to see all partitions
 +
'''scontrol show job <number>'''      <-- to see job's attributes

Revision as of 14:32, 13 March 2023

submit 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

info commands

sinfo<-- to see all queues (partitions) squeue <-- to see all jobs scontrol show partition <-- to see all partitions scontrol show job <number> <-- to see job's attributes