[关闭]
@iar 2017-11-04T02:44:40.000000Z 字数 2014 阅读 96

安装CUDA和驱动

Novu


步骤

  1. sudo apt-get purge nvidia-*
  2. sudo apt-get autoremove
  3. sudo reboot
  1. sudo add-apt-repository ppa:graphics-drivers/ppa
  2. sudo apt-get update
  3. sudo apt-get install nvidia-384
  4. sudo reboot

检查一下nvidia-smi
* 下载CUDA 8. 千万记住不要选择driver和opengl!

  1. wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
  2. sudo sh cuda_8.0.61_375.26_linux.run --override --no-opengl-lib

安装cuDNN

  1. CUDNN_TAR_FILE="cudnn-8.0-linux-x64-v6.0.tgz"
  2. sudo apt-get upgrade -y
  3. sudo apt-get install -y opencl-headers build-essential protobuf-compiler \
  4. libprotoc-dev libboost-all-dev libleveldb-dev hdf5-tools libhdf5-serial-dev \
  5. libopencv-core-dev libopencv-highgui-dev libsnappy-dev \
  6. libatlas-base-dev cmake libstdc++6-4.8-dbg libgoogle-glog0v5 libgoogle-glog-dev \
  7. libgflags-dev liblmdb-dev git python-pip gfortran libopencv-dev
  8. sudo apt-get clean
  1. sudo apt install mokutil
  2. sudo mokutil --disable-validation

安装nvidia-docker出问题: no UVM module

大功告成!

参考

什么是linux-hwe

  1. p1@p1-M32CD:~$ ll /usr/src
  2. total 149892
  3. drwxr-xr-x 5 root root 4096 Oct 27 11:52 ./
  4. drwxr-xr-x 11 root root 4096 Aug 1 04:24 ../
  5. drwxr-xr-x 27 root root 4096 Oct 26 10:41 linux-headers-4.10.0-37/
  6. drwxr-xr-x 7 root root 4096 Oct 26 10:41 linux-headers-4.10.0-37-generic/
  7. drwxr-xr-x 30 root root 4096 Oct 27 11:20 linux-hwe-4.10.0/
  8. -rw-r--r-- 1 root root 9541226 Oct 9 23:59 linux-hwe_4.10.0-37.41~16.04.1.diff.gz
  9. -rw-r--r-- 1 root root 5445 Oct 9 23:59 linux-hwe_4.10.0-37.41~16.04.1.dsc
  10. -rw-r--r-- 1 root root 143917000 Jun 29 23:08 linux-hwe_4.10.0.orig.tar.gz
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注