...
Launching an interactive session within the SLURM system
The salloc
command allocates resources within a queue and opens a shell from which commands using these resources can be launched with the srun
command. This is mainly used for testing. Exiting the shell will cancel the resource allocation. If you want to keep the resource allocation (and job running) and logout from your terminal, you will need to run salloc
within a screen
command (then don't forget to cancel the resource allocation later!).
...
ebuchlin@cluster-head:~$ srun -p flarecast -n 2 hostname
cluster-r730-1
cluster-r730-1
ebuchlin@cluster-head:~$
Again, please use screen
if you plan to logout after launching the job.
srun and salloc have different options for selecting a queue, the desired number of nodes or processes per node, etc.
...