本帖最后由 18755080270 于 2020-12-2 01:42 编辑
【8269CY+2080TI】安装Centos7+CUDA9.0+CUDNN9.0 深度学习环境搭建(三) 作者:小白
前言 好久没有更新教程了,为了生活而忙于工作不能自拔。最近给客户调试了一台深度学习主机,记录下遇到的问题和解决办法,希望可以帮助到大家!
电脑主机配置 CPU:8269CY 2.5Ghz 26C 52T *2 主板:超微X11DAi-N 内存:三星 2933 RECC 16G *8 硬盘:三星 870 QVO 1T 企业级固态 显卡:DELL RTX2080TI 11G *2 电源:长城巨龙 1250W
安装教程即将开始。。。
安装CUDA9.0 1.安装CUDA9.0
注意:之前忘记保存安装操作的步骤,这里演示使用11.1的安装脚本演示
[root@localhost Downloads]# sudo rpm -i cuda-repo-rhel7-11-1-local-11.1.0_455.23.05-1.x86_64.rpm
warning: cuda-repo-rhel7-11-1-local-11.1.0_455.23.05-1.x86_64.rpm: Header V3 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY
[root@localhost Downloads]# sudo yum clean all
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 143279.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 30 M RSS (458 MB VSZ)
Started: Fri Nov 20 14:49:46 2020 - 00:59 ago
State : Sleeping, pid: 143279
Cleaning repos: base cuda-10-2-local-10.2.89-440.33.01 cuda-rhel7-11-1-local
: elrepo extras updates
Cleaning up list of fastest mirrors
[root@localhost Downloads]# sudo yum install cuda
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
* base: mirrors.163.com
* elrepo: mirror-hk.koddos.net
* extras: mirrors.huaweicloud.com
* updates: mirrors.163.com
base | 3.6 kB 00:00
cuda-10-2-local-10.2.89-440.33.01 | 2.5 kB 00:00
cuda-rhel7-11-1-local | 2.5 kB 00:00
elrepo | 2.9 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
(1/7): cuda-10-2-local-10.2.89-440.33.01/primary_db | 46 kB 00:00
(2/7): cuda-rhel7-11-1-local/primary_db | 52 kB 00:00
(3/7): extras/7/x86_64/primary_db | 222 kB 00:00
(4/7): base/7/x86_64/group_gz | 153 kB 00:00
(5/7): base/7/x86_64/primary_db | 6.1 MB 00:00
(6/7): elrepo/primary_db | 481 kB 00:01
(7/7): updates/7/x86_64/primary_db | 3.7 MB 00:01
Resolving Dependencies
--> Running transaction check
---> Package cuda.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-11-1 >= 11.1.0 for package: cuda-11.1.0-1.x86_64
--> Running transaction check
---> Package cuda-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-toolkit-11-1 >= 11.1.0 for package: cuda-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-runtime-11-1 >= 11.1.0 for package: cuda-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-demo-suite-11-1 >= 11.1.74 for package: cuda-11-1-11.1.0-1.x86_64
--> Running transaction check
---> Package cuda-demo-suite-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-runtime-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-libraries-11-1 >= 11.1.0 for package: cuda-runtime-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-drivers >= 455.23.05 for package: cuda-runtime-11-1-11.1.0-1.x86_64
---> Package cuda-toolkit-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-tools-11-1 >= 11.1.0 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-samples-11-1 >= 11.1.74 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvml-devel-11-1 >= 11.1.74 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-libraries-devel-11-1 >= 11.1.0 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-documentation-11-1 >= 11.1.74 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-compiler-11-1 >= 11.1.0 for package: cuda-toolkit-11-1-11.1.0-1.x86_64
--> Running transaction check
---> Package cuda-compiler-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-nvprune-11-1 >= 11.1.74 for package: cuda-compiler-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvcc-11-1 >= 11.1.74 for package: cuda-compiler-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-cuobjdump-11-1 >= 11.1.74 for package: cuda-compiler-11-1-11.1.0-1.x86_64
---> Package cuda-documentation-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-drivers.x86_64 0:455.23.05-1 will be installed
--> Processing Dependency: nvidia-xconfig >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-settings >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-persistenced >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-modprobe >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-libXNVCtrl-devel >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-libXNVCtrl >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-kmod >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-libs >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-devel >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-cuda-libs >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-cuda >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-NvFBCOpenGL >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver-NVML >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
--> Processing Dependency: nvidia-driver >= 3:455.23.05 for package: cuda-drivers-455.23.05-1.x86_64
---> Package cuda-libraries-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: libnvjpeg-11-1 >= 11.2.0.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libnpp-11-1 >= 11.1.1.269 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcusparse-11-1 >= 11.2.0.275 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcusolver-11-1 >= 11.0.0.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcurand-11-1 >= 10.2.2.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcufft-11-1 >= 10.3.0.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcublas-11-1 >= 11.2.1.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvrtc-11-1 >= 11.1.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-cudart-11-1 >= 11.1.74 for package: cuda-libraries-11-1-11.1.0-1.x86_64
---> Package cuda-libraries-devel-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: libnvjpeg-devel-11-1 >= 11.2.0.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libnpp-devel-11-1 >= 11.1.1.269 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcusparse-devel-11-1 >= 11.2.0.275 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcusolver-devel-11-1 >= 11.0.0.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcurand-devel-11-1 >= 10.2.2.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcufft-devel-11-1 >= 10.3.0.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: libcublas-devel-11-1 >= 11.2.1.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvrtc-devel-11-1 >= 11.1.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-driver-devel-11-1 >= 11.1.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-cudart-devel-11-1 >= 11.1.74 for package: cuda-libraries-devel-11-1-11.1.0-1.x86_64
---> Package cuda-nvml-devel-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-samples-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-tools-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-visual-tools-11-1 >= 11.1.0 for package: cuda-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-command-line-tools-11-1 >= 11.1.0 for package: cuda-tools-11-1-11.1.0-1.x86_64
--> Running transaction check
---> Package cuda-command-line-tools-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-sanitizer-11-1 >= 11.1.49 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvtx-11-1 >= 11.1.74 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvprof-11-1 >= 11.1.69 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nvdisasm-11-1 >= 11.1.74 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-memcheck-11-1 >= 11.1.69 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-gdb-11-1 >= 11.1.69 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-cupti-11-1 >= 11.1.69 for package: cuda-command-line-tools-11-1-11.1.0-1.x86_64
---> Package cuda-cudart-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-cudart-devel-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-cuobjdump-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-driver-devel-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvcc-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvprune-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvrtc-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvrtc-devel-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-visual-tools-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: cuda-nvvp-11-1 >= 11.1.74 for package: cuda-visual-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nsight-systems-11-1 >= 11.1.0 for package: cuda-visual-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nsight-compute-11-1 >= 11.1.0 for package: cuda-visual-tools-11-1-11.1.0-1.x86_64
--> Processing Dependency: cuda-nsight-11-1 >= 11.1.69 for package: cuda-visual-tools-11-1-11.1.0-1.x86_64
---> Package kmod-nvidia-latest-dkms.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: dkms for package: 3:kmod-nvidia-latest-dkms-455.23.05-1.el7.x86_64
---> Package libcublas-11-1.x86_64 0:11.2.1.74-1 will be installed
---> Package libcublas-devel-11-1.x86_64 0:11.2.1.74-1 will be installed
---> Package libcufft-11-1.x86_64 0:10.3.0.74-1 will be installed
---> Package libcufft-devel-11-1.x86_64 0:10.3.0.74-1 will be installed
---> Package libcurand-11-1.x86_64 0:10.2.2.74-1 will be installed
---> Package libcurand-devel-11-1.x86_64 0:10.2.2.74-1 will be installed
---> Package libcusolver-11-1.x86_64 0:11.0.0.74-1 will be installed
---> Package libcusolver-devel-11-1.x86_64 0:11.0.0.74-1 will be installed
---> Package libcusparse-11-1.x86_64 0:11.2.0.275-1 will be installed
---> Package libcusparse-devel-11-1.x86_64 0:11.2.0.275-1 will be installed
---> Package libnpp-11-1.x86_64 0:11.1.1.269-1 will be installed
---> Package libnpp-devel-11-1.x86_64 0:11.1.1.269-1 will be installed
---> Package libnvjpeg-11-1.x86_64 0:11.2.0.74-1 will be installed
---> Package libnvjpeg-devel-11-1.x86_64 0:11.2.0.74-1 will be installed
---> Package nvidia-driver-latest.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: yum-plugin-nvidia for package: 3:nvidia-driver-latest-455.23.05-1.el7.x86_64
---> Package nvidia-driver-latest-NVML.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-driver-latest-NvFBCOpenGL.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-driver-latest-cuda.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: opencl-filesystem for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
--> Processing Dependency: ocl-icd for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
---> Package nvidia-driver-latest-cuda-libs.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-driver-latest-devel.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-driver-latest-libs.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: libvdpau(x86-64) >= 0.5 for package: 3:nvidia-driver-latest-libs-455.23.05-1.el7.x86_64
--> Processing Dependency: libglvnd-opengl(x86-64) >= 1.0 for package: 3:nvidia-driver-latest-libs-455.23.05-1.el7.x86_64
--> Processing Dependency: vulkan-filesystem for package: 3:nvidia-driver-latest-libs-455.23.05-1.el7.x86_64
---> Package nvidia-libXNVCtrl.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-libXNVCtrl-devel.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-modprobe-latest.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-persistenced-latest.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-settings.x86_64 3:455.23.05-1.el7 will be installed
---> Package nvidia-xconfig-latest.x86_64 3:455.23.05-1.el7 will be installed
--> Running transaction check
---> Package cuda-cupti-11-1.x86_64 0:11.1.69-1 will be installed
---> Package cuda-gdb-11-1.x86_64 0:11.1.69-1 will be installed
---> Package cuda-memcheck-11-1.x86_64 0:11.1.69-1 will be installed
---> Package cuda-nsight-11-1.x86_64 0:11.1.69-1 will be installed
---> Package cuda-nsight-compute-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: nsight-compute >= 2020.2.0.18 for package: cuda-nsight-compute-11-1-11.1.0-1.x86_64
---> Package cuda-nsight-systems-11-1.x86_64 0:11.1.0-1 will be installed
--> Processing Dependency: nsight-systems-2020.3.4 >= 2020.3.4.32 for package: cuda-nsight-systems-11-1-11.1.0-1.x86_64
---> Package cuda-nvdisasm-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvprof-11-1.x86_64 0:11.1.69-1 will be installed
---> Package cuda-nvtx-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-nvvp-11-1.x86_64 0:11.1.74-1 will be installed
---> Package cuda-sanitizer-11-1.x86_64 0:11.1.49-1 will be installed
---> Package kmod-nvidia-latest-dkms.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: dkms for package: 3:kmod-nvidia-latest-dkms-455.23.05-1.el7.x86_64
---> Package libglvnd-opengl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
---> Package libvdpau.x86_64 0:1.1.1-3.el7 will be installed
---> Package nvidia-driver-latest-cuda.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: opencl-filesystem for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
--> Processing Dependency: ocl-icd for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
---> Package vulkan-filesystem.noarch 0:1.1.97.0-1.el7 will be installed
---> Package yum-plugin-nvidia.noarch 0:1.0.2-1.el7.elrepo will be installed
--> Running transaction check
---> Package kmod-nvidia-latest-dkms.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: dkms for package: 3:kmod-nvidia-latest-dkms-455.23.05-1.el7.x86_64
---> Package nsight-compute-2020.2.0.x86_64 0:2020.2.0.18-1 will be installed
---> Package nsight-systems-2020.3.4.x86_64 0:2020.3.4.32_52657a0-0 will be installed
---> Package nvidia-driver-latest-cuda.x86_64 3:455.23.05-1.el7 will be installed
--> Processing Dependency: opencl-filesystem for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
--> Processing Dependency: ocl-icd for package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64 (cuda-rhel7-11-1-local)
Requires: ocl-icd
Error: Package: 3:kmod-nvidia-latest-dkms-455.23.05-1.el7.x86_64 (cuda-rhel7-11-1-local)
Requires: dkms
Error: Package: 3:nvidia-driver-latest-cuda-455.23.05-1.el7.x86_64 (cuda-rhel7-11-1-local)
Requires: opencl-filesystem
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles –nodigest
####################################################################
注意:这里缺少两个包。下面的教程将修复此问题!
|