安装后不再需要cuda 9包

时间:2017-12-28 23:27:06

标签: cuda ubuntu-17.04

我从local deb但后来apt报告中安装了CUDA 9:

The following packages were automatically installed and are no longer required:
cuda-command-line-tools-9-0 cuda-core-9-0 cuda-cublas-9-0 cuda-cublas-dev-9-0 cuda-cudart-9-0 cuda-cudart-dev-9-0
  cuda-cufft-9-0 cuda-cufft-dev-9-0 cuda-curand-9-0 cuda-curand-dev-9-0 cuda-cusolver-9-0 cuda-cusolver-dev-9-0
  cuda-cusparse-9-0 cuda-cusparse-dev-9-0 cuda-documentation-9-0 cuda-driver-dev-9-0 cuda-libraries-9-0
  cuda-libraries-dev-9-0 cuda-license-9-0 cuda-misc-headers-9-0 cuda-npp-9-0 cuda-npp-dev-9-0 cuda-nvgraph-9-0
  cuda-nvgraph-dev-9-0 cuda-nvml-dev-9-0 cuda-nvrtc-9-0 cuda-nvrtc-dev-9-0 cuda-samples-9-0 cuda-toolkit-9-0
  cuda-visual-tools-9-0 freeglut3 freeglut3-dev libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libx11-xcb-dev
  libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-shape0-dev
  libxcb-sync-dev libxcb-xfixes0-dev libxmu-dev libxmu-headers libxshmfence-dev libxxf86vm-dev linux-headers-4.10.0-38
  linux-headers-4.10.0-38-generic linux-image-4.10.0-38-generic linux-image-extra-4.10.0-38-generic mesa-common-dev
  nvidia-modprobe x11proto-dri2-dev x11proto-gl-dev x11proto-xf86vidmode-dev
Use 'sudo apt autoremove' to remove them.

nvcc --version报告V9.0.176我在/usr/local中有以下内容:

$ ls /usr/local/cuda-*
/usr/local/cuda-8.0:
bin  samples

/usr/local/cuda-9.0:
bin  extras   lib64      libnvvp  nsightee_plugins  nvvm    samples  src      tools
doc  include  libnsight  LICENSE  nvml              README  share    targets  version.txt

我做错了什么?

1 个答案:

答案 0 :(得分:1)

我无法确定为什么CUDA 9.0软件包不再需要"但我继续删除所有旧软件包,然后从我问题中链接的本地deb安装了CUDA 9.1。

sudo apt autoremove
sudo apt --purge remove cuda-repo-ubuntu1704-9-0-local

sudo dpkg -i cuda-repo-ubuntu1704-9-1-local_9.1.85-1_amd64.deb
sudo apt-key add /var/cuda-repo-9-1-local/7fa2af80.pub
sudo apt update
sudo apt install cuda

然后我验证/usr/local/cuda-9.1/bin已在$PATH中,我已将export PATH=$PATH:/usr/local/cuda-9.1/bin添加到~/.bashrc