从 ELRepo 源中安装GPU驱动
1、添加ELRepo源
Import the public key:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
To install ELRepo for RHEL-8 or CentOS-8:
yum install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm
To install ELRepo for RHEL-7 or CentOS-7:
yum install https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm
To install ELRepo for RHEL-6 or CentOS-6:
yum install https://www.elrepo.org/elrepo-release-6-9.el6.elrepo.noarch.rpm
2、安装GPU检查程序
yum -y install nvidia-detect
3、检测GPU型号
nvidia-detect
4、安装GPU驱动
yum -y install kmod-nvidia
5、重启系统
reboot
6、查看GPU信息
nvidia-smi