srun
Run a command under the Slurm workload manager. tldr-pages
On Linux
Several platforms
Run a simple command interactively
srun hostnameIdentifyRun a job with 4 tasks (CPUs)
srun --ntasks 4 path/to/programIdentifyAllocate 8 GB of memory
srun --mem 8G path/to/programIdentifyRun a job on a specific partition
srun --partition gpu path/to/programIdentifyRun a job and save the output to a file
srun path/to/program >path/to/outputIdentifyLinux
Create an interactive slurm job or connect to an existing job.
Submit a basic interactive job
srun --pty /bin/bashIdentifySubmit an interactive job with different attributes
srun --ntasks-per-node num_cores --mem-per-cpu memory_MB --pty /bin/bashIdentifyConnect to a worker node with a job running
srun --jobid job_id --pty /bin/bashIdentify