尝试使用kernal 4.10在ubuntu 16.04上安装cuda驱动程序8.0和工具包375,但仍然收到此错误。如何安装nvidia驱动程序和cuda工具包?
> 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
答案 0 :(得分:2)
事实证明,工具包375与ubuntu kernal 4.10并不能很好地协同工作。 (见here)。所以可行的方法是从apt-get安装驱动程序,并从nvidia网站的运行文件安装工具包。
# 1. install nvidia driver from package manager
$ sudo apt install nvidia-375
# 2. install cuda toolkit from nvidia website
# IMPORTANT: no need to install driver here, since it's already installed in the previous step.
$ wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
$ chmod +x cuda_8.0.61_375.26_linux-run
$ mkdir installers
$ sudo ./cuda_8.0.61_375.26_linux-run -extract=`pwd`/installers
$ cd installers
$ sudo ./NVIDIA-Linux-x86_64-375.26.run