NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver
mattshma opened this issue · 0 comments
mattshma commented
使用:
sudo docker run -v /usr/bin:/usr/local/nvidia/bin -v /usr/lib64/nvidia:/usr/local/nvidia/lib -p 8888:8888 MY_DOCKER_IMAGE
启动 jupyter 镜像后,登录 jupyter terminel,执行命令报错如下:
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
很奇怪,使用sudo nvidia-docker run --rm nvidia/cuda nvidia-smi
能看到结果。在网上查了半天相关问题,重装cuda 及 dirver 后,突然想到,应该使用
nvidia-docker
代替 docker
启动这条命令!!!
虽然自己犯 2 了,不过记录下,以防其他同学在遇到这个问题时走一大圈。