ubuntu16.04安装nvidia-384

1 、安装nvidia-384

sudo apt-get install nvidia-384-dev
sudo apt-get update
sudo apt-get upgrade

2、查看nouveau,此时一定未禁用

sudo gedit /etc/modprobe.d/blacklist.conf

在文件最后部分插入以下两行内容

blacklist nouveau

options nouveau modeset=0

保存,关闭

更新系统

 sudo update-initramfs -u

重启系统

reboot

查看

lsmod | grep nouveau

3、安装nvidia-410

sudo dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
sudo apt-get update
sudo apt-get install nvidia-410-dev

 sudo apt-get update
 sudo apt-get upgrade

4、安装cuda
百度链接链接: https://pan.baidu.com/s/1AwUfarKEQcnNUXQl41TvPA 提取码: 5k59
sudo apt-get install -y nvidia-384-dev

sudo dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
sudo apt-get update
sudo apt-get install nvidia-410-dev
sudo apt-get install cuda

tar zxvf cudnn-10.0-linux-x64-v7.3.1.20.tgz
sudo cp -a cuda/include/* /usr/local/cuda/include
sudo cp -a cuda/lib64/* /usr/local/cuda/lib64

你可能感兴趣的:(linux)