服务器安装小结
CentOS7服务器安装GPU显卡驱动和CUDA简单方法
1、https://blog.csdn.net/guohaosun/article/details/82749029
M60按上述方法安装失败(其他版本显卡成功过)
可能是缺少kernel: yum install gcc kernel-devel kernel-headers
2、手动安装
(1)驱动下载安装:https://www.nvidia.cn/Download/index.aspx?lang=cn, sh ***.run安装, nvidia-smi查看信息
(2)cuda,cudnn下载:https://developer.nvidia.com/cuda-toolkit-archive) (https://developer.nvidia.com/rdp/cudnn-archive)
安装cuda: sh cuda*.run driver samples选no,其选项他默认
安装cudnn:先解 tar zxvf *.tgz 拷贝 cp include/* /usr/local/cuda/include
cp lib64/* /usr/local/cuda/lib64
docker 及 nvidia-docker 的安装
(1)安装docker
删除旧docker
yum list installed | grep docker
yum remove -y docker-ce.x86_64 0:18.03.0.ce-1.el7.centos
yum install -y docker
systemctl start docker
systemctl status docker
(2) 安装nvidia-docker
wget https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker-1.0.1-1.x86_64.rpm
rpm -ivh nvidia-docker-1.0.1-1.x86_64.rpm
systemctl restart nvidia-docker
systemctl status nvidia-docker.service
https://blog.csdn.net/chenfeidi1/article/details/80866944
另附
1. 卸载cuda-toolkit
# cd /usr/local/cuda-8.0/bin/
# ./uninstall_***
2. 卸载显卡驱动
假如安装的是NVIDIA-Linux-x86-340.96.run
则运行如下命令:sh NVIDIA-Linux-x86-270.41.19.run --uninstall