QuestionQ7

VerifiedOperating and managing AI compute platforms (GPUs, CPUs, DPUs)

Users can access every GPU on a node even when their job script requests only one GPU with --gres=gpu:1, causing resource contention and inefficient GPU use.

Which configuration change would restrict users to only the GPUs allocated to their jobs?

Explanation

Setting ConstrainDevices=yes in Slurm's cgroup.conf constrains a job's permitted device files according to its allocated GRES resources. With the task/cgroup plugin configured, this prevents a job allocated one GPU from accessing the node's other GPUs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!