Page MenuHomePhabricator

Using Slurm
Updated 1,864 Days AgoPublic

useful slurm commands

commandsfunctionusageexample
squeuelist all jobslist all jobs$ squeue
srun -N -nsubmit a single slurm jobsrun -N #nodes -n #cores$ srun -N 1 -n 1 hostname
[*] sbatchsubmit slurm jobssbatch [script]$ sbatch script.sh
scanceldelete a slurm batch jobscancel [job_id]$ scancel 14157

sbatch example

#!/bin/bash
#SBATCH -n 1                # Number of cores
#SBATCH -N 1                # Number of nodes
#SBATCH -t 02:00:00         # Runtime
#SBATCh --mem=64G           # Memory pool for all cores (see also --mem-per-cpu)
#SBATCH --mail-user=user@domain.edu
#SBATCH --mail-type=ALL
#SBATCH --output=/path/to/output.log

#commands go below

printf "1,000,000 integers"
out=$(srun bin/parallel -c -s 1000000 -e 123)
printf "$out," >> ./output/parallel/parallel.csv && printf " $out s\n"

.
.
.
Last Author
lanle
Last Edited
Mar 20 2019, 2:37 PM

Event Timeline

lanle edited the content of this document. (Show Details)