nvidia-smi -i 0
nvidia-smi -i 0 -mig 1
nvidia-smi mig -lgip
nvidia-smi mig -cgi 19,19,19,19,19,19,19 -C
nvidia-smi mig -lgi
[root@head slurm]# cat /etc/slurm/gres.conf
AutoDetect=nvml
[root@head slurm]# grep Gres /etc/slurm/slurm.conf
GresTypes=gpu
NodeName=gpu1 Procs=48 Gres=gpu:a100-pcie-40gb:7,gpu:1g.5gb:7