Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvidia gpu device acess in containers #287

Open
viprob-ai opened this issue Nov 6, 2024 · 2 comments
Open

nvidia gpu device acess in containers #287

viprob-ai opened this issue Nov 6, 2024 · 2 comments

Comments

@viprob-ai
Copy link

viprob-ai commented Nov 6, 2024

Hi I am facing an issue in setting up the gpu inside container.

OS: ubuntu 22.04
podman versions : 3.4.4
nvidia-ctk version : 1.17

Followed all the instruction as per the below link but still no success :
https://github.com/NVIDIA/nvidia-container-runtime/issues/85#issuecomment-1772741424

  • nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml

  • podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L

Error: stat nvidia.com/gpu=all: no such file or directory

@ericthomasca
Copy link

Did you try running sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml?

@viprob-ai
Copy link
Author

Yes after trying many things with no success finally I upgraded the Podman version to 5.0 and everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants