【亲测有效】Centos7.9安装NVIDIA gpu驱动1080ti

本文详细记录了在Centos7.9环境下,如何成功安装NVIDIA 1080ti GPU驱动,包括屏蔽nouveau模块、显卡检测、脚本安装与卸载以及Cuda的安装步骤,确保驱动安装无误。
摘要由CSDN通过智能技术生成

硬件和操作系统环境

intel cpu芯片:

[root@centos7 ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
     32  Intel(R) Xeon(R) CPU E5-2667 v2 @ 3.30GHz

显卡硬件情况:

[root@centos7 ~]# lspci | grep -i vga
0e:01.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)
84:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] (rev a1)

操作系统情况:

[root@centos7 ~]# uname -r
3.10.0-1160.59.1.el7.x86_64
[root@centos7 ~]# uname -a
Linux centos7.9 3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed Feb 23 16:47:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

安装nvidia驱动-屏蔽nouveau模块

解决直接安装时报错问题,需要屏蔽 nouveau 模块

 yum erase kmod-nvidia
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum install yum-plugin-fastestmirror
vim /lib/modprobe.d/dist-blacklist.conf

填入:
#blacklist nvidiafb
blacklist nouveau
options nouveau modeset=0

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
dracut /boot/initramfs-$(uname -r).img $(uname -r)
lspci | grep nouveau

没有输出,说明屏蔽默认带有的nouveau成功。

安装nvidia驱动-显卡检测工具

yum install nvidia-detect   nvidia显卡检测
nvidia-detect -v                       检测结果
yum -y install kmod-nvidia     安装显卡驱动 这一步应该不需要 

[root@centos7 ~]# nvidia-detect -v 
Probing for supported NVIDIA devices...
[102b:0532] Matrox Electronics Systems Ltd. MGA G200eW WPCM450
[10de:1b82] NVIDIA Corporation GP104 [GeForce GTX 1070 Ti]
This device requires the current 510.47.03 NVIDIA driver kmod-
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Zda天天爱打卡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值