srun

Create an interactive slurm job or connect to an existing job. More information: <https://slurm.schedmd.com/srun.html>.

Install

All systems
curl cmd.cat/srun.sh
Debian Debian
apt-get install slurm-client
Ubuntu
apt-get install slurm-client
image/svg+xml Kali Linux
apt-get install slurm-client
Fedora
dnf install slurm
Windows (WSL2)
sudo apt-get update sudo apt-get install slurm-client
OS X
brew install slurm
Raspbian
apt-get install slurm-client

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

© tl;dr; authors and contributors