srun
Verified for current stable LTS
Srun Commands
Srun command syntax with verified terminal examples.
Commands
8 commands for Srun
srun Operations
Srun Command: Allocate Memory For Job
srun --mem 8G <path/to/program> srun Operations
Srun Command: Connect To Worker Node With Job
srun --jobid <job_id> --pty /bin/bash srun Operations
Srun Command: Run Interactive Command
srun hostname srun Operations
Srun Command: Run Job And Save Output To File
srun <path/to/program> > <path/to/output> srun Operations
Srun Command: Run Job On Specific Partition
srun -p gpu <path/to/program> srun Operations
Srun Command: Run Job With Tasks
srun -n 4 <path/to/program> srun Operations
Srun Command: Submit Basic Interactive Job
srun --pty /bin/bash srun Operations
Srun Command: Submit Interactive Job With Attributes
srun --ntasks-per-node <num_cores> --mem-per-cpu <memory_MB> --pty /bin/bash Suggest a Srun Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Srun workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.