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

[no merge] Fix for - Failed to initialize NVML: Unknown Error #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/docker/nvidia_docker/setup_nvidia_support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,23 @@ If you have only ``X`` in the output from ``nvidia-smi`` than make sure that the
Take a note that ``nvidia-smi`` command in the docker container is necessary test to see if docker has access to the graphic card, but it doesn't shows any applications that are using it.
You can see on your host if a docker application is using graphic card and how much.


Workaround for Error: ``Failed to initialize NVML: Unknown Error``
---------------------------------------------------------
If you execute this ``docker run --rm --gpus all nvidia/cuda:11.7.1-base-ubuntu22.04 nvidia-smi`` and get this error, try the follwing `fix <https://bbs.archlinux.org/viewtopic.php?id=266915>`_

nvidia-container configuration In the file

``/etc/nvidia-container-runtime/config.toml``

set the parameter

``no-cgroups = false``

After that restart docker and run test container:

``sudo systemctl restart docker``
``sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi``

References
"""""""""""

Expand Down
Loading