snippetbashTip
srun — Create an interactive slurm job or connect to an existing job. More information: <https://slurm.sche
Viewed 0 times
createcommandslurmcliconnectjobsruninteractive
linux
Problem
How to use the
srun command: Create an interactive slurm job or connect to an existing job. More information: <https://slurm.schedmd.com/srun.html>.Solution
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/bashSubmit an interactive job with different attributes:
srun --ntasks-per-node {{num_cores}} --mem-per-cpu {{memory_MB}} --pty /bin/bashConnect to a worker node with a job running:
srun --jobid {{job_id}} --pty /bin/bashCode Snippets
Submit a basic interactive job
srun --pty /bin/bashSubmit an interactive job with different attributes
srun --ntasks-per-node {{num_cores}} --mem-per-cpu {{memory_MB}} --pty /bin/bashConnect to a worker node with a job running
srun --jobid {{job_id}} --pty /bin/bashContext
tldr-pages: linux/srun
Revisions (0)
No revisions yet.