打開以下網頁:https://developer.nvidia.com/cuda-toolkit
找到所需版本,輸入以下命令:
sudo curl -L -o /etc/yum.repos.d/cuda-rhel7.repo http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
sudo yum clean all
sudo yum -y install nvidia-driver-latest-dkms cuda
sudo yum -y install cuda-drivers
一般系統裏面沒有 yum-config-manager, 本文采取了其他替換方案,具體請見命令行!