mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 23:41:44 +00:00
22 lines
514 B
Plaintext
22 lines
514 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# srun
|
|
|
|
> Create an interactive slurm job or connect to an existing job.
|
|
> More information: <https://slurm.schedmd.com/srun.html>.
|
|
|
|
- Submit a basic interactive job:
|
|
|
|
`srun --pty /bin/bash`
|
|
|
|
- Submit an interactive job with different attributes:
|
|
|
|
`srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash`
|
|
|
|
- Connect to a worker node with a job running:
|
|
|
|
`srun --jobid={{job_id}} --pty /bin/bash`
|