5 Minute TL;DR
All files that need to be accessible during the job need to be placed in /scratch/ or /shared/.
-
I want to…
- run a single command/script and can wait until it finishes:
srun COMMAND - run a script and continue working or disconnect:
sbatch MY_SCRIPT.sh
- run a single command/script and can wait until it finishes:
-
My command/script needs…
- more time: Add
--time=HH:MM:SStosrun/sbatch - more CPU cores: Add
--cpus-per-task=Nto request N cores - more RAM: Add
--mem=NGto request N gigabytes - a GPU: Add
--gres=gpu:rtx_4090:1to request a single RTX 4090 GPU - interactive access to a node: Add
--pty bashtosrun/sbatch
- more time: Add
-
I submitted a job and want to check its status:
squeue --me -
I want to cancel a job:
scancel JOBID -
I need a special environment (Docker, etc.): Use Apptainer in your job scripts or request a package beeing installed on the cluster.
For more details on any command, use man COMMAND (e.g., man sbatch) or check the Slurm documentation.