2.5 Configuring MIG
MIG strategies, profiles, creating instances and targeting one MIG device.
Key points
MIG Manager is the GPU Operator component that applies MIG layouts. It watches the node label and reconfigures the GPUs.
What NVIDIA says (2)
“nvidia.com/mig.config=all-1g.10gb”
“GPU Operator deploys MIG Manager to manage MIG configuration on nodes in your Kubernetes cluster.”
The strategy tells the Operator how MIG devices are exposed. You choose it at install time, before you configure MIG.
What NVIDIA says (2)
“single : MIG mode is enabled on all GPUs on a node.”
“mixed : MIG mode is not enabled on all GPUs on a node.”
A GPU instance profile is a fixed slice size, such as 1g.5gb. -lgip lists profiles with free and total counts.
What NVIDIA says (1)
“$ nvidia-smi mig -lgip”
-cgi creates GPU instances. You can name a profile by ID (9) or by name (3g.20gb). -C also creates the matching compute instances.
What NVIDIA says (2)
“sudo nvidia-smi mig -cgi 9,3g.20gb -C”
“Successfully created GPU instance ID 2 on GPU 0 using profile MIG 3g.20gb (ID 9)”
Each MIG device has its own UUID. CUDA_VISIBLE_DEVICES limits an app to the devices you name.
What NVIDIA says (2)
“$ nvidia-smi -L GPU 0: A100-SXM4-40GB”
“$ CUDA_VISIBLE_DEVICES=MIG-c7384736-a75d-5afc-978f-d2f1294409fd ./BlackScholes &”
Key terms
- Multi-Instance GPU: A feature that splits one GPU into isolated GPU instances, each with its own memory and compute.
Try it
Sample question
With the GPU Operator, how do you apply the MIG profile all-1g.10gb to a node?
Show the answer
Answer: Set the node label nvidia.com/mig.config=all-1g.10gb. MIG Manager applies it.
MIG Manager is the GPU Operator component that applies MIG layouts. It watches the node label and reconfigures the GPUs.
What NVIDIA says (2)
“nvidia.com/mig.config=all-1g.10gb”
“GPU Operator deploys MIG Manager to manage MIG configuration on nodes in your Kubernetes cluster.”
Practice 2.5 (5 questions) Full Administration guide
← 2.4 Administering Kubernetes for GPUs · 3.1 Inference on Kubernetes →