...
sbatch is used to submit a job script for later execution. The script will typically contain one or more srun commands to launch parallel tasks.
salloc
salloc is used to allocate resources for a job in real time. Typically this is used to allocate resources and spawn a shell. The shell is then used to execute srun commands to launch parallel tasks.
srun Examples
Code Block | ||
---|---|---|
| ||
$ srun -N4 /bin/hostname rb2u4 dn1 rb2u1 rb2u2 |
...