##### 1st install nividia driver
yum -y install gcc-c++
#install ELR source
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
sudo yum install nvidia-detect
#download NVIDIA driver for GTX1060 https://www.geforce.cn/drivers/results/148530
sudo bash NVIDIA-Linux-x86_64-430.26.run
lsmod | grep nouveau #check conflict between nouveau driver and nvidia driver
sudo echo -e "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/blacklist.conf #forbid the noveau starting
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak #backup image
dracut /boot/initramfs-$(uname -r).img $(uname -r)
sudo systemctl stop gdm.service #shut down x windows for nividia driver install
ctrl+alt+F2
sudo sh NVIDIA-Linux-x86_64-384.59.run #install and reboot later
##### 2nd install CUDA
sudo systemctl stop gdm.service
ctrl+alt+F2
sudo sh cuda_10.1.168_418.67_linux.run
CentOS安装CUDA和cudnn
最新推荐文章于 2025-04-30 10:04:58 发布