无法找到(并卸载)已安装的 CUDA 版本

无法找到(并卸载)已安装的 CUDA 版本

我正在尝试安装 CUDA 版本 10.0,但它告诉我已经安装了较新的版本。我无法找到较新的版本,因此无法运行卸载程序。我使用的是 CentOS 7。这是我所做的:

我使用 wget 获取 rpm,然后尝试安装它, sudo rpm -i cuda-repo-rhel7-10.0.130-1.x86_64.rpm结果如下:

package cuda-repo-rhel7-10.1.105-1.x86_64 (which is newer than cuda-repo-rhel7-10.0.130-1.x86_64) is already installed

但是,如果我运行nvcc --version我会得到:-bash: nvcc: command not foundwhich nvcc也没有显示任何东西。

我检查了 usr/local,有 cuda-7.5、cuda-9.0、cuda 和 cuda-8.0 的目录。 cuda文件夹中包含9.0。如何找到已安装的 CUDA 版本并卸载它?

根据评论,我添加了一些输出: yum list available | grep cuda结果:

cuda.x86_64                              10.1.105-1                      cuda   
cuda-10-0.x86_64                         10.0.130-1                      cuda   
cuda-10-1.x86_64                         10.1.105-1                      cuda   
cuda-7-0.x86_64                          7.0-28                          cuda   
cuda-7-5.x86_64                          7.5-18                          cuda   
cuda-8-0.x86_64                          8.0.61-1                        cuda   
cuda-9-0.x86_64                          9.0.176-1                       cuda   
cuda-9-1.x86_64                          9.1.85-1                        cuda   
cuda-9-2.x86_64                          9.2.148-1                       cuda   
cuda-command-line-tools-10-0.x86_64      10.0.130-1                      cuda   
cuda-command-line-tools-10-1.x86_64      10.1.105-1                      cuda   
cuda-command-line-tools-7-0.x86_64       7.0-28                          cuda   
cuda-command-line-tools-9-1.x86_64       9.1.85-1                        cuda   
cuda-command-line-tools-9-2.x86_64       9.2.148-1                       cuda   
cuda-compat-10-0.x86_64                  1:410.104-1.el7                 cuda   
cuda-compat-10-1.x86_64                  1:418.40.04-1                   cuda   
cuda-compiler-10-0.x86_64                10.0.130-1                      cuda   
cuda-compiler-10-1.x86_64                10.1.105-1                      cuda   
cuda-compiler-9-1.x86_64                 9.1.85-1                        cuda   
cuda-compiler-9-2.x86_64                 9.2.148-1                       cuda   
cuda-core-10-0.x86_64                    10.0.130-1                      cuda   
cuda-core-10-1.x86_64                    10.1.105-1                      cuda   
cuda-core-7-0.x86_64                     7.0-28                          cuda   
cuda-core-9-1.x86_64                     9.1.85-1                        cuda   
cuda-core-9-2.x86_64                     9.2.148-1                       cuda   
cuda-cublas-10-0.x86_64                  10.0.130-1                      cuda   
cuda-cublas-7-0.x86_64                   7.0-28                          cuda   
cuda-cublas-9-1.x86_64                   9.1.85.3-1                      cuda   
cuda-cublas-9-2.x86_64                   9.2.148.1-1                     cuda   
cuda-cublas-dev-10-0.x86_64              10.0.130-1                      cuda   
cuda-cublas-dev-7-0.x86_64               7.0-28                          cuda   
cuda-cublas-dev-9-1.x86_64               9.1.85.3-1                      cuda   
cuda-cublas-dev-9-2.x86_64               9.2.148.1-1                     cuda   
cuda-cudart-10-0.x86_64                  10.0.130-1                      cuda   
cuda-cudart-10-1.x86_64                  10.1.105-1                      cuda   
cuda-cudart-7-0.x86_64                   7.0-28                          cuda   
cuda-cudart-9-1.x86_64                   9.1.85-1                        cuda   
cuda-cudart-9-2.x86_64                   9.2.148-1                       cuda   
cuda-cudart-dev-10-0.x86_64              10.0.130-1                      cuda   
cuda-cudart-dev-10-1.x86_64              10.1.105-1                      cuda   
cuda-cudart-dev-7-0.x86_64               7.0-28                          cuda   
cuda-cudart-dev-9-1.x86_64               9.1.85-1                        cuda   
cuda-cudart-dev-9-2.x86_64               9.2.148-1                       cuda   
cuda-cufft-10-0.x86_64                   10.0.130-1                      cuda   
cuda-cufft-10-1.x86_64                   10.1.105-1                      cuda   
cuda-cufft-7-0.x86_64                    7.0-28                          cuda   
cuda-cufft-9-1.x86_64                    9.1.85-1                        cuda   
cuda-cufft-9-2.x86_64                    9.2.148-1                       cuda   
cuda-cufft-dev-10-0.x86_64               10.0.130-1                      cuda   
cuda-cufft-dev-10-1.x86_64               10.1.105-1                      cuda   
cuda-cufft-dev-7-0.x86_64                7.0-28                          cuda   
cuda-cufft-dev-9-1.x86_64                9.1.85-1                        cuda   
cuda-cufft-dev-9-2.x86_64                9.2.148-1                       cuda   
cuda-cuobjdump-10-0.x86_64               10.0.130-1                      cuda   
cuda-cuobjdump-10-1.x86_64               10.1.105-1                      cuda   
cuda-cuobjdump-9-1.x86_64                9.1.85-1                        cuda   
cuda-cuobjdump-9-2.x86_64                9.2.148.1-1                     cuda   
cuda-cupti-10-0.x86_64                   10.0.130-1                      cuda   
cuda-cupti-10-1.x86_64                   10.1.105-1                      cuda   
cuda-cupti-9-1.x86_64                    9.1.85-1                        cuda   
cuda-cupti-9-2.x86_64                    9.2.148.1-1                     cuda   
cuda-curand-10-0.x86_64                  10.0.130-1                      cuda   
cuda-curand-10-1.x86_64                  10.1.105-1                      cuda   
cuda-curand-7-0.x86_64                   7.0-28                          cuda   
cuda-curand-9-1.x86_64                   9.1.85-1                        cuda   
cuda-curand-9-2.x86_64                   9.2.148-1                       cuda   
cuda-curand-dev-10-0.x86_64              10.0.130-1                      cuda   
cuda-curand-dev-10-1.x86_64              10.1.105-1                      cuda   
cuda-curand-dev-7-0.x86_64               7.0-28                          cuda   
cuda-curand-dev-9-1.x86_64               9.1.85-1                        cuda   
cuda-curand-dev-9-2.x86_64               9.2.148-1                       cuda   
cuda-cusolver-10-0.x86_64                10.0.130-1                      cuda   
cuda-cusolver-10-1.x86_64                10.1.105-1                      cuda   
cuda-cusolver-7-0.x86_64                 7.0-28                          cuda   
cuda-cusolver-9-1.x86_64                 9.1.85-1                        cuda   
cuda-cusolver-9-2.x86_64                 9.2.148-1                       cuda   
cuda-cusolver-dev-10-0.x86_64            10.0.130-1                      cuda   
cuda-cusolver-dev-10-1.x86_64            10.1.105-1                      cuda   
cuda-cusolver-dev-7-0.x86_64             7.0-28                          cuda   
cuda-cusolver-dev-9-1.x86_64             9.1.85-1                        cuda   
cuda-cusolver-dev-9-2.x86_64             9.2.148-1                       cuda   
cuda-cusparse-10-0.x86_64                10.0.130-1                      cuda   
cuda-cusparse-10-1.x86_64                10.1.105-1                      cuda   
cuda-cusparse-7-0.x86_64                 7.0-28                          cuda   
cuda-cusparse-9-1.x86_64                 9.1.85-1                        cuda   
cuda-cusparse-9-2.x86_64                 9.2.148-1                       cuda   
cuda-cusparse-dev-10-0.x86_64            10.0.130-1                      cuda   
cuda-cusparse-dev-10-1.x86_64            10.1.105-1                      cuda   
cuda-cusparse-dev-7-0.x86_64             7.0-28                          cuda   
cuda-cusparse-dev-9-1.x86_64             9.1.85-1                        cuda   
cuda-cusparse-dev-9-2.x86_64             9.2.148-1                       cuda   
cuda-demo-suite-10-0.x86_64              10.0.130-1                      cuda   
cuda-demo-suite-10-1.x86_64              10.1.105-1                      cuda   
cuda-demo-suite-8-0.x86_64               8.0.61-1                        cuda   
cuda-demo-suite-9-0.x86_64               9.0.176-1                       cuda   
cuda-demo-suite-9-1.x86_64               9.1.85-1                        cuda   
cuda-demo-suite-9-2.x86_64               9.2.148-1                       cuda   
cuda-documentation-10-0.x86_64           10.0.130-1                      cuda   
cuda-documentation-10-1.x86_64           10.1.105-1                      cuda   
cuda-documentation-7-0.x86_64            7.0-28                          cuda   
cuda-documentation-9-1.x86_64            9.1.85-1                        cuda   
cuda-documentation-9-2.x86_64            9.2.148-1                       cuda   
cuda-driver-dev-10-0.x86_64              10.0.130-1                      cuda   
cuda-driver-dev-10-1.x86_64              10.1.105-1                      cuda   
cuda-driver-dev-7-0.x86_64               7.0-28                          cuda   
cuda-driver-dev-9-1.x86_64               9.1.85-1                        cuda   
cuda-driver-dev-9-2.x86_64               9.2.148-1                       cuda   
cuda-drivers.x86_64                      418.40.04-1                     cuda   
cuda-drivers-diagnostic.x86_64           418.40.04-1                     cuda   
cuda-gdb-10-0.x86_64                     10.0.130-1                      cuda   
cuda-gdb-10-1.x86_64                     10.1.105-1                      cuda   
cuda-gdb-9-1.x86_64                      9.1.85-1                        cuda   
cuda-gdb-9-2.x86_64                      9.2.148.1-1                     cuda   
cuda-gdb-src-10-0.x86_64                 10.0.130-1                      cuda   
cuda-gdb-src-10-1.x86_64                 10.1.105-1                      cuda   
cuda-gdb-src-7-0.x86_64                  7.0-28                          cuda   
cuda-gdb-src-7-5.x86_64                  7.5-18                          cuda   
cuda-gdb-src-8-0.x86_64                  8.0.61-1                        cuda   
cuda-gdb-src-9-0.x86_64                  9.0.176-1                       cuda   
cuda-gdb-src-9-1.x86_64                  9.1.85-1                        cuda   
cuda-gdb-src-9-2.x86_64                  9.2.148-1                       cuda   
cuda-gpu-library-advisor-10-0.x86_64     10.0.130-1                      cuda   
cuda-gpu-library-advisor-10-1.x86_64     10.1.105-1                      cuda   
cuda-gpu-library-advisor-9-1.x86_64      9.1.85-1                        cuda   
cuda-gpu-library-advisor-9-2.x86_64      9.2.148-1                       cuda   
cuda-libraries-10-0.x86_64               10.0.130-1                      cuda   
cuda-libraries-10-1.x86_64               10.1.105-1                      cuda   
cuda-libraries-9-1.x86_64                9.1.85-1                        cuda   
cuda-libraries-9-2.x86_64                9.2.148-1                       cuda   
cuda-libraries-dev-10-0.x86_64           10.0.130-1                      cuda   
cuda-libraries-dev-10-1.x86_64           10.1.105-1                      cuda   
cuda-libraries-dev-9-1.x86_64            9.1.85-1                        cuda   
cuda-libraries-dev-9-2.x86_64            9.2.148-1                       cuda   
cuda-license-10-0.x86_64                 10.0.130-1                      cuda   
cuda-license-10-1.x86_64                 10.1.105-1                      cuda   
cuda-license-7-0.x86_64                  7.0-28                          cuda   
cuda-license-9-1.x86_64                  9.1.85-1                        cuda   
cuda-license-9-2.x86_64                  9.2.148-1                       cuda   
cuda-memcheck-10-0.x86_64                10.0.130-1                      cuda   
cuda-memcheck-10-1.x86_64                10.1.105-1                      cuda   
cuda-memcheck-9-1.x86_64                 9.1.85-1                        cuda   
cuda-memcheck-9-2.x86_64                 9.2.148-1                       cuda   
cuda-minimal-build-10-0.x86_64           10.0.130-1                      cuda   
cuda-minimal-build-10-1.x86_64           10.1.105-1                      cuda   
cuda-minimal-build-7-0.x86_64            7.0-28                          cuda   
cuda-minimal-build-7-5.x86_64            7.5-18                          cuda   
cuda-minimal-build-8-0.x86_64            8.0.61-1                        cuda   
cuda-minimal-build-9-0.x86_64            9.0.176-1                       cuda   
cuda-minimal-build-9-1.x86_64            9.1.85-1                        cuda   
cuda-minimal-build-9-2.x86_64            9.2.148-1                       cuda   
cuda-misc-headers-10-0.x86_64            10.0.130-1                      cuda   
cuda-misc-headers-10-1.x86_64            10.1.105-1                      cuda   
cuda-misc-headers-7-0.x86_64             7.0-28                          cuda   
cuda-misc-headers-9-1.x86_64             9.1.85-1                        cuda   
cuda-misc-headers-9-2.x86_64             9.2.148-1                       cuda   
cuda-npp-10-0.x86_64                     10.0.130-1                      cuda   
cuda-npp-10-1.x86_64                     10.1.105-1                      cuda   
cuda-npp-7-0.x86_64                      7.0-28                          cuda   
cuda-npp-9-1.x86_64                      9.1.85-1                        cuda   
cuda-npp-9-2.x86_64                      9.2.148-1                       cuda   
cuda-npp-dev-10-0.x86_64                 10.0.130-1                      cuda   
cuda-npp-dev-10-1.x86_64                 10.1.105-1                      cuda   
cuda-npp-dev-7-0.x86_64                  7.0-28                          cuda   
cuda-npp-dev-9-1.x86_64                  9.1.85-1                        cuda   
cuda-npp-dev-9-2.x86_64                  9.2.148-1                       cuda   
cuda-nsight-10-0.x86_64                  10.0.130-1                      cuda   
cuda-nsight-10-1.x86_64                  10.1.105-1                      cuda   
cuda-nsight-9-1.x86_64                   9.1.85-1                        cuda   
cuda-nsight-9-2.x86_64                   9.2.148-1                       cuda   
cuda-nsight-compute-10-0.x86_64          10.0.130-1                      cuda   
cuda-nsight-compute-10-1.x86_64          10.1.105-1                      cuda   
cuda-nsight-systems-10-1.x86_64          10.1.105-1                      cuda   
cuda-nvcc-10-0.x86_64                    10.0.130-1                      cuda   
cuda-nvcc-10-1.x86_64                    10.1.105-1                      cuda   
cuda-nvcc-9-1.x86_64                     9.1.85.2-1                      cuda   
cuda-nvcc-9-2.x86_64                     9.2.148-1                       cuda   
cuda-nvdisasm-10-0.x86_64                10.0.130-1                      cuda   
cuda-nvdisasm-10-1.x86_64                10.1.105-1                      cuda   
cuda-nvdisasm-9-1.x86_64                 9.1.85-1                        cuda   
cuda-nvdisasm-9-2.x86_64                 9.2.148.1-1                     cuda   
cuda-nvgraph-10-0.x86_64                 10.0.130-1                      cuda   
cuda-nvgraph-10-1.x86_64                 10.1.105-1                      cuda   
cuda-nvgraph-9-1.x86_64                  9.1.85-1                        cuda   
cuda-nvgraph-9-2.x86_64                  9.2.148-1                       cuda   
cuda-nvgraph-dev-10-0.x86_64             10.0.130-1                      cuda   
cuda-nvgraph-dev-10-1.x86_64             10.1.105-1                      cuda   
cuda-nvgraph-dev-9-1.x86_64              9.1.85-1                        cuda   
cuda-nvgraph-dev-9-2.x86_64              9.2.148-1                       cuda   
cuda-nvidia-kmod-common.x86_64           352.99-0                        cuda   
cuda-nvjpeg-10-0.x86_64                  10.0.130-1                      cuda   
cuda-nvjpeg-10-1.x86_64                  10.1.105-1                      cuda   
cuda-nvjpeg-dev-10-0.x86_64              10.0.130-1                      cuda   
cuda-nvjpeg-dev-10-1.x86_64              10.1.105-1                      cuda   
cuda-nvml-dev-10-0.x86_64                10.0.130-1                      cuda   
cuda-nvml-dev-10-1.x86_64                10.1.105-1                      cuda   
cuda-nvml-dev-9-1.x86_64                 9.1.85-1                        cuda   
cuda-nvml-dev-9-2.x86_64                 9.2.148-1                       cuda   
cuda-nvprof-10-0.x86_64                  10.0.130-1                      cuda   
cuda-nvprof-10-1.x86_64                  10.1.105-1                      cuda   
cuda-nvprof-9-1.x86_64                   9.1.85-1                        cuda   
cuda-nvprof-9-2.x86_64                   9.2.148.1-1                     cuda   
cuda-nvprune-10-0.x86_64                 10.0.130-1                      cuda   
cuda-nvprune-10-1.x86_64                 10.1.105-1                      cuda   
cuda-nvprune-9-1.x86_64                  9.1.85-1                        cuda   
cuda-nvprune-9-2.x86_64                  9.2.148-1                       cuda   
cuda-nvrtc-10-0.x86_64                   10.0.130-1                      cuda   
cuda-nvrtc-10-1.x86_64                   10.1.105-1                      cuda   
cuda-nvrtc-7-0.x86_64                    7.0-28                          cuda   
cuda-nvrtc-9-1.x86_64                    9.1.85-1                        cuda   
cuda-nvrtc-9-2.x86_64                    9.2.148-1                       cuda   
cuda-nvrtc-dev-10-0.x86_64               10.0.130-1                      cuda   
cuda-nvrtc-dev-10-1.x86_64               10.1.105-1                      cuda   
cuda-nvrtc-dev-7-0.x86_64                7.0-28                          cuda   
cuda-nvrtc-dev-9-1.x86_64                9.1.85-1                        cuda   
cuda-nvrtc-dev-9-2.x86_64                9.2.148-1                       cuda   
cuda-nvtx-10-0.x86_64                    10.0.130-1                      cuda   
cuda-nvtx-10-1.x86_64                    10.1.105-1                      cuda   
cuda-nvtx-9-1.x86_64                     9.1.85-1                        cuda   
cuda-nvtx-9-2.x86_64                     9.2.148-1                       cuda   
cuda-nvvp-10-0.x86_64                    10.0.130-1                      cuda   
cuda-nvvp-10-1.x86_64                    10.1.105-1                      cuda   
cuda-nvvp-9-1.x86_64                     9.1.85-1                        cuda   
cuda-nvvp-9-2.x86_64                     9.2.148-1                       cuda   
cuda-runtime-10-0.x86_64                 10.0.130-1                      cuda   
cuda-runtime-10-1.x86_64                 10.1.105-1                      cuda   
cuda-runtime-7-0.x86_64                  7.0-28                          cuda   
cuda-runtime-7-5.x86_64                  7.5-18                          cuda   
cuda-runtime-8-0.x86_64                  8.0.61-1                        cuda   
cuda-runtime-9-0.x86_64                  9.0.176-1                       cuda   
cuda-runtime-9-1.x86_64                  9.1.85-1                        cuda   
cuda-runtime-9-2.x86_64                  9.2.148-1                       cuda   
cuda-samples-10-0.x86_64                 10.0.130-1                      cuda   
cuda-samples-10-1.x86_64                 10.1.105-1                      cuda   
cuda-samples-7-0.x86_64                  7.0-28                          cuda   
cuda-samples-9-1.x86_64                  9.1.85-1                        cuda   
cuda-samples-9-2.x86_64                  9.2.148-1                       cuda   
cuda-sanitizer-api-10-1.x86_64           10.1.105-1                      cuda   
cuda-toolkit-10-0.x86_64                 10.0.130-1                      cuda   
cuda-toolkit-10-1.x86_64                 10.1.105-1                      cuda   
cuda-toolkit-7-0.x86_64                  7.0-28                          cuda   
cuda-toolkit-9-1.x86_64                  9.1.85-1                        cuda   
cuda-toolkit-9-2.x86_64                  9.2.148-1                       cuda   
cuda-tools-10-0.x86_64                   10.0.130-1                      cuda   
cuda-tools-10-1.x86_64                   10.1.105-1                      cuda   
cuda-tools-9-1.x86_64                    9.1.85-1                        cuda   
cuda-tools-9-2.x86_64                    9.2.148-1                       cuda   
cuda-visual-tools-10-0.x86_64            10.0.130-1                      cuda   
cuda-visual-tools-10-1.x86_64            10.1.105-1                      cuda   
cuda-visual-tools-7-0.x86_64             7.0-28                          cuda   
cuda-visual-tools-9-1.x86_64             9.1.85-1                        cuda   
cuda-visual-tools-9-2.x86_64             9.2.148-1                       cuda   
dkms-nvidia.x86_64                       3:418.40.04-1.el7               cuda   
gpu-deployment-kit.x86_64                352.93-0                        cuda   
libcublas-devel.x86_64                   10.1.0.105-1                    cuda   
libcublas10.x86_64                       10.1.0.105-1                    cuda   
libglvnd-debuginfo.x86_64                1:1.0.1-0.6.git5baa1e5.el7      cuda   
nvidia-driver.x86_64                     3:418.40.04-4.el7               cuda   
nvidia-driver-NVML.x86_64                3:418.40.04-4.el7               cuda   
nvidia-driver-NvFBCOpenGL.x86_64         3:418.40.04-4.el7               cuda   
nvidia-driver-cuda.x86_64                3:418.40.04-4.el7               cuda   
nvidia-driver-cuda-libs.x86_64           3:418.40.04-4.el7               cuda   
nvidia-driver-devel.x86_64               3:418.40.04-4.el7               cuda   
nvidia-driver-diagnostic.x86_64          3:418.40.04-4.el7               cuda   
nvidia-driver-libs.x86_64                3:418.40.04-4.el7               cuda   
nvidia-kmod.x86_64                       1:396.82-2.el7                  cuda   
nvidia-libXNVCtrl.x86_64                 3:418.40.04-1.el7               cuda   
nvidia-libXNVCtrl-devel.x86_64           3:418.40.04-1.el7               cuda   
nvidia-modprobe.x86_64                   3:418.40.04-1.el7               cuda   
nvidia-persistenced.x86_64               3:418.40.04-1.el7               cuda   
nvidia-settings.x86_64                   3:418.40.04-1.el7               cuda   
nvidia-uvm-kmod.x86_64                   1:352.99-3.el7                  cuda   
nvidia-xconfig.x86_64                    3:418.40.04-1.el7               cuda   
xorg-x11-drv-nvidia.x86_64               1:396.82-1.el7                  cuda   
xorg-x11-drv-nvidia-devel.x86_64         1:396.82-1.el7                  cuda   
xorg-x11-drv-nvidia-diagnostic.x86_64    1:396.82-1.el7                  cuda   
xorg-x11-drv-nvidia-gl.x86_64            1:396.82-1.el7                  cuda   
xorg-x11-drv-nvidia-libs.x86_64          1:396.82-1.el7                  cuda   

rpm -qa | grep cuda结果是:

cuda-toolkit-8-0-8.0.61-1.x86_64
cuda-cublas-dev-8-0-8.0.61.2-1.x86_64
cuda-toolkit-9-0-9.0.176-1.x86_64
cuda-license-9-0-9.0.176-1.x86_64
cuda-cusparse-dev-7-5-7.5-18.x86_64
cuda-curand-7-5-7.5-18.x86_64
cuda-license-8-0-8.0.61-1.x86_64
cuda-cusolver-9-0-9.0.176-1.x86_64
cuda-cusparse-8-0-8.0.61-1.x86_64
cuda-cufft-9-0-9.0.176-1.x86_64
cuda-cufft-dev-8-0-8.0.61-1.x86_64
cuda-samples-8-0-8.0.61-1.x86_64
cuda-cufft-7-5-7.5-18.x86_64
cuda-cudart-7-5-7.5-18.x86_64
cuda-npp-dev-7-5-7.5-18.x86_64
cuda-documentation-7-5-7.5-18.x86_64
cuda-nvrtc-9-0-9.0.176-1.x86_64
cuda-nvgraph-dev-8-0-8.0.61-1.x86_64
cuda-npp-dev-9-0-9.0.176-1.x86_64
cuda-npp-8-0-8.0.61-1.x86_64
cuda-nvgraph-9-0-9.0.176-1.x86_64
cuda-command-line-tools-8-0-8.0.61-1.x86_64
cuda-cublas-8-0-8.0.61.2-1.x86_64
cuda-libraries-dev-9-0-9.0.176-1.x86_64
cuda-samples-9-0-9.0.176-1.x86_64
cuda-cufft-dev-7-5-7.5-18.x86_64
cuda-cusolver-dev-7-5-7.5-18.x86_64
cuda-cudart-dev-7-5-7.5-18.x86_64
cuda-cublas-7-5-7.5-18.x86_64
cuda-nvrtc-dev-9-0-9.0.176-1.x86_64
cuda-cusparse-9-0-9.0.176-1.x86_64
cuda-cudart-9-0-9.0.176-1.x86_64
cuda-curand-9-0-9.0.176-1.x86_64
cuda-nvgraph-dev-9-0-9.0.176-1.x86_64
cuda-documentation-8-0-8.0.61-1.x86_64
cuda-repo-rhel7-10.1.105-1.x86_64
cuda-toolkit-7-5-7.5-18.x86_64
cuda-nvrtc-8-0-8.0.61-1.x86_64
cuda-curand-8-0-8.0.61-1.x86_64
cuda-npp-dev-8-0-8.0.61-1.x86_64
cuda-core-8-0-8.0.61-1.x86_64
cuda-cusolver-8-0-8.0.61-1.x86_64
cuda-command-line-tools-9-0-9.0.176-1.x86_64
cuda-license-7-5-7.5-18.x86_64
cuda-nvrtc-7-5-7.5-18.x86_64
cuda-cusparse-7-5-7.5-18.x86_64
cuda-misc-headers-7-5-7.5-18.x86_64
cuda-command-line-tools-7-5-7.5-18.x86_64
cuda-cublas-dev-7-5-7.5-18.x86_64
cuda-visual-tools-7-5-7.5-18.x86_64
cuda-driver-dev-9-0-9.0.176-1.x86_64
cuda-nvml-dev-9-0-9.0.176-1.x86_64
cuda-cusparse-dev-9-0-9.0.176-1.x86_64
cuda-cudart-dev-9-0-9.0.176-1.x86_64
cuda-curand-dev-9-0-9.0.176-1.x86_64
cuda-visual-tools-9-0-9.0.176-1.x86_64
cuda-cublas-dev-9-0-9.0.176.4-1.x86_64
cuda-core-9-0-9.0.176.3-1.x86_64
cuda-nvrtc-dev-8-0-8.0.61-1.x86_64
cuda-curand-dev-8-0-8.0.61-1.x86_64
cuda-cufft-8-0-8.0.61-1.x86_64
cuda-cudart-8-0-8.0.61-1.x86_64
cuda-cusolver-dev-8-0-8.0.61-1.x86_64
cuda-cublas-9-0-9.0.176.4-1.x86_64
cuda-nvrtc-dev-7-5-7.5-18.x86_64
cuda-core-7-5-7.5-18.x86_64
cuda-npp-7-5-7.5-18.x86_64
cuda-samples-7-5-7.5-18.x86_64
cuda-nvgraph-8-0-8.0.61-1.x86_64
cuda-npp-9-0-9.0.176-1.x86_64
cuda-nvml-dev-8-0-8.0.61-1.x86_64
cuda-misc-headers-9-0-9.0.176-1.x86_64
cuda-cudart-dev-8-0-8.0.61-1.x86_64
cuda-visual-tools-8-0-8.0.61-1.x86_64
cuda-libraries-9-0-9.0.176-1.x86_64
cuda-documentation-9-0-9.0.176-1.x86_64
cuda-driver-dev-7-5-7.5-18.x86_64
cuda-cusolver-7-5-7.5-18.x86_64
cuda-curand-dev-7-5-7.5-18.x86_64
cuda-driver-dev-8-0-8.0.61-1.x86_64
cuda-cusolver-dev-9-0-9.0.176-1.x86_64
cuda-cusparse-dev-8-0-8.0.61-1.x86_64
cuda-cufft-dev-9-0-9.0.176-1.x86_64
cuda-misc-headers-8-0-8.0.61-1.x86_64

编辑2:看起来cuda实际上并未安装,因为运行此命令 sudo yum install cuda会下载并安装它。

答案1

您已经拥有可用的存储库cuda 10.1.105-1。这就是为什么它安装了yum install cuda

您也已经拥有cuda 8-0-8.0.61-1cuda 9-0-9.0.176-1安装了。

如果您想安装不同的旧版本,例如10.0.130-1使用以下命令:

yum install cuda-10-0

这将安装它及其所有依赖项。

然后,您需要将其添加到您的PATH和 之前LD_LIBARRY_PATH

将这些行添加到您的~/.bashrc

export PATH=/usr/local/cuda-10.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/targets/x86_64-linux/lib:$LD_LIBRARY_PATH

然后注销并重新登录。

那是假设你想要cuda-10.0。如果您不这样做,则将 10.0 替换为您想要的版本,yum install cuda-并将其添加到您的PATHandLD_LIBRARY_PATH~/.bashrc

相关内容