To find the actual UUIDs for MIG (Multi-Instance GPU) devices on NVIDIA GPUs, you can use the nvidia-smi
tool, which provides detailed information about the GPUs and their instances.
In openshift/kubernetes if you are using nvidia-gpu-operator you can run following command:
oc exec -it nvidia-driver-daemonset-415.92.202406041802-0-qlhbx -n nvidia-gpu-operator -- nvidia-smi -L
Output:
GPU 0: NVIDIA A30 (UUID: GPU-db8d0742-5ca9-a6d7-f60e-4940d923665d)
MIG 2g.12gb Device 0: (UUID: MIG-b66b80d4-419d-59f0-b7a2-86dc0bca9401)
MIG 1g.6gb Device 1: (UUID: MIG-2d18d62b-d5cf-5598-854a-d24ee79c0248)
MIG 1g.6gb Device 2: (UUID: MIG-7466d125-d88a-55eb-be2f-6b54dbce27ff)
If you are just looking for device IDs you can use the following command,
oc exec -it nvidia-driver-daemonset-415.92.202406041802-0-qlhbx -n nvidia-gpu-operator -- nvidia-smi -L | grep 'MIG-' | awk -F 'UUID: ' '{print $2}' | awk -F ')' '{print $1}'
Output:
MIG-b66b80d4-419d-59f0-b7a2-86dc0bca9401
MIG-2d18d62b-d5cf-5598-854a-d24ee79c0248
MIG-7466d125-d88a-55eb-be2f-6b54dbce27ff
Top comments (0)