Skip to content

Commit

Permalink
Update setup_nvidia_support.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
joseriyancyriac authored Apr 22, 2024
1 parent bfe94dd commit cb55c52
Showing 1 changed file with 17 additions and 1 deletion.
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

0 comments on commit cb55c52

Please sign in to comment.