mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 14:55:56 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/srun
Normal file
29
tldr/srun
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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