1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/srun.md
Managor 1f63ed5e22
linux*: refresh old pages part 1 (#16251)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-25 04:34:04 +03:00

422 B

srun

Create an interactive slurm job or connect to an existing job. More information: https://slurm.schedmd.com/srun.html.

  • Submit a basic interactive job:

srun --pty /bin/bash

  • Submit an interactive job with different attributes:

srun --ntasks-per-node {{num_cores}} --mem-per-cpu {{memory_MB}} --pty /bin/bash

  • Connect to a worker node with a job running:

srun --jobid {{job_id}} --pty /bin/bash