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>
This commit is contained in:
Kishore B
2025-10-03 09:39:54 +05:30
committed by GitHub
parent c8fe87c79a
commit fd10132c81
+24
View File
@@ -0,0 +1,24 @@
# 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}}`