I am continually getting the error Error: error setting up CDI devices: unresolvable CDI devices nvidia.com/gpu=all.
Environment:
- Unbuntu 22.04
- Podman version 4.4.1
- NVIDIA Driver Driver Version: 535.129.03 CUDA Version: 12.2
- NVIDIA Container Toolkit CLI version 1.14.3
I have followed these instructions here.
I have checked or did the following:
1. sudo apt-get install -y nvidia-container-toolkit
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
nvidia-container-toolkit is already the newest version (1.14.3-1).
2. nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 2060 (UUID: GPU-2f68f999-7b41-e64a-3709-0c8c4fa756c0)
3. nvidia-ctk --version
NVIDIA Container Toolkit CLI version 1.14.3
commit: 53b24618a542025b108239fe602e66e912b7d6e2
4. sudo nvidia-ctk cdi list
INFO[0000] Found 2 CDI devices
nvidia.com/gpu=0
nvidia.com/gpu=all
5. sudo nvidia-ctk cdi generate --output=/var/run/cdi/nvidia.yaml and sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml followed by sudo chmod a+r /var/run/cdi/nvidia.yaml and sudo chmod a+r /etc/cdi/nvidia.yaml
6. Check user groups, they are: adm cdrom sudo dip video plugdev kvm render lpadmin lxd sambashare vtune
Note: The above points are not in order.
Yet running the command: sudo podman run --rm --device=nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L or podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L, results int the error:
Error: error setting up CDI devices: unresolvable CDI devices nvidia.com/gpu=all
Any advice on how to get past this error would be gratefully received. Thank you.