From fd10132c81343efef9f143daf67e8dc8314f3544 Mon Sep 17 00:00:00 2001 From: Kishore B <142733678+kishore-144@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:39:54 +0530 Subject: [PATCH] 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 * Update pages/common/srun.md Co-authored-by: Harshavardhan * Update pages/common/srun.md Co-authored-by: Harshavardhan * Update pages/common/srun.md Co-authored-by: Harshavardhan * Update pages/common/srun.md Co-authored-by: Harshavardhan * 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 Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/srun.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/srun.md diff --git a/pages/common/srun.md b/pages/common/srun.md new file mode 100644 index 0000000000..5bce3d1874 --- /dev/null +++ b/pages/common/srun.md @@ -0,0 +1,24 @@ +# srun + +> Run a command under the Slurm workload manager. +> More information: . + +- 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}}`