Use apt to install the necessary packages:
sudo apt install -y slurm-wlm slurm-wlm-doc
Load file:///usr/share/doc/slurm-wlm/html/configurator.html in a browser (or file://wsl%24/Ubuntu/usr/share/doc/slurm-wlm/html/configurator.html on WSL2), and:
- Set your machine's hostname in
SlurmctldHost
and NodeName
.
- Set
CPUs
as appropriate, and optionally Sockets
, CoresPerSocket
, and ThreadsPerCore
. Use command lscpu
to find what you have.
- Set
RealMemory
to the number of megabytes you want to allocate to Slurm jobs,
- Set
StateSaveLocation
to /var/spool/slurm-llnl
.
- Set
ProctrackType
to linuxproc
because processes are less likely to escape Slurm control on a single machine config.