mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
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:
@@ -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}}`
|
||||
Reference in New Issue
Block a user