101: Interactive jobs with Slurm
You can use salloc
to allocate resources in real-time to run an interactive batch job. Typically this is used to allocate resources and spawn a shell. The shell is then used to execute srun
commands to launch parallel tasks. Interactive job is useful for tasks including data exploration, development, or (with X11 forwarding) visualization activities. The maximum walltime depends on the QoS you have used.
For worker nodes with CPU and GPU:
For worker nodes with CPU-only:
After connection, you will get the message like
and with squeue -u your_user_name
, you will see
To run, you can use srun
, e.g.
To exit the interactive mode, you can use the command exit
Last updated