Files
tldr/pages/common/srun.md
T
Kishore B fd10132c81 srun: add page (#18311)
* Add tldr page for scrun command

* Rename scrun.md to srun.md to match actual command

* Update pages/common/srun.md

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* Update pages/common/srun.md

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* Update pages/common/srun.md

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* Update pages/common/srun.md

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* Update pages/common/srun.md

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* fix: update srun.md examples to follow style guide

* Update pages/common/srun.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* fix: update srun.md to be fully lint-compliant

* bot error solved

* bot error cleared

* bot error cleared again

* updated my_program to {{path/to/program}}

---------

Co-authored-by: Harshavardhan <harshath3018@gmail.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-10-03 09:39:54 +05:30

504 B

srun

Run a command under the Slurm workload manager. More information: https://slurm.schedmd.com/srun.html.

  • Run a simple command interactively:

srun hostname

  • Run a job with 4 tasks (CPUs):

srun {{[-n|--ntasks]}} 4 {{path/to/program}}

  • Allocate 8 GB of memory:

srun --mem 8G {{path/to/program}}

  • Run a job on a specific partition:

srun {{[-p|--partition]}} gpu {{path/to/program}}

  • Run a job and save the output to a file:

srun {{path/to/program}} > {{path/to/output}}