Difference between revisions of "Submitting a job to a slurm queue"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
===info commands=== | ===info commands=== | ||
− | '''sinfo''' | + | '''sinfo''' -- to see all queues (partitions) |
− | '''squeue''' | + | |
− | '''scontrol show partition''' | + | '''squeue''' -- to see all jobs |
− | '''scontrol show job <number>''' | + | |
+ | '''scontrol show partition''' -- to see all partitions | ||
+ | |||
+ | '''scontrol show job <number>''' -- to see job's attributes |
Revision as of 14:33, 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