SLURM uses command-line commands to control jobs and clusters as well as show detailed information about jobs. The table below presents the most frequently used commands on HPCC. A complete list can be found at the SLURM documentation page. Please also see this SLURM cheatsheet.
srun my_program --arg foo
|Run parallel jobs; often used within job scripts.
salloc -c 2 --time=1:00:00
|Request an interactive job on a compute node.
|Used to submit batch jobs to the SLURM scheduler.
squeue -u user123
|View information about jobs - pending or running - in the queue.
|Used to cancel jobs or job steps that are under the control of SLURM.
sacct -o "JobID,AllocCPUS,State"
|Display accounting data for all jobs (and job steps) - running, pending, or ended - stored in the SLURM database.
sprio -j 123456789
|View the factors considered for a job's scheduling priority.
sinfo -p general-long-gpu
|View status information SLURM nodes and partitions.