当前位置:   article > 正文

NVIDIA GPU驱动和CUDA工具包 Linux CentOS 7 在线安装指南_centos7 安装cuda

centos7 安装cuda

挑选指定系统和对应的GPU型号下载驱动和CUDA工具包: Linux CentOS安装NVIDIA GPU驱动程序和NVIDIA CUDA工具包_centos安装显卡驱动和cuda_Entropy-Go的博客-CSDN博客

相比之下,本文是在线安装NVIDIA GPU驱动和CUDA工具包方式,省去挑选对应正确安装包的烦恼。

Nvidia官网指导: NVIDIA CUDA Installation Guide for Linux

1.系统要求

Native Linux Distribution Support in CUDA 12.2 Update 1

Distribution

Kernel1

Default GCC

GLIBC

x86_64

RHEL 9.y (y <= 2)

5.14.0-284

11.3.1

2.34

RHEL 8.y (y <= 8)

4.18.0-477

8.5.0

2.28

RHEL 7.y (y <= 9)

3.10.0-1160

6.x

2.17

CentOS 7.y (y <= 9)

3.10.0-1160

6.x

2.17

OpenSUSE Leap 15.y (y <= 5)

5.14.21-150500

7.5.0

2.31

RHEL 9.y (y <= 1)

5.14.0-162

11.3.1

2.34

Rocky Linux 8.y (y<=8)

4.18.0-477

8.5.0

2.28

Rocky Linux 9.y (y<=2)

5.14.0-284

11.3.1

2.34

SUSE SLES 15.y (y <= 5)

5.14.21-150500

7.5.0

2.31

Ubuntu 22.04.z (z <= 2) LTS

5.19.0-38

11.3.0

2.35

Ubuntu 20.04.z (z <= 6) LTS

5.15.0-67

9.4.0

2.31

Debian 11.7

5.10.0-22

10.2.1

2.31

Debian 10.13

4.19.0-21

8.3.0

2.28

Fedora 37

6.0.7-301

12.2.1

2.36

KylinOS V10 SP2

4.19.90-25.14.v2101.ky10

7.3.0

2.28

Arm64 sbsa

RHEL 9.y (y <= 2)

5.14.0-284

11.3.1

2.34

RHEL 8.y (y <= 8)

4.18.0-477

8.5.0

2.28

SUSE SLES 15.y (y <= 5)

5.14.21-150500

7.5.0

2.31

Ubuntu 22.04 LTS (z <= 2) LTS

5.15.0-67

11.3.0

2.35

Ubuntu 20.04.z (z <= 5) LTS

5.4.0-125

9.4.0

2.31

Arm64 Jetson (dGPU)

L4T2 20.04.z (z <= 5)

5.10.104-tegra

9.4.0

2.31

Arm64 Jetson (iGPU)

L4T2 20.04.z (z <= 5)

5.10.104-tegra

9.4.0

2.31

L4T2 22.04.z (z <= 2)

5.15.92-tegra

11.3

2.35

POWER 9

RHEL 8.y (y <= 8)

4.18.0-477

8.5.0

2.28

1.1 以CentOS7.9为例,查看系统版本信息

  1. [xxx ~]# sudo hostnamectl
  2. Static hostname: xxx
  3. Pretty hostname: xxx
  4. Icon name: computer-server
  5. Chassis: server
  6. Machine ID: 3218684569694fc3b0a63b13e6478e93
  7. Boot ID: f63eb7b79fd84c2b9a0fb08151507ba0
  8. Operating System: CentOS Linux 7 (Core)
  9. CPE OS Name: cpe:/o:centos:centos:7
  10. Kernel: Linux 3.10.0-1160.el7.x86_64
  11. Architecture: x86-64
  12. [xxx ~]# sudo gcc --version
  13. gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
  14. Copyright (C) 2015 Free Software Foundation, Inc.
  15. This is free software; see the source for copying conditions. There is NO
  16. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. [xxx ~]# sudo ldd --version
  18. ldd (GNU libc) 2.17
  19. Copyright (C) 2012 Free Software Foundation, Inc.
  20. This is free software; see the source for copying conditions. There is NO
  21. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  22. Written by Roland McGrath and Ulrich Drepper.

1.2 gcc版本不满足要求,单独升级gcc

  1. [xxx ~]# sudo yum install devtoolset-9
  2. [xxx ~]# sudo scl enable devtoolset-9 bash
  3. [xxx ~]# sudo gcc --version
  4. gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
  5. Copyright (C) 2019 Free Software Foundation, Inc.
  6. This is free software; see the source for copying conditions. There is NO
  7. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1.3 验证已经有CUDA兼容的GPU设备,正常上电并被识别到

  1. # lspci | grep -i nvidia
  2. 31:00.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 PCIe 16GB] (rev a1)

2. 使用Package Manager在线安装方法

2.1 安装前准备RHEL 7 / CentOS 7

2.2 安装kernel headers和开发包

sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

2.3 安装第三方依赖包

满足DKMS依赖,激活EPEL

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2.4 激活网络repo

sudo yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo

2.5 清理yum缓存

  1. [ xxx ]# sudo yum clean expire-cache
  2. Loaded plugins: fastestmirror, langpacks
  3. Cleaning repos: base centos-sclo-rh centos-sclo-sclo cuda-rhel7-x86_64 epel extras updates
  4. 10 metadata files removed

2.6 开始在线安装CUDA SDK(Nvidia驱动和CUDA工具包

  1. sudo yum install nvidia-driver-latest-dkms
  2. sudo yum install cuda
  3. sudo yum install cuda-drivers

2.6.1 安装过程nvidia-driver-latest-dkms

  1. [xxx ]# sudo yum install nvidia-driver-latest-dkms
  2. Loaded plugins: fastestmirror, langpacks
  3. Loading mirror speeds from cached hostfile
  4. epel/x86_64/metalink | 27 kB 00:00:00
  5. base | 3.6 kB 00:00:00
  6. centos-sclo-rh | 3.0 kB 00:00:00
  7. centos-sclo-sclo | 3.0 kB 00:00:00
  8. cuda-rhel7-x86_64 | 3.0 kB 00:00:00
  9. epel | 4.7 kB 00:00:00
  10. extras | 2.9 kB 00:00:00
  11. updates | 2.9 kB 00:00:00
  12. (1/4): epel/x86_64/group_gz | 99 kB 00:00:01
  13. (2/4): cuda-rhel7-x86_64/primary_db | 2.1 MB 00:00:02
  14. (3/4): epel/x86_64/updateinfo | 1.0 MB 00:00:00
  15. (4/4): epel/x86_64/primary_db | 7.0 MB 00:00:01
  16. Resolving Dependencies
  17. --> Running transaction check
  18. ---> Package nvidia-driver-latest-dkms.x86_64 3:535.86.10-1.el7 will be installed
  19. --> Processing Dependency: kmod-nvidia-latest-dkms = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  20. --> Processing Dependency: nvidia-driver-latest-dkms-NVML(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  21. --> Processing Dependency: nvidia-driver-latest-dkms-NvFBCOpenGL(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  22. --> Processing Dependency: nvidia-driver-latest-dkms-cuda(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  23. --> Processing Dependency: nvidia-driver-latest-dkms-cuda-libs(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  24. --> Processing Dependency: nvidia-driver-latest-dkms-devel(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  25. --> Processing Dependency: nvidia-driver-latest-dkms-libs(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  26. --> Processing Dependency: nvidia-modprobe-latest-dkms(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  27. --> Processing Dependency: nvidia-xconfig-latest-dkms(x86-64) = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  28. --> Processing Dependency: yum-plugin-nvidia for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  29. --> Processing Dependency: libnvidia-glcore.so.535.86.10()(64bit) for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  30. --> Processing Dependency: libnvidia-tls.so.535.86.10()(64bit) for package: 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64
  31. --> Running transaction check
  32. ---> Package kmod-nvidia-latest-dkms.x86_64 3:535.86.10-1.el7 will be installed
  33. --> Processing Dependency: dkms for package: 3:kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64
  34. ---> Package nvidia-driver-latest-dkms-NVML.x86_64 3:535.86.10-1.el7 will be installed
  35. ---> Package nvidia-driver-latest-dkms-NvFBCOpenGL.x86_64 3:535.86.10-1.el7 will be installed
  36. ---> Package nvidia-driver-latest-dkms-cuda.x86_64 3:535.86.10-1.el7 will be installed
  37. --> Processing Dependency: nvidia-persistenced-latest-dkms = 3:535.86.10 for package: 3:nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64
  38. --> Processing Dependency: ocl-icd for package: 3:nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64
  39. --> Processing Dependency: opencl-filesystem for package: 3:nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64
  40. ---> Package nvidia-driver-latest-dkms-cuda-libs.x86_64 3:535.86.10-1.el7 will be installed
  41. ---> Package nvidia-driver-latest-dkms-devel.x86_64 3:535.86.10-1.el7 will be installed
  42. ---> Package nvidia-driver-latest-dkms-libs.x86_64 3:535.86.10-1.el7 will be installed
  43. --> Processing Dependency: libglvnd-opengl(x86-64) >= 1.0 for package: 3:nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64
  44. --> Processing Dependency: libvdpau(x86-64) >= 0.5 for package: 3:nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64
  45. --> Processing Dependency: vulkan-filesystem for package: 3:nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64
  46. ---> Package nvidia-modprobe-latest-dkms.x86_64 3:535.86.10-1.el7 will be installed
  47. ---> Package nvidia-xconfig-latest-dkms.x86_64 3:535.86.10-1.el7 will be installed
  48. ---> Package yum-plugin-nvidia.noarch 0:0.5-1.el7 will be installed
  49. --> Running transaction check
  50. ---> Package dkms.noarch 0:3.0.11-1.el7 will be installed
  51. --> Processing Dependency: elfutils-libelf-devel for package: dkms-3.0.11-1.el7.noarch
  52. ---> Package libglvnd-opengl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
  53. ---> Package libvdpau.x86_64 0:1.1.1-3.el7 will be installed
  54. ---> Package nvidia-persistenced-latest-dkms.x86_64 3:535.86.10-1.el7 will be installed
  55. ---> Package ocl-icd.x86_64 0:2.2.12-1.el7 will be installed
  56. ---> Package opencl-filesystem.noarch 0:1.0-5.el7 will be installed
  57. ---> Package vulkan-filesystem.noarch 0:1.1.97.0-1.el7 will be installed
  58. --> Running transaction check
  59. ---> Package elfutils-libelf-devel.x86_64 0:0.176-5.el7 will be installed
  60. --> Processing Dependency: pkgconfig(zlib) for package: elfutils-libelf-devel-0.176-5.el7.x86_64
  61. --> Running transaction check
  62. ---> Package zlib-devel.x86_64 0:1.2.7-21.el7_9 will be installed
  63. --> Finished Dependency Resolution
  64. Dependencies Resolved
  65. ========================================================================================================================================================================
  66. Package Arch Version Repository Size
  67. ========================================================================================================================================================================
  68. Installing:
  69. nvidia-driver-latest-dkms x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 157 M
  70. Installing for dependencies:
  71. dkms noarch 3.0.11-1.el7 epel 87 k
  72. elfutils-libelf-devel x86_64 0.176-5.el7 base 40 k
  73. kmod-nvidia-latest-dkms x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 43 M
  74. libglvnd-opengl x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 43 k
  75. libvdpau x86_64 1.1.1-3.el7 base 34 k
  76. nvidia-driver-latest-dkms-NVML x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 529 k
  77. nvidia-driver-latest-dkms-NvFBCOpenGL x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 60 k
  78. nvidia-driver-latest-dkms-cuda x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 332 k
  79. nvidia-driver-latest-dkms-cuda-libs x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 43 M
  80. nvidia-driver-latest-dkms-devel x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 19 k
  81. nvidia-driver-latest-dkms-libs x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 183 M
  82. nvidia-modprobe-latest-dkms x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 35 k
  83. nvidia-persistenced-latest-dkms x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 37 k
  84. nvidia-xconfig-latest-dkms x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 95 k
  85. ocl-icd x86_64 2.2.12-1.el7 epel 43 k
  86. opencl-filesystem noarch 1.0-5.el7 epel 3.9 k
  87. vulkan-filesystem noarch 1.1.97.0-1.el7 base 6.3 k
  88. yum-plugin-nvidia noarch 0.5-1.el7 cuda-rhel7-x86_64 9.8 k
  89. zlib-devel x86_64 1.2.7-21.el7_9 updates 50 k
  90. Transaction Summary
  91. ========================================================================================================================================================================
  92. Install 1 Package (+19 Dependent packages)
  93. Total download size: 427 M
  94. Installed size: 888 M
  95. Is this ok [y/d/N]: y
  96. Downloading packages:
  97. (1/20): elfutils-libelf-devel-0.176-5.el7.x86_64.rpm | 40 kB 00:00:00
  98. (2/20): libvdpau-1.1.1-3.el7.x86_64.rpm | 34 kB 00:00:00
  99. (3/20): libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 43 kB 00:00:00
  100. warning: /var/cache/yum/x86_64/7/epel/packages/dkms-3.0.11-1.el7.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 352c64e5: NOKEY ] 0.0 B/s | 116 kB --:--:-- ETA
  101. Public key for dkms-3.0.11-1.el7.noarch.rpm is not installed
  102. (4/20): dkms-3.0.11-1.el7.noarch.rpm | 87 kB 00:00:01
  103. warning: /var/cache/yum/x86_64/7/cuda-rhel7-x86_64/packages/kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d42d0685: NOKEYA
  104. Public key for kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64.rpm is not installed
  105. (5/20): kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64.rpm | 43 MB 00:00:10
  106. (6/20): nvidia-driver-latest-dkms-NVML-535.86.10-1.el7.x86_64.rpm | 529 kB 00:00:01
  107. (7/20): nvidia-driver-latest-dkms-NvFBCOpenGL-535.86.10-1.el7.x86_64.rpm | 60 kB 00:00:01
  108. (8/20): nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64.rpm | 332 kB 00:00:01
  109. (9/20): nvidia-driver-latest-dkms-cuda-libs-535.86.10-1.el7.x86_64.rpm | 43 MB 00:00:08
  110. (10/20): nvidia-driver-latest-dkms-devel-535.86.10-1.el7.x86_64.rpm | 19 kB 00:00:00
  111. (11/20): nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64.rpm | 157 MB 00:00:29
  112. (12/20): nvidia-modprobe-latest-dkms-535.86.10-1.el7.x86_64.rpm | 35 kB 00:00:00
  113. (13/20): nvidia-persistenced-latest-dkms-535.86.10-1.el7.x86_64.rpm | 37 kB 00:00:00
  114. (14/20): ocl-icd-2.2.12-1.el7.x86_64.rpm | 43 kB 00:00:00
  115. (15/20): vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm | 6.3 kB 00:00:00
  116. (16/20): opencl-filesystem-1.0-5.el7.noarch.rpm | 3.9 kB 00:00:00
  117. (17/20): nvidia-xconfig-latest-dkms-535.86.10-1.el7.x86_64.rpm | 95 kB 00:00:01
  118. (18/20): zlib-devel-1.2.7-21.el7_9.x86_64.rpm | 50 kB 00:00:00
  119. (19/20): yum-plugin-nvidia-0.5-1.el7.noarch.rpm | 9.8 kB 00:00:00
  120. (20/20): nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64.rpm | 183 MB 00:00:28
  121. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  122. Total 8.2 MB/s | 427 MB 00:00:52
  123. Retrieving key from https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/D42D0685.pub
  124. Importing GPG key 0xD42D0685:
  125. Userid : "cudatools <cudatools@nvidia.com>"
  126. Fingerprint: 610c 7b14 e068 a878 070d a4e9 9cd0 a493 d42d 0685
  127. From : https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/D42D0685.pub
  128. Is this ok [y/N]: y
  129. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  130. Importing GPG key 0x352C64E5:
  131. Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
  132. Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
  133. Package : epel-release-7-14.noarch (@/epel-release-latest-7.noarch)
  134. From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  135. Is this ok [y/N]: y
  136. Running transaction check
  137. Running transaction test
  138. Transaction test succeeded
  139. Running transaction
  140. Installing : 1:libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64 1/20
  141. Installing : vulkan-filesystem-1.1.97.0-1.el7.noarch 2/20
  142. Installing : libvdpau-1.1.1-3.el7.x86_64 3/20
  143. Installing : ocl-icd-2.2.12-1.el7.x86_64 4/20
  144. Installing : opencl-filesystem-1.0-5.el7.noarch 5/20
  145. Installing : yum-plugin-nvidia-0.5-1.el7.noarch 6/20
  146. Installing : zlib-devel-1.2.7-21.el7_9.x86_64 7/20
  147. Installing : elfutils-libelf-devel-0.176-5.el7.x86_64 8/20
  148. Installing : dkms-3.0.11-1.el7.noarch 9/20
  149. Installing : 3:nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64 10/20
  150. Installing : 3:nvidia-driver-latest-dkms-cuda-libs-535.86.10-1.el7.x86_64 11/20
  151. Installing : 3:nvidia-driver-latest-dkms-NVML-535.86.10-1.el7.x86_64 12/20
  152. Installing : 3:nvidia-modprobe-latest-dkms-535.86.10-1.el7.x86_64 13/20
  153. Installing : 3:nvidia-persistenced-latest-dkms-535.86.10-1.el7.x86_64 14/20
  154. Installing : 3:nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64 15/20
  155. Installing : 3:kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64 16/20
  156. Installing : 3:nvidia-xconfig-latest-dkms-535.86.10-1.el7.x86_64 17/20
  157. Installing : 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64 18/20
  158. Installing : 3:nvidia-driver-latest-dkms-NvFBCOpenGL-535.86.10-1.el7.x86_64 19/20
  159. Installing : 3:nvidia-driver-latest-dkms-devel-535.86.10-1.el7.x86_64 20/20
  160. Verifying : 3:nvidia-driver-latest-dkms-NvFBCOpenGL-535.86.10-1.el7.x86_64 1/20
  161. Verifying : zlib-devel-1.2.7-21.el7_9.x86_64 2/20
  162. Verifying : 3:nvidia-driver-latest-dkms-535.86.10-1.el7.x86_64 3/20
  163. Verifying : yum-plugin-nvidia-0.5-1.el7.noarch 4/20
  164. Verifying : 3:nvidia-driver-latest-dkms-libs-535.86.10-1.el7.x86_64 5/20
  165. Verifying : 3:nvidia-driver-latest-dkms-cuda-libs-535.86.10-1.el7.x86_64 6/20
  166. Verifying : 3:nvidia-driver-latest-dkms-NVML-535.86.10-1.el7.x86_64 7/20
  167. Verifying : 3:nvidia-persistenced-latest-dkms-535.86.10-1.el7.x86_64 8/20
  168. Verifying : 3:nvidia-modprobe-latest-dkms-535.86.10-1.el7.x86_64 9/20
  169. Verifying : opencl-filesystem-1.0-5.el7.noarch 10/20
  170. Verifying : 3:nvidia-driver-latest-dkms-cuda-535.86.10-1.el7.x86_64 11/20
  171. Verifying : ocl-icd-2.2.12-1.el7.x86_64 12/20
  172. Verifying : 3:nvidia-driver-latest-dkms-devel-535.86.10-1.el7.x86_64 13/20
  173. Verifying : elfutils-libelf-devel-0.176-5.el7.x86_64 14/20
  174. Verifying : libvdpau-1.1.1-3.el7.x86_64 15/20
  175. Verifying : vulkan-filesystem-1.1.97.0-1.el7.noarch 16/20
  176. Verifying : dkms-3.0.11-1.el7.noarch 17/20
  177. Verifying : 3:kmod-nvidia-latest-dkms-535.86.10-1.el7.x86_64 18/20
  178. Verifying : 1:libglvnd-opengl-1.0.1-0.8.git5baa1e5.el7.x86_64 19/20
  179. Verifying : 3:nvidia-xconfig-latest-dkms-535.86.10-1.el7.x86_64 20/20
  180. Installed:
  181. nvidia-driver-latest-dkms.x86_64 3:535.86.10-1.el7
  182. Dependency Installed:
  183. dkms.noarch 0:3.0.11-1.el7 elfutils-libelf-devel.x86_64 0:0.176-5.el7
  184. kmod-nvidia-latest-dkms.x86_64 3:535.86.10-1.el7 libglvnd-opengl.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  185. libvdpau.x86_64 0:1.1.1-3.el7 nvidia-driver-latest-dkms-NVML.x86_64 3:535.86.10-1.el7
  186. nvidia-driver-latest-dkms-NvFBCOpenGL.x86_64 3:535.86.10-1.el7 nvidia-driver-latest-dkms-cuda.x86_64 3:535.86.10-1.el7
  187. nvidia-driver-latest-dkms-cuda-libs.x86_64 3:535.86.10-1.el7 nvidia-driver-latest-dkms-devel.x86_64 3:535.86.10-1.el7
  188. nvidia-driver-latest-dkms-libs.x86_64 3:535.86.10-1.el7 nvidia-modprobe-latest-dkms.x86_64 3:535.86.10-1.el7
  189. nvidia-persistenced-latest-dkms.x86_64 3:535.86.10-1.el7 nvidia-xconfig-latest-dkms.x86_64 3:535.86.10-1.el7
  190. ocl-icd.x86_64 0:2.2.12-1.el7 opencl-filesystem.noarch 0:1.0-5.el7
  191. vulkan-filesystem.noarch 0:1.1.97.0-1.el7 yum-plugin-nvidia.noarch 0:0.5-1.el7
  192. zlib-devel.x86_64 0:1.2.7-21.el7_9
  193. Complete!

2.6.2 安装过程cuda

  1. [ xxx ]# sudo yum install cuda
  2. Loaded plugins: fastestmirror, langpacks, nvidia
  3. Loading mirror speeds from cached hostfile
  4. Resolving Dependencies
  5. --> Running transaction check
  6. ---> Package cuda.x86_64 0:12.2.1-1 will be installed
  7. --> Processing Dependency: cuda-12-2 >= 12.2.1 for package: cuda-12.2.1-1.x86_64
  8. --> Running transaction check
  9. ---> Package cuda-12-2.x86_64 0:12.2.1-1 will be installed
  10. --> Processing Dependency: cuda-demo-suite-12-2 >= 12.2.128 for package: cuda-12-2-12.2.1-1.x86_64
  11. --> Processing Dependency: cuda-runtime-12-2 >= 12.2.1 for package: cuda-12-2-12.2.1-1.x86_64
  12. --> Processing Dependency: cuda-toolkit-12-2 >= 12.2.1 for package: cuda-12-2-12.2.1-1.x86_64
  13. --> Running transaction check
  14. ---> Package cuda-demo-suite-12-2.x86_64 0:12.2.128-1 will be installed
  15. ---> Package cuda-runtime-12-2.x86_64 0:12.2.1-1 will be installed
  16. --> Processing Dependency: cuda-libraries-12-2 >= 12.2.1 for package: cuda-runtime-12-2-12.2.1-1.x86_64
  17. ---> Package cuda-toolkit-12-2.x86_64 0:12.2.1-1 will be installed
  18. --> Processing Dependency: cuda-compiler-12-2 >= 12.2.1 for package: cuda-toolkit-12-2-12.2.1-1.x86_64
  19. --> Processing Dependency: cuda-documentation-12-2 >= 12.2.128 for package: cuda-toolkit-12-2-12.2.1-1.x86_64
  20. --> Processing Dependency: cuda-libraries-devel-12-2 >= 12.2.1 for package: cuda-toolkit-12-2-12.2.1-1.x86_64
  21. --> Processing Dependency: cuda-nvml-devel-12-2 >= 12.2.128 for package: cuda-toolkit-12-2-12.2.1-1.x86_64
  22. --> Processing Dependency: cuda-tools-12-2 >= 12.2.1 for package: cuda-toolkit-12-2-12.2.1-1.x86_64
  23. --> Running transaction check
  24. ---> Package cuda-compiler-12-2.x86_64 0:12.2.1-1 will be installed
  25. --> Processing Dependency: cuda-cuobjdump-12-2 >= 12.2.128 for package: cuda-compiler-12-2-12.2.1-1.x86_64
  26. --> Processing Dependency: cuda-cuxxfilt-12-2 >= 12.2.128 for package: cuda-compiler-12-2-12.2.1-1.x86_64
  27. --> Processing Dependency: cuda-nvcc-12-2 >= 12.2.128 for package: cuda-compiler-12-2-12.2.1-1.x86_64
  28. --> Processing Dependency: cuda-nvprune-12-2 >= 12.2.128 for package: cuda-compiler-12-2-12.2.1-1.x86_64
  29. ---> Package cuda-documentation-12-2.x86_64 0:12.2.128-1 will be installed
  30. ---> Package cuda-libraries-12-2.x86_64 0:12.2.1-1 will be installed
  31. --> Processing Dependency: cuda-cudart-12-2 >= 12.2.128 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  32. --> Processing Dependency: cuda-nvrtc-12-2 >= 12.2.128 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  33. --> Processing Dependency: cuda-opencl-12-2 >= 12.2.128 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  34. --> Processing Dependency: libcublas-12-2 >= 12.2.4.5 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  35. --> Processing Dependency: libcufft-12-2 >= 11.0.8.91 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  36. --> Processing Dependency: libcufile-12-2 >= 1.7.1.12 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  37. --> Processing Dependency: libcurand-12-2 >= 10.3.3.129 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  38. --> Processing Dependency: libcusolver-12-2 >= 11.5.1.129 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  39. --> Processing Dependency: libcusparse-12-2 >= 12.1.2.129 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  40. --> Processing Dependency: libnpp-12-2 >= 12.2.0.5 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  41. --> Processing Dependency: libnvjitlink-12-2 >= 12.2.128 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  42. --> Processing Dependency: libnvjpeg-12-2 >= 12.2.1.2 for package: cuda-libraries-12-2-12.2.1-1.x86_64
  43. ---> Package cuda-libraries-devel-12-2.x86_64 0:12.2.1-1 will be installed
  44. --> Processing Dependency: cuda-cccl-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  45. --> Processing Dependency: cuda-cudart-devel-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  46. --> Processing Dependency: cuda-driver-devel-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  47. --> Processing Dependency: cuda-nvrtc-devel-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  48. --> Processing Dependency: cuda-opencl-devel-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  49. --> Processing Dependency: cuda-profiler-api-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  50. --> Processing Dependency: libcublas-devel-12-2 >= 12.2.4.5 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  51. --> Processing Dependency: libcufft-devel-12-2 >= 11.0.8.91 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  52. --> Processing Dependency: libcufile-devel-12-2 >= 1.7.1.12 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  53. --> Processing Dependency: libcurand-devel-12-2 >= 10.3.3.129 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  54. --> Processing Dependency: libcusolver-devel-12-2 >= 11.5.1.129 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  55. --> Processing Dependency: libcusparse-devel-12-2 >= 12.1.2.129 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  56. --> Processing Dependency: libnpp-devel-12-2 >= 12.2.0.5 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  57. --> Processing Dependency: libnvjitlink-devel-12-2 >= 12.2.128 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  58. --> Processing Dependency: libnvjpeg-devel-12-2 >= 12.2.1.2 for package: cuda-libraries-devel-12-2-12.2.1-1.x86_64
  59. ---> Package cuda-nvml-devel-12-2.x86_64 0:12.2.128-1 will be installed
  60. ---> Package cuda-tools-12-2.x86_64 0:12.2.1-1 will be installed
  61. --> Processing Dependency: cuda-command-line-tools-12-2 >= 12.2.1 for package: cuda-tools-12-2-12.2.1-1.x86_64
  62. --> Processing Dependency: cuda-visual-tools-12-2 >= 12.2.1 for package: cuda-tools-12-2-12.2.1-1.x86_64
  63. --> Processing Dependency: gds-tools-12-2 >= 1.7.1.12 for package: cuda-tools-12-2-12.2.1-1.x86_64
  64. --> Running transaction check
  65. ---> Package cuda-cccl-12-2.x86_64 0:12.2.128-1 will be installed
  66. ---> Package cuda-command-line-tools-12-2.x86_64 0:12.2.1-1 will be installed
  67. --> Processing Dependency: cuda-cupti-12-2 >= 12.2.131 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  68. --> Processing Dependency: cuda-gdb-12-2 >= 12.2.128 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  69. --> Processing Dependency: cuda-nvdisasm-12-2 >= 12.2.128 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  70. --> Processing Dependency: cuda-nvprof-12-2 >= 12.2.131 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  71. --> Processing Dependency: cuda-nvtx-12-2 >= 12.2.128 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  72. --> Processing Dependency: cuda-sanitizer-12-2 >= 12.2.128 for package: cuda-command-line-tools-12-2-12.2.1-1.x86_64
  73. ---> Package cuda-cudart-12-2.x86_64 0:12.2.128-1 will be installed
  74. --> Processing Dependency: cuda-toolkit-12-2-config-common for package: cuda-cudart-12-2-12.2.128-1.x86_64
  75. --> Processing Dependency: cuda-toolkit-12-config-common for package: cuda-cudart-12-2-12.2.128-1.x86_64
  76. --> Processing Dependency: cuda-toolkit-config-common for package: cuda-cudart-12-2-12.2.128-1.x86_64
  77. ---> Package cuda-cudart-devel-12-2.x86_64 0:12.2.128-1 will be installed
  78. ---> Package cuda-cuobjdump-12-2.x86_64 0:12.2.128-1 will be installed
  79. ---> Package cuda-cuxxfilt-12-2.x86_64 0:12.2.128-1 will be installed
  80. ---> Package cuda-driver-devel-12-2.x86_64 0:12.2.128-1 will be installed
  81. ---> Package cuda-nvcc-12-2.x86_64 0:12.2.128-1 will be installed
  82. --> Processing Dependency: cuda-crt-12-2 = 12.2.128 for package: cuda-nvcc-12-2-12.2.128-1.x86_64
  83. --> Processing Dependency: cuda-nvvm-12-2 = 12.2.128 for package: cuda-nvcc-12-2-12.2.128-1.x86_64
  84. ---> Package cuda-nvprune-12-2.x86_64 0:12.2.128-1 will be installed
  85. ---> Package cuda-nvrtc-12-2.x86_64 0:12.2.128-1 will be installed
  86. ---> Package cuda-nvrtc-devel-12-2.x86_64 0:12.2.128-1 will be installed
  87. ---> Package cuda-opencl-12-2.x86_64 0:12.2.128-1 will be installed
  88. ---> Package cuda-opencl-devel-12-2.x86_64 0:12.2.128-1 will be installed
  89. ---> Package cuda-profiler-api-12-2.x86_64 0:12.2.128-1 will be installed
  90. ---> Package cuda-visual-tools-12-2.x86_64 0:12.2.1-1 will be installed
  91. --> Processing Dependency: cuda-nsight-12-2 >= 12.2.128 for package: cuda-visual-tools-12-2-12.2.1-1.x86_64
  92. --> Processing Dependency: cuda-nsight-compute-12-2 >= 12.2.1 for package: cuda-visual-tools-12-2-12.2.1-1.x86_64
  93. --> Processing Dependency: cuda-nsight-systems-12-2 >= 12.2.1 for package: cuda-visual-tools-12-2-12.2.1-1.x86_64
  94. --> Processing Dependency: cuda-nvvp-12-2 >= 12.2.131 for package: cuda-visual-tools-12-2-12.2.1-1.x86_64
  95. ---> Package gds-tools-12-2.x86_64 0:1.7.1.12-1 will be installed
  96. ---> Package libcublas-12-2.x86_64 0:12.2.4.5-1 will be installed
  97. ---> Package libcublas-devel-12-2.x86_64 0:12.2.4.5-1 will be installed
  98. ---> Package libcufft-12-2.x86_64 0:11.0.8.91-1 will be installed
  99. ---> Package libcufft-devel-12-2.x86_64 0:11.0.8.91-1 will be installed
  100. ---> Package libcufile-12-2.x86_64 0:1.7.1.12-1 will be installed
  101. ---> Package libcufile-devel-12-2.x86_64 0:1.7.1.12-1 will be installed
  102. ---> Package libcurand-12-2.x86_64 0:10.3.3.129-1 will be installed
  103. ---> Package libcurand-devel-12-2.x86_64 0:10.3.3.129-1 will be installed
  104. ---> Package libcusolver-12-2.x86_64 0:11.5.1.129-1 will be installed
  105. ---> Package libcusolver-devel-12-2.x86_64 0:11.5.1.129-1 will be installed
  106. ---> Package libcusparse-12-2.x86_64 0:12.1.2.129-1 will be installed
  107. ---> Package libcusparse-devel-12-2.x86_64 0:12.1.2.129-1 will be installed
  108. ---> Package libnpp-12-2.x86_64 0:12.2.0.5-1 will be installed
  109. ---> Package libnpp-devel-12-2.x86_64 0:12.2.0.5-1 will be installed
  110. ---> Package libnvjitlink-12-2.x86_64 0:12.2.128-1 will be installed
  111. ---> Package libnvjitlink-devel-12-2.x86_64 0:12.2.128-1 will be installed
  112. ---> Package libnvjpeg-12-2.x86_64 0:12.2.1.2-1 will be installed
  113. ---> Package libnvjpeg-devel-12-2.x86_64 0:12.2.1.2-1 will be installed
  114. --> Running transaction check
  115. ---> Package cuda-crt-12-2.x86_64 0:12.2.128-1 will be installed
  116. ---> Package cuda-cupti-12-2.x86_64 0:12.2.131-1 will be installed
  117. ---> Package cuda-gdb-12-2.x86_64 0:12.2.128-1 will be installed
  118. ---> Package cuda-nsight-12-2.x86_64 0:12.2.128-1 will be installed
  119. ---> Package cuda-nsight-compute-12-2.x86_64 0:12.2.1-1 will be installed
  120. --> Processing Dependency: nsight-compute-2023.2.1 >= 2023.2.1.3 for package: cuda-nsight-compute-12-2-12.2.1-1.x86_64
  121. ---> Package cuda-nsight-systems-12-2.x86_64 0:12.2.1-1 will be installed
  122. --> Processing Dependency: nsight-systems >= 2023.2.3.1001 for package: cuda-nsight-systems-12-2-12.2.1-1.x86_64
  123. ---> Package cuda-nvdisasm-12-2.x86_64 0:12.2.128-1 will be installed
  124. ---> Package cuda-nvprof-12-2.x86_64 0:12.2.131-1 will be installed
  125. ---> Package cuda-nvtx-12-2.x86_64 0:12.2.128-1 will be installed
  126. ---> Package cuda-nvvm-12-2.x86_64 0:12.2.128-1 will be installed
  127. ---> Package cuda-nvvp-12-2.x86_64 0:12.2.131-1 will be installed
  128. ---> Package cuda-sanitizer-12-2.x86_64 0:12.2.128-1 will be installed
  129. ---> Package cuda-toolkit-12-2-config-common.noarch 0:12.2.128-1 will be installed
  130. ---> Package cuda-toolkit-12-config-common.noarch 0:12.2.128-1 will be installed
  131. ---> Package cuda-toolkit-config-common.noarch 0:12.2.128-1 will be installed
  132. --> Running transaction check
  133. ---> Package nsight-compute-2023.2.1.x86_64 0:2023.2.1.3-1 will be installed
  134. ---> Package nsight-systems-2023.2.3.x86_64 0:2023.2.3.1001_32894139v0-0 will be installed
  135. --> Finished Dependency Resolution
  136. Dependencies Resolved
  137. ========================================================================================================================================================================
  138. Package Arch Version Repository Size
  139. ========================================================================================================================================================================
  140. Installing:
  141. cuda x86_64 12.2.1-1 cuda-rhel7-x86_64 7.3 k
  142. Installing for dependencies:
  143. cuda-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.4 k
  144. cuda-cccl-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 1.8 M
  145. cuda-command-line-tools-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.5 k
  146. cuda-compiler-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.3 k
  147. cuda-crt-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 110 k
  148. cuda-cudart-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 218 k
  149. cuda-cudart-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 2.0 M
  150. cuda-cuobjdump-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 230 k
  151. cuda-cupti-12-2 x86_64 12.2.131-1 cuda-rhel7-x86_64 28 M
  152. cuda-cuxxfilt-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 283 k
  153. cuda-demo-suite-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 5.1 M
  154. cuda-documentation-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 127 k
  155. cuda-driver-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 41 k
  156. cuda-gdb-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 5.9 M
  157. cuda-libraries-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.6 k
  158. cuda-libraries-devel-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.8 k
  159. cuda-nsight-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 113 M
  160. cuda-nsight-compute-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 9.9 k
  161. cuda-nsight-systems-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 9.4 k
  162. cuda-nvcc-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 61 M
  163. cuda-nvdisasm-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 48 M
  164. cuda-nvml-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 119 k
  165. cuda-nvprof-12-2 x86_64 12.2.131-1 cuda-rhel7-x86_64 5.0 M
  166. cuda-nvprune-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 72 k
  167. cuda-nvrtc-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 22 M
  168. cuda-nvrtc-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 21 M
  169. cuda-nvtx-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 88 k
  170. cuda-nvvm-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 26 M
  171. cuda-nvvp-12-2 x86_64 12.2.131-1 cuda-rhel7-x86_64 115 M
  172. cuda-opencl-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 34 k
  173. cuda-opencl-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 95 k
  174. cuda-profiler-api-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 26 k
  175. cuda-runtime-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.3 k
  176. cuda-sanitizer-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 17 M
  177. cuda-toolkit-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 8.7 k
  178. cuda-toolkit-12-2-config-common noarch 12.2.128-1 cuda-rhel7-x86_64 7.7 k
  179. cuda-toolkit-12-config-common noarch 12.2.128-1 cuda-rhel7-x86_64 7.9 k
  180. cuda-toolkit-config-common noarch 12.2.128-1 cuda-rhel7-x86_64 7.9 k
  181. cuda-tools-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.3 k
  182. cuda-visual-tools-12-2 x86_64 12.2.1-1 cuda-rhel7-x86_64 7.4 k
  183. gds-tools-12-2 x86_64 1.7.1.12-1 cuda-rhel7-x86_64 42 M
  184. libcublas-12-2 x86_64 12.2.4.5-1 cuda-rhel7-x86_64 393 M
  185. libcublas-devel-12-2 x86_64 12.2.4.5-1 cuda-rhel7-x86_64 445 M
  186. libcufft-12-2 x86_64 11.0.8.91-1 cuda-rhel7-x86_64 94 M
  187. libcufft-devel-12-2 x86_64 11.0.8.91-1 cuda-rhel7-x86_64 190 M
  188. libcufile-12-2 x86_64 1.7.1.12-1 cuda-rhel7-x86_64 1.1 M
  189. libcufile-devel-12-2 x86_64 1.7.1.12-1 cuda-rhel7-x86_64 4.7 M
  190. libcurand-12-2 x86_64 10.3.3.129-1 cuda-rhel7-x86_64 53 M
  191. libcurand-devel-12-2 x86_64 10.3.3.129-1 cuda-rhel7-x86_64 53 M
  192. libcusolver-12-2 x86_64 11.5.1.129-1 cuda-rhel7-x86_64 119 M
  193. libcusolver-devel-12-2 x86_64 11.5.1.129-1 cuda-rhel7-x86_64 78 M
  194. libcusparse-12-2 x86_64 12.1.2.129-1 cuda-rhel7-x86_64 186 M
  195. libcusparse-devel-12-2 x86_64 12.1.2.129-1 cuda-rhel7-x86_64 378 M
  196. libnpp-12-2 x86_64 12.2.0.5-1 cuda-rhel7-x86_64 151 M
  197. libnpp-devel-12-2 x86_64 12.2.0.5-1 cuda-rhel7-x86_64 148 M
  198. libnvjitlink-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 19 M
  199. libnvjitlink-devel-12-2 x86_64 12.2.128-1 cuda-rhel7-x86_64 18 M
  200. libnvjpeg-12-2 x86_64 12.2.1.2-1 cuda-rhel7-x86_64 3.3 M
  201. libnvjpeg-devel-12-2 x86_64 12.2.1.2-1 cuda-rhel7-x86_64 3.0 M
  202. nsight-compute-2023.2.1 x86_64 2023.2.1.3-1 cuda-rhel7-x86_64 816 M
  203. nsight-systems-2023.2.3 x86_64 2023.2.3.1001_32894139v0-0 cuda-rhel7-x86_64 299 M
  204. Transaction Summary
  205. ========================================================================================================================================================================
  206. Install 1 Package (+61 Dependent packages)
  207. Total download size: 3.9 G
  208. Installed size: 6.9 G
  209. Is this ok [y/d/N]: y
  210. Downloading packages:
  211. (1/62): cuda-12.2.1-1.x86_64.rpm | 7.3 kB 00:00:01
  212. (2/62): cuda-12-2-12.2.1-1.x86_64.rpm | 7.4 kB 00:00:01
  213. (3/62): cuda-command-line-tools-12-2-12.2.1-1.x86_64.rpm | 7.5 kB 00:00:00
  214. (4/62): cuda-compiler-12-2-12.2.1-1.x86_64.rpm | 7.3 kB 00:00:00
  215. (5/62): cuda-cccl-12-2-12.2.128-1.x86_64.rpm | 1.8 MB 00:00:02
  216. (6/62): cuda-crt-12-2-12.2.128-1.x86_64.rpm | 110 kB 00:00:00
  217. (7/62): cuda-cudart-12-2-12.2.128-1.x86_64.rpm | 218 kB 00:00:01
  218. (8/62): cuda-cudart-devel-12-2-12.2.128-1.x86_64.rpm | 2.0 MB 00:00:01
  219. (9/62): cuda-cuobjdump-12-2-12.2.128-1.x86_64.rpm | 230 kB 00:00:01
  220. (10/62): cuda-cuxxfilt-12-2-12.2.128-1.x86_64.rpm | 283 kB 00:00:01
  221. (11/62): cuda-demo-suite-12-2-12.2.128-1.x86_64.rpm | 5.1 MB 00:00:02
  222. (12/62): cuda-cupti-12-2-12.2.131-1.x86_64.rpm | 28 MB 00:00:05
  223. (13/62): cuda-documentation-12-2-12.2.128-1.x86_64.rpm | 127 kB 00:00:00
  224. (14/62): cuda-driver-devel-12-2-12.2.128-1.x86_64.rpm | 41 kB 00:00:00
  225. (15/62): cuda-libraries-12-2-12.2.1-1.x86_64.rpm | 7.6 kB 00:00:00
  226. (16/62): cuda-gdb-12-2-12.2.128-1.x86_64.rpm | 5.9 MB 00:00:01
  227. (17/62): cuda-libraries-devel-12-2-12.2.1-1.x86_64.rpm | 7.8 kB 00:00:00
  228. (18/62): cuda-nsight-compute-12-2-12.2.1-1.x86_64.rpm | 9.9 kB 00:00:00
  229. (19/62): cuda-nsight-systems-12-2-12.2.1-1.x86_64.rpm | 9.4 kB 00:00:00
  230. (20/62): cuda-nvcc-12-2-12.2.128-1.x86_64.rpm | 61 MB 00:00:12
  231. (21/62): cuda-nsight-12-2-12.2.128-1.x86_64.rpm | 113 MB 00:00:22
  232. (22/62): cuda-nvml-devel-12-2-12.2.128-1.x86_64.rpm | 119 kB 00:00:00
  233. (23/62): cuda-nvdisasm-12-2-12.2.128-1.x86_64.rpm | 48 MB 00:00:09
  234. (24/62): cuda-nvprune-12-2-12.2.128-1.x86_64.rpm | 72 kB 00:00:01
  235. (25/62): cuda-nvprof-12-2-12.2.131-1.x86_64.rpm | 5.0 MB 00:00:01
  236. (26/62): cuda-nvrtc-12-2-12.2.128-1.x86_64.rpm | 22 MB 00:00:05
  237. (27/62): cuda-nvrtc-devel-12-2-12.2.128-1.x86_64.rpm | 21 MB 00:00:05
  238. (28/62): cuda-nvtx-12-2-12.2.128-1.x86_64.rpm | 88 kB 00:00:01
  239. (29/62): cuda-nvvm-12-2-12.2.128-1.x86_64.rpm | 26 MB 00:00:06
  240. (30/62): cuda-opencl-12-2-12.2.128-1.x86_64.rpm | 34 kB 00:00:00
  241. (31/62): cuda-opencl-devel-12-2-12.2.128-1.x86_64.rpm | 95 kB 00:00:01
  242. (32/62): cuda-profiler-api-12-2-12.2.128-1.x86_64.rpm | 26 kB 00:00:00
  243. (33/62): cuda-runtime-12-2-12.2.1-1.x86_64.rpm | 7.3 kB 00:00:00
  244. (34/62): cuda-sanitizer-12-2-12.2.128-1.x86_64.rpm | 17 MB 00:00:04
  245. (35/62): cuda-toolkit-12-2-12.2.1-1.x86_64.rpm | 8.7 kB 00:00:00
  246. (36/62): cuda-toolkit-12-2-config-common-12.2.128-1.noarch.rpm | 7.7 kB 00:00:00
  247. (37/62): cuda-toolkit-12-config-common-12.2.128-1.noarch.rpm | 7.9 kB 00:00:00
  248. (38/62): cuda-toolkit-config-common-12.2.128-1.noarch.rpm | 7.9 kB 00:00:00
  249. (39/62): cuda-tools-12-2-12.2.1-1.x86_64.rpm | 7.3 kB 00:00:00
  250. (40/62): cuda-visual-tools-12-2-12.2.1-1.x86_64.rpm | 7.4 kB 00:00:00
  251. (41/62): cuda-nvvp-12-2-12.2.131-1.x86_64.rpm | 115 MB 00:00:19
  252. (42/62): gds-tools-12-2-1.7.1.12-1.x86_64.rpm | 42 MB 00:00:08
  253. (43/62): libcublas-12-2-12.2.4.5-1.x86_64.rpm | 393 MB 00:01:15
  254. (44/62): libcublas-devel-12-2-12.2.4.5-1.x86_64.rpm | 445 MB 00:01:23
  255. (45/62): libcufft-12-2-11.0.8.91-1.x86_64.rpm | 94 MB 00:00:19
  256. (46/62): libcufile-12-2-1.7.1.12-1.x86_64.rpm | 1.1 MB 00:00:01
  257. (47/62): libcufile-devel-12-2-1.7.1.12-1.x86_64.rpm | 4.7 MB 00:00:02
  258. (48/62): libcurand-12-2-10.3.3.129-1.x86_64.rpm | 53 MB 00:00:10
  259. (49/62): libcurand-devel-12-2-10.3.3.129-1.x86_64.rpm | 53 MB 00:00:11
  260. (50/62): libcufft-devel-12-2-11.0.8.91-1.x86_64.rpm | 190 MB 00:00:35
  261. (51/62): libcusolver-devel-12-2-11.5.1.129-1.x86_64.rpm | 78 MB 00:00:17
  262. (52/62): libcusolver-12-2-11.5.1.129-1.x86_64.rpm | 119 MB 00:00:31
  263. (53/62): libcusparse-12-2-12.1.2.129-1.x86_64.rpm | 186 MB 00:00:33
  264. (54/62): libnpp-12-2-12.2.0.5-1.x86_64.rpm | 151 MB 00:00:29
  265. (55/62): libcusparse-devel-12-2-12.1.2.129-1.x86_64.rpm | 378 MB 00:01:11
  266. (56/62): libnvjitlink-12-2-12.2.128-1.x86_64.rpm | 19 MB 00:00:04
  267. (57/62): libnvjitlink-devel-12-2-12.2.128-1.x86_64.rpm | 18 MB 00:00:04
  268. (58/62): libnvjpeg-12-2-12.2.1.2-1.x86_64.rpm | 3.3 MB 00:00:01
  269. (59/62): libnpp-devel-12-2-12.2.0.5-1.x86_64.rpm | 148 MB 00:00:28
  270. (60/62): libnvjpeg-devel-12-2-12.2.1.2-1.x86_64.rpm | 3.0 MB 00:00:01
  271. (61/62): nsight-systems-2023.2.3-2023.2.3.1001_3289413-0.x86_64.rpm | 299 MB 00:00:52
  272. (62/62): nsight-compute-2023.2.1-2023.2.1.3-1.x86_64.rpm | 816 MB 00:02:19
  273. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  274. Total 9.1 MB/s | 3.9 GB 00:07:17
  275. Running transaction check
  276. Running transaction test
  277. Transaction test succeeded
  278. Running transaction
  279. Installing : cuda-toolkit-12-config-common-12.2.128-1.noarch 1/62
  280. Installing : cuda-toolkit-12-2-config-common-12.2.128-1.noarch 2/62
  281. Installing : cuda-toolkit-config-common-12.2.128-1.noarch 3/62
  282. Installing : libcurand-12-2-10.3.3.129-1.x86_64 4/62
  283. Installing : libcufile-12-2-1.7.1.12-1.x86_64 5/62
  284. Installing : libcublas-12-2-12.2.4.5-1.x86_64 6/62
  285. Installing : libcusparse-12-2-12.1.2.129-1.x86_64 7/62
  286. Installing : libnpp-12-2-12.2.0.5-1.x86_64 8/62
  287. Installing : cuda-opencl-12-2-12.2.128-1.x86_64 9/62
  288. Installing : libnvjpeg-12-2-12.2.1.2-1.x86_64 10/62
  289. Installing : libcufft-12-2-11.0.8.91-1.x86_64 11/62
  290. Installing : cuda-cudart-12-2-12.2.128-1.x86_64 12/62
  291. Installing : libcusolver-12-2-11.5.1.129-1.x86_64 13/62
  292. Installing : libnvjitlink-12-2-12.2.128-1.x86_64 14/62
  293. Installing : cuda-cccl-12-2-12.2.128-1.x86_64 15/62
  294. Installing : cuda-nvrtc-12-2-12.2.128-1.x86_64 16/62
  295. Installing : cuda-libraries-12-2-12.2.1-1.x86_64 17/62
  296. Installing : cuda-nvdisasm-12-2-12.2.128-1.x86_64 18/62
  297. Installing : cuda-nvprof-12-2-12.2.131-1.x86_64 19/62
  298. Installing : cuda-nvml-devel-12-2-12.2.128-1.x86_64 20/62
  299. Installing : cuda-nvvp-12-2-12.2.131-1.x86_64 21/62
  300. Installing : cuda-runtime-12-2-12.2.1-1.x86_64 22/62
  301. Installing : cuda-nvrtc-devel-12-2-12.2.128-1.x86_64 23/62
  302. Installing : cuda-cudart-devel-12-2-12.2.128-1.x86_64 24/62
  303. Installing : libnvjitlink-devel-12-2-12.2.128-1.x86_64 25/62
  304. Installing : libcusolver-devel-12-2-11.5.1.129-1.x86_64 26/62
  305. Installing : libcufft-devel-12-2-11.0.8.91-1.x86_64 27/62
  306. Installing : libnvjpeg-devel-12-2-12.2.1.2-1.x86_64 28/62
  307. Installing : cuda-opencl-devel-12-2-12.2.128-1.x86_64 29/62
  308. Installing : libnpp-devel-12-2-12.2.0.5-1.x86_64 30/62
  309. Installing : libcusparse-devel-12-2-12.1.2.129-1.x86_64 31/62
  310. Installing : libcublas-devel-12-2-12.2.4.5-1.x86_64 32/62
  311. Installing : libcufile-devel-12-2-1.7.1.12-1.x86_64 33/62
  312. Installing : libcurand-devel-12-2-10.3.3.129-1.x86_64 34/62
  313. Installing : cuda-demo-suite-12-2-12.2.128-1.x86_64 35/62
  314. Installing : cuda-cuxxfilt-12-2-12.2.128-1.x86_64 36/62
  315. Installing : cuda-nvprune-12-2-12.2.128-1.x86_64 37/62
  316. Installing : cuda-cuobjdump-12-2-12.2.128-1.x86_64 38/62
  317. Installing : cuda-driver-devel-12-2-12.2.128-1.x86_64 39/62
  318. Installing : nsight-systems-2023.2.3-2023.2.3.1001_32894139v0-0.x86_64 40/62
  319. Installing : cuda-nsight-systems-12-2-12.2.1-1.x86_64 41/62
  320. Installing : cuda-gdb-12-2-12.2.128-1.x86_64 42/62
  321. Installing : cuda-profiler-api-12-2-12.2.128-1.x86_64 43/62
  322. Installing : cuda-libraries-devel-12-2-12.2.1-1.x86_64 44/62
  323. Installing : cuda-nvvm-12-2-12.2.128-1.x86_64 45/62
  324. Installing : nsight-compute-2023.2.1-2023.2.1.3-1.x86_64 46/62
  325. Installing : cuda-nsight-compute-12-2-12.2.1-1.x86_64 47/62
  326. Installing : cuda-crt-12-2-12.2.128-1.x86_64 48/62
  327. Installing : cuda-nvcc-12-2-12.2.128-1.x86_64 49/62
  328. Installing : cuda-compiler-12-2-12.2.1-1.x86_64 50/62
  329. Installing : cuda-nsight-12-2-12.2.128-1.x86_64 51/62
  330. Installing : cuda-visual-tools-12-2-12.2.1-1.x86_64 52/62
  331. Installing : cuda-cupti-12-2-12.2.131-1.x86_64 53/62
  332. Installing : cuda-documentation-12-2-12.2.128-1.x86_64 54/62
  333. Installing : gds-tools-12-2-1.7.1.12-1.x86_64 55/62
  334. Installing : cuda-nvtx-12-2-12.2.128-1.x86_64 56/62
  335. Installing : cuda-sanitizer-12-2-12.2.128-1.x86_64 57/62
  336. Installing : cuda-command-line-tools-12-2-12.2.1-1.x86_64 58/62
  337. Installing : cuda-tools-12-2-12.2.1-1.x86_64 59/62
  338. Installing : cuda-toolkit-12-2-12.2.1-1.x86_64 60/62
  339. Installing : cuda-12-2-12.2.1-1.x86_64 61/62
  340. Installing : cuda-12.2.1-1.x86_64 62/62
  341. Verifying : cuda-nvml-devel-12-2-12.2.128-1.x86_64 1/62
  342. Verifying : cuda-nvtx-12-2-12.2.128-1.x86_64 2/62
  343. Verifying : gds-tools-12-2-1.7.1.12-1.x86_64 3/62
  344. Verifying : cuda-documentation-12-2-12.2.128-1.x86_64 4/62
  345. Verifying : cuda-toolkit-12-2-12.2.1-1.x86_64 5/62
  346. Verifying : cuda-cupti-12-2-12.2.131-1.x86_64 6/62
  347. Verifying : cuda-toolkit-config-common-12.2.128-1.noarch 7/62
  348. Verifying : libcurand-12-2-10.3.3.129-1.x86_64 8/62
  349. Verifying : cuda-tools-12-2-12.2.1-1.x86_64 9/62
  350. Verifying : libcufile-12-2-1.7.1.12-1.x86_64 10/62
  351. Verifying : cuda-compiler-12-2-12.2.1-1.x86_64 11/62
  352. Verifying : cuda-nvrtc-devel-12-2-12.2.128-1.x86_64 12/62
  353. Verifying : cuda-nsight-12-2-12.2.128-1.x86_64 13/62
  354. Verifying : libcublas-12-2-12.2.4.5-1.x86_64 14/62
  355. Verifying : cuda-crt-12-2-12.2.128-1.x86_64 15/62
  356. Verifying : cuda-toolkit-12-2-config-common-12.2.128-1.noarch 16/62
  357. Verifying : libcusparse-12-2-12.1.2.129-1.x86_64 17/62
  358. Verifying : libnpp-12-2-12.2.0.5-1.x86_64 18/62
  359. Verifying : nsight-compute-2023.2.1-2023.2.1.3-1.x86_64 19/62
  360. Verifying : libcusparse-devel-12-2-12.1.2.129-1.x86_64 20/62
  361. Verifying : cuda-nvvm-12-2-12.2.128-1.x86_64 21/62
  362. Verifying : cuda-nvprof-12-2-12.2.131-1.x86_64 22/62
  363. Verifying : cuda-nvcc-12-2-12.2.128-1.x86_64 23/62
  364. Verifying : cuda-toolkit-12-config-common-12.2.128-1.noarch 24/62
  365. Verifying : cuda-opencl-devel-12-2-12.2.128-1.x86_64 25/62
  366. Verifying : cuda-nvdisasm-12-2-12.2.128-1.x86_64 26/62
  367. Verifying : cuda-libraries-12-2-12.2.1-1.x86_64 27/62
  368. Verifying : cuda-runtime-12-2-12.2.1-1.x86_64 28/62
  369. Verifying : libcusolver-devel-12-2-11.5.1.129-1.x86_64 29/62
  370. Verifying : cuda-nvrtc-12-2-12.2.128-1.x86_64 30/62
  371. Verifying : libnpp-devel-12-2-12.2.0.5-1.x86_64 31/62
  372. Verifying : cuda-profiler-api-12-2-12.2.128-1.x86_64 32/62
  373. Verifying : cuda-opencl-12-2-12.2.128-1.x86_64 33/62
  374. Verifying : libnvjpeg-12-2-12.2.1.2-1.x86_64 34/62
  375. Verifying : libcurand-devel-12-2-10.3.3.129-1.x86_64 35/62
  376. Verifying : libcufft-12-2-11.0.8.91-1.x86_64 36/62
  377. Verifying : cuda-gdb-12-2-12.2.128-1.x86_64 37/62
  378. Verifying : cuda-nsight-compute-12-2-12.2.1-1.x86_64 38/62
  379. Verifying : nsight-systems-2023.2.3-2023.2.3.1001_32894139v0-0.x86_64 39/62
  380. Verifying : cuda-libraries-devel-12-2-12.2.1-1.x86_64 40/62
  381. Verifying : cuda-nvvp-12-2-12.2.131-1.x86_64 41/62
  382. Verifying : cuda-cudart-12-2-12.2.128-1.x86_64 42/62
  383. Verifying : libcublas-devel-12-2-12.2.4.5-1.x86_64 43/62
  384. Verifying : cuda-driver-devel-12-2-12.2.128-1.x86_64 44/62
  385. Verifying : libcufft-devel-12-2-11.0.8.91-1.x86_64 45/62
  386. Verifying : cuda-visual-tools-12-2-12.2.1-1.x86_64 46/62
  387. Verifying : cuda-12-2-12.2.1-1.x86_64 47/62
  388. Verifying : cuda-cuobjdump-12-2-12.2.128-1.x86_64 48/62
  389. Verifying : cuda-12.2.1-1.x86_64 49/62
  390. Verifying : cuda-cccl-12-2-12.2.128-1.x86_64 50/62
  391. Verifying : libcufile-devel-12-2-1.7.1.12-1.x86_64 51/62
  392. Verifying : cuda-command-line-tools-12-2-12.2.1-1.x86_64 52/62
  393. Verifying : cuda-nvprune-12-2-12.2.128-1.x86_64 53/62
  394. Verifying : libnvjpeg-devel-12-2-12.2.1.2-1.x86_64 54/62
  395. Verifying : libcusolver-12-2-11.5.1.129-1.x86_64 55/62
  396. Verifying : cuda-cuxxfilt-12-2-12.2.128-1.x86_64 56/62
  397. Verifying : cuda-cudart-devel-12-2-12.2.128-1.x86_64 57/62
  398. Verifying : cuda-demo-suite-12-2-12.2.128-1.x86_64 58/62
  399. Verifying : cuda-sanitizer-12-2-12.2.128-1.x86_64 59/62
  400. Verifying : libnvjitlink-12-2-12.2.128-1.x86_64 60/62
  401. Verifying : cuda-nsight-systems-12-2-12.2.1-1.x86_64 61/62
  402. Verifying : libnvjitlink-devel-12-2-12.2.128-1.x86_64 62/62
  403. Installed:
  404. cuda.x86_64 0:12.2.1-1
  405. Dependency Installed:
  406. cuda-12-2.x86_64 0:12.2.1-1 cuda-cccl-12-2.x86_64 0:12.2.128-1 cuda-command-line-tools-12-2.x86_64 0:12.2.1-1
  407. cuda-compiler-12-2.x86_64 0:12.2.1-1 cuda-crt-12-2.x86_64 0:12.2.128-1 cuda-cudart-12-2.x86_64 0:12.2.128-1
  408. cuda-cudart-devel-12-2.x86_64 0:12.2.128-1 cuda-cuobjdump-12-2.x86_64 0:12.2.128-1 cuda-cupti-12-2.x86_64 0:12.2.131-1
  409. cuda-cuxxfilt-12-2.x86_64 0:12.2.128-1 cuda-demo-suite-12-2.x86_64 0:12.2.128-1 cuda-documentation-12-2.x86_64 0:12.2.128-1
  410. cuda-driver-devel-12-2.x86_64 0:12.2.128-1 cuda-gdb-12-2.x86_64 0:12.2.128-1 cuda-libraries-12-2.x86_64 0:12.2.1-1
  411. cuda-libraries-devel-12-2.x86_64 0:12.2.1-1 cuda-nsight-12-2.x86_64 0:12.2.128-1 cuda-nsight-compute-12-2.x86_64 0:12.2.1-1
  412. cuda-nsight-systems-12-2.x86_64 0:12.2.1-1 cuda-nvcc-12-2.x86_64 0:12.2.128-1 cuda-nvdisasm-12-2.x86_64 0:12.2.128-1
  413. cuda-nvml-devel-12-2.x86_64 0:12.2.128-1 cuda-nvprof-12-2.x86_64 0:12.2.131-1 cuda-nvprune-12-2.x86_64 0:12.2.128-1
  414. cuda-nvrtc-12-2.x86_64 0:12.2.128-1 cuda-nvrtc-devel-12-2.x86_64 0:12.2.128-1 cuda-nvtx-12-2.x86_64 0:12.2.128-1
  415. cuda-nvvm-12-2.x86_64 0:12.2.128-1 cuda-nvvp-12-2.x86_64 0:12.2.131-1 cuda-opencl-12-2.x86_64 0:12.2.128-1
  416. cuda-opencl-devel-12-2.x86_64 0:12.2.128-1 cuda-profiler-api-12-2.x86_64 0:12.2.128-1 cuda-runtime-12-2.x86_64 0:12.2.1-1
  417. cuda-sanitizer-12-2.x86_64 0:12.2.128-1 cuda-toolkit-12-2.x86_64 0:12.2.1-1 cuda-toolkit-12-2-config-common.noarch 0:12.2.128-1
  418. cuda-toolkit-12-config-common.noarch 0:12.2.128-1 cuda-toolkit-config-common.noarch 0:12.2.128-1 cuda-tools-12-2.x86_64 0:12.2.1-1
  419. cuda-visual-tools-12-2.x86_64 0:12.2.1-1 gds-tools-12-2.x86_64 0:1.7.1.12-1 libcublas-12-2.x86_64 0:12.2.4.5-1
  420. libcublas-devel-12-2.x86_64 0:12.2.4.5-1 libcufft-12-2.x86_64 0:11.0.8.91-1 libcufft-devel-12-2.x86_64 0:11.0.8.91-1
  421. libcufile-12-2.x86_64 0:1.7.1.12-1 libcufile-devel-12-2.x86_64 0:1.7.1.12-1 libcurand-12-2.x86_64 0:10.3.3.129-1
  422. libcurand-devel-12-2.x86_64 0:10.3.3.129-1 libcusolver-12-2.x86_64 0:11.5.1.129-1 libcusolver-devel-12-2.x86_64 0:11.5.1.129-1
  423. libcusparse-12-2.x86_64 0:12.1.2.129-1 libcusparse-devel-12-2.x86_64 0:12.1.2.129-1 libnpp-12-2.x86_64 0:12.2.0.5-1
  424. libnpp-devel-12-2.x86_64 0:12.2.0.5-1 libnvjitlink-12-2.x86_64 0:12.2.128-1 libnvjitlink-devel-12-2.x86_64 0:12.2.128-1
  425. libnvjpeg-12-2.x86_64 0:12.2.1.2-1 libnvjpeg-devel-12-2.x86_64 0:12.2.1.2-1 nsight-compute-2023.2.1.x86_64 0:2023.2.1.3-1
  426. nsight-systems-2023.2.3.x86_64 0:2023.2.3.1001_32894139v0-0
  427. Complete!

2.6.3 安装过程cuda-drivers

  1. [ xxx ]# sudo yum install cuda-drivers
  2. Loaded plugins: fastestmirror, langpacks, nvidia
  3. Loading mirror speeds from cached hostfile
  4. Resolving Dependencies
  5. --> Running transaction check
  6. ---> Package cuda-drivers.x86_64 0:535.86.10-1 will be installed
  7. --> Processing Dependency: nvidia-libXNVCtrl >= 3:535.86.10 for package: cuda-drivers-535.86.10-1.x86_64
  8. --> Processing Dependency: nvidia-libXNVCtrl-devel >= 3:535.86.10 for package: cuda-drivers-535.86.10-1.x86_64
  9. --> Processing Dependency: nvidia-settings >= 3:535.86.10 for package: cuda-drivers-535.86.10-1.x86_64
  10. --> Running transaction check
  11. ---> Package nvidia-libXNVCtrl.x86_64 3:535.86.10-1.el7 will be installed
  12. ---> Package nvidia-libXNVCtrl-devel.x86_64 3:535.86.10-1.el7 will be installed
  13. ---> Package nvidia-settings.x86_64 3:535.86.10-1.el7 will be installed
  14. --> Finished Dependency Resolution
  15. Dependencies Resolved
  16. ========================================================================================================================================================================
  17. Package Arch Version Repository Size
  18. ========================================================================================================================================================================
  19. Installing:
  20. cuda-drivers x86_64 535.86.10-1 cuda-rhel7-x86_64 3.6 k
  21. Installing for dependencies:
  22. nvidia-libXNVCtrl x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 50 k
  23. nvidia-libXNVCtrl-devel x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 59 k
  24. nvidia-settings x86_64 3:535.86.10-1.el7 cuda-rhel7-x86_64 1.5 M
  25. Transaction Summary
  26. ========================================================================================================================================================================
  27. Install 1 Package (+3 Dependent packages)
  28. Total download size: 1.6 M
  29. Installed size: 4.5 M
  30. Is this ok [y/d/N]: y
  31. Downloading packages:
  32. (1/4): cuda-drivers-535.86.10-1.x86_64.rpm | 3.6 kB 00:00:01
  33. (2/4): nvidia-libXNVCtrl-535.86.10-1.el7.x86_64.rpm | 50 kB 00:00:01
  34. (3/4): nvidia-libXNVCtrl-devel-535.86.10-1.el7.x86_64.rpm | 59 kB 00:00:00
  35. (4/4): nvidia-settings-535.86.10-1.el7.x86_64.rpm | 1.5 MB 00:00:01
  36. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  37. Total 567 kB/s | 1.6 MB 00:00:02
  38. Running transaction check
  39. Running transaction test
  40. Transaction test succeeded
  41. Running transaction
  42. Installing : 3:nvidia-libXNVCtrl-535.86.10-1.el7.x86_64 1/4
  43. Installing : 3:nvidia-libXNVCtrl-devel-535.86.10-1.el7.x86_64 2/4
  44. Installing : 3:nvidia-settings-535.86.10-1.el7.x86_64 3/4
  45. Installing : cuda-drivers-535.86.10-1.x86_64 4/4
  46. Verifying : 3:nvidia-libXNVCtrl-535.86.10-1.el7.x86_64 1/4
  47. Verifying : 3:nvidia-libXNVCtrl-devel-535.86.10-1.el7.x86_64 2/4
  48. Verifying : 3:nvidia-settings-535.86.10-1.el7.x86_64 3/4
  49. Verifying : cuda-drivers-535.86.10-1.x86_64 4/4
  50. Installed:
  51. cuda-drivers.x86_64 0:535.86.10-1
  52. Dependency Installed:
  53. nvidia-libXNVCtrl.x86_64 3:535.86.10-1.el7 nvidia-libXNVCtrl-devel.x86_64 3:535.86.10-1.el7 nvidia-settings.x86_64 3:535.86.10-1.el7
  54. Complete!

2.7 重启

sudo reboot

2.8 添加CUDA PATH

export PATH=/usr/local/cuda-12.2/bin${PATH:+:${PATH}}

或者将上述命令加入到 /etc/profile中,source /etc/profile

2.9 验证是否安装成功

2.9.1 查看设备和驱动版本

  1. # nvidia-smi
  2. +---------------------------------------------------------------------------------------+
  3. | NVIDIA-SMI 535.86.10 Driver Version: 535.86.10 CUDA Version: 12.2 |
  4. |-----------------------------------------+----------------------+----------------------+
  5. | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
  6. | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
  7. | | | MIG M. |
  8. |=========================================+======================+======================|
  9. | 0 Tesla P100-PCIE-16GB Off | 00000000:31:00.0 Off | 0 |
  10. | N/A 30C P0 25W / 250W | 0MiB / 16384MiB | 0% Default |
  11. | | | N/A |
  12. +-----------------------------------------+----------------------+----------------------+
  13. +---------------------------------------------------------------------------------------+
  14. | Processes: |
  15. | GPU GI CI PID Type Process name GPU Memory |
  16. | ID ID Usage |
  17. |=======================================================================================|
  18. | No running processes found |
  19. +---------------------------------------------------------------------------------------+

2.9.2 查看CUDA版本

  1. # nvcc --version
  2. nvcc: NVIDIA (R) Cuda compiler driver
  3. Copyright (c) 2005-2023 NVIDIA Corporation
  4. Built on Tue_Jul_11_02:20:44_PDT_2023
  5. Cuda compilation tools, release 12.2, V12.2.128
  6. Build cuda_12.2.r12.2/compiler.33053471_0

2.9.3 图形化界面访问

打开NIVIDIA X Server Settings 

驱动版本信息

GPU显卡信息

 NVIDIA Tesla P100,内存16G,共有3584个并行计算单元

 GPU显卡温度信息:

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/128575
推荐阅读
相关标签
  

闽ICP备14008679号