How to make a docker image with Anaconda and be able to use GPU?

时间秒杀一切 提交于 2021-01-29 19:37:40

问题


I have a GPU, and CUDA driver installed. I am making a docker image using the official anaconda image available at docker hub. When I use the command nvidia-smi inside the docker image, it shows there is no CUDA DRIVER installed.

How should I make a docker image to be able to use Anaconda with GPU?


回答1:


Docker 19.03 has native support for NVIDIA GPUs. Install nvidia-container-runtime and use the docker run --gpus all flag with your Anaconda container. Remember, that you can run Windows containers with GPU acceleration on a Windows host using Docker 19.03, but not a Linux container.

Source: GPU Acceleration in Windows Containers



来源:https://stackoverflow.com/questions/60333690/how-to-make-a-docker-image-with-anaconda-and-be-able-to-use-gpu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!