CentOS7 下A10 GPU安装nvdia545驱动和cuda12.3和docker

wget https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda-repo-rhel7-12-3-local-12.3.0_545.23.06-1.x86_64.rpm
sudo rpm -i cuda-repo-rhel7-12-3-local-12.3.0_545.23.06-1.x86_64.rpm
sudo yum clean all
sudo yum -y install cuda-toolkit-12-3

wget -c https://cn.download.nvidia.cn/tesla/535.129.03/nvidia-driver-local-repo-rhel7-535.129.03-1.0-1.x86_64.rpm
sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo rpm -i nvidia-driver-local-repo-rhel7-535.129.03-1.0-1.x86_64.rpm
yum -y install nvidia-driver-latest-dkms

sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine
 
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker

你可能感兴趣的:(linux,运维,gpu算力)