Zettelkasten

top

Slurm

Slurm commands

squeue
sacct  # https://slurm.schedmd.com/sacct.html
salloc
sattach
sstat
scontrol
sinfo
smap
strigger
sview

sbatch # https://slurm.schedmd.com/sbatch.html
	sbcast
	srun
scancel

Example script

```Bash #!/bin/bash #SBATCH –job-name=some_test_script #SBATCH –comment=This.is.a.test.script #SBATCH –time=00:05:00 #SBATCH –ntasks=4 #SBATCH –mincpus=4 #SBATCH –mem=1G #SBATCH –qos=dev #SBATCH –tmp=1gb #SBATCH –mem-per-cpu=250 #SBATCH –arrayt=1-8

#module purge #module load R

Please see

https://www.youtube.com/watch?v=0Rj_xNuyOyQ

echo $SLURM_NTASKS echo “test” > test{$SLURM_JOB_ID}.out echo “tmp will be removed” > ${TMPDIR}/tmp{$SLURM_JOB_ID}.out

srun ./my_program $SLURM_ARRAY_TASK_ID

do:

- sbatch test.sh

submitted batch job 000000

- squeue -u 000000

JOBID PARTITION NAME USER ST