在UBUNTU 16.04下安装CUDA10.1+CUDNN7.5(简略版)

安装CUDA

下载链接,按照此流程走。
其中下面第二步添加网络公钥

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<architecture>/7fa2af80.pub

如果找不到对应的网络路径,可以改为本地公钥

sudo apt-key add /var/<cuda version>/7fa2af80.pub

问题1:

[INFO]: ERROR: You appear to be running an X server; please exit X before
[INFO]:        installing.  For further details, please see the section INSTALLING
[INFO]:        THE NVIDIA DRIVER in the README available on the Linux driver
[INFO]:        download page at www.nvidia.com.

解决方案:
1.sudo service lightdm stop(此命令会关闭你的界面,进入命令行)
2.sudo init 3
来源

问题2:

ERROR: Stop Nouveau Kernel Driver 

解决方案:
1.Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
2.Regenerate the kernel initramfs:
sudo update-initramfs -u
来源

安装CUDNN

下载链接,根据此流程

centos下安装问题

1.驱动版本不对,运行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

此处(需翻墙)下载并安装与系统内核匹配的GPU驱动包

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值