1. 安装依赖
yum -y install gcc-c++
yum -y install epel-release
yum -y install --enablerepo=epel dkms
yum -y install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
cp ./blacklist-nouveau.conf /etc/modprobe.d/blacklist-nouveau.conf
dracut --force
2. 安装驱动kmod-nvidia
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum -y install http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum -y install nvidia-detect
nvidia-detect -x
3. 再安装cuda
注意这一步不再安装驱动