Navin,
You can isolate GPUs per job if you have cgroups set up properly. What OS are you using? Newer OSes will support cgroupsv2 out of the box, but if necessary you can continue using v1, this workflow should be applicable for both.
Add ConstrainDevices=yes to your cgroup.conf
This is what the file looks like at my site:
/etc/slurm/cgroup.conf
CgroupMountpoint="/sys/fs/cgroup"
ConstrainCores=yes
ConstrainRAMSpace=yes
ConstrainSwapSpace=no
ConstrainDevices=yes
You can find the documentation here:
https://slurm.schedmd.com/cgroup.conf.html
If you want to share GPUs you can use CUDA MPS or MIG if your GPU supports it.
Regards,
Jesse Chintanadilok
From: navin srivastava via slurm-users <slurm...@lists.schedmd.com>
Sent: Wednesday, February 12, 2025 10:30
To: Slurm User Community List <slurm...@lists.schedmd.com>
Subject: [EXTERNAL] [slurm-users] avoid using same GPU by the interactive job
hi, facing an issue in my environment where the batch job and the interactive job use the same gpu. Each server has 2 gpu. When 2 batch jobs are running it works fine and use the 2 different gpu's. but if one batch job is running and another
ZjQcmQRYFpfptBannerStart
|
ZjQcmQRYFpfptBannerEnd
--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com