在 Kubuntu 15.10 x64 上安装 CUDA 7.5

在 Kubuntu 15.10 x64 上安装 CUDA 7.5

我在使用两张 Nvidia GTX 690 卡的 Kubuntu 15.10 x64 上安装时遇到了问题。

我试过:

# Install Nvidia drivers
sudo apt-get purge nvidia*
sudo apt-get update
sudo apt-get install nvidia-340 nvidia-prime # http://askubuntu.com/a/698736/44876

重启

我检查了 Nvidia 驱动程序是否正确安装:

f@f-Aurora-R4:~$ nvidia-smi
Mon Nov 16 11:07:40 2015     
+------------------------------------------------------+                     
| NVIDIA-SMI 340.93     Driver Version: 340.93      |                    
|-------------------------------+----------------------+----------------------+
| GPU  Name     Persistence-M| Bus-Id       Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|       Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 690  Off  | 0000:04:00.0     N/A |               N/A |
| 30%   38C P8  N/A /  N/A |    8MiB /  2047MiB |   N/A     Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 690  Off  | 0000:05:00.0     N/A |               N/A |
| 35%   49C P0  N/A /  N/A |    101MiB /  2047MiB |     N/A     Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes:                                            GPU Memory |
|  GPU      PID  Process name                                   Usage   |
|=============================================================================|
|   0           Not Supported                                               |
|   1           Not Supported                                               |
+-----------------------------------------------------------------------------+

由于 Nvidia 驱动程序似乎已正确安装,因此我继续安装 Nvidia CUDA 工具包:

sudo apt-get install nvidia-cuda-toolkit 

然后我重新启动并尝试安装 CUDA:

# Install cuda
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1504/x86_64/cuda-repo-ubuntu1504_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1504_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install cuda 

重启

这导致 Nvidia 驱动程序不再工作(启动时不再有 GUI)。我做错了什么?

Kubuntu 安装是全新的,我只sudo apt-get update;sudo apt-get upgrade在其上进行过安装。

相关内容