3
edits
Changes
→Reserving a GPU
}
</syntaxhighlight>
Example env vars:
<syntaxhighlight lang="bash">
export SLURM_GPUNODE_PARTITION='compute'
export SLURM_GPUNODE_NUM_GPUS=1
export SLURM_GPUNODE_CPUS_PER_GPU=4
export SLURM_XPUNODE_SHELL='/bin/bash'
</syntaxhighlight>
Integrate the example script into your shell then run `gpunode`.
You can see partition options by running `sinfo`.
You might get an error like this: `groups: cannot find name for group ID 1506`
But things should still run fine. Check with `nvidia-smi`
[[Category:K-Scale]]