...
The cgroups hook currently loads the gpu information via nvidia-smi
. At this point, it will also note if MIG is enabled on any gpus. If a GPU has MIG enabled, it will look up the GIs, and replace the physical GPU with the GIs it finds.
This means, if a node has a MIG GPU split into 7 GIs, it will replace the 1 physical GPU with the 7 GIs, and ngpus will be 7.
Now in order for the job to be able to use the GI, a CI(s) needs to be created on the nodefor that GI. Follow the nvidia documentation on how to do this.
...