赞
踩
安装GPU地址:CUDA Toolkit 11.8 Downloads | NVIDIA Developer
1. wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-rhel7-11-8-local-11.8.0_520.61.05-1.x86_64.rpm
2. sudo rpm -i cuda-repo-rhel7-11-8-local-11.8.0_520.61.05-1.x86_64.rpm
3. sudo yum clean all
4. sudo yum -y install nvidia-driver-latest-dkms
5. sudo yum -y install cuda
如果安装步骤4时,报错,则先运行如下命令,在运行步骤4和步骤5
sudo yum install epel-release
通过 nvidia-smi 命令查看GPU信息出现如下问题
解决方案:
uname -r
rpm -qa | grep kernel
yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
查看内核 yum list kernel
更新内核 yum update kernel -y
重启(必须重启)reboot
查看内核 uname -r
重复执行yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
重启(重启后仍出现如此问题,再次重启,多次重启后就可以了)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。