mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
fd10132c81
* 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>
504 B
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}}