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.
安装好驱动后,apt-get upgrade执行了一下。结果重启驱动就不行了。
以为驱动坏了,卸载重装也不顶事。最后找来找去这样搞好了。
sudo apt install nvidia-cuda-toolkit
搞环境很琐碎,是以为记。