Centos 7 安装nvidia显卡驱动

 

----系统版本:CentOS Linux release 7.7.1908 

----显卡:v100

1、添加ELRepo源

$ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

$rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm

不同操作系统添加源请看此处

 

2、安装显卡检测程序

$ yum install nvidia-detect

3、检测显卡

$ nvidia-detect -v

Probing for supported NVIDIA devices...
[10de:1cb1] NVIDIA Corporation xxxxxxxxx
This device requires the current 430.40  NVIDIA driver kmod-nvidia
WARNING: Xorg log file /var/log/Xorg.0.log does not exist
WARNING: Unable to determine Xorg ABI compatibility
WARNING: The driver for this device does not support the current Xorg version

4、根据检测的版本安装显卡驱动程序

$ yum install nvidia-x11-drv-430.40

版本号要一致

6、重启,运行命令,查看状态

$ nvidia-smi

 

安装完之后 把 tensorflow==1.12这个卸了,然后重新安装了tensorflow-gpu==1.12,就走GPU进行计算了 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值