Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

5 Minute TL;DR

All files that need to be accessible during the job need to be placed in /scratch/ or /shared/.

  1. I want to…

    1. run a single command/script and can wait until it finishes: srun COMMAND
    2. run a script and continue working or disconnect: sbatch MY_SCRIPT.sh
  2. My command/script needs…

    1. more time: Add --time=HH:MM:SS to srun/sbatch
    2. more CPU cores: Add --cpus-per-task=N to request N cores
    3. more RAM: Add --mem=NG to request N gigabytes
    4. a GPU: Add --gres=gpu:rtx_4090:1 to request a single RTX 4090 GPU
    5. interactive access to a node: Add --pty bash to srun/sbatch
  3. I submitted a job and want to check its status: squeue --me

  4. I want to cancel a job: scancel JOBID

  5. 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.