Driver: Not Selected Toolkit: Installed in /usr/local/cuda-11.6/
Please make sure that - PATH includes /usr/local/cuda-11.6/bin - LD_LIBRARY_PATH includes /usr/local/cuda-11.6/lib64, or, add /usr/local/cuda-11.6/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.6/bin ***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 510.00 is required for CUDA 11.6 functionality to work. To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file: sudo <CudaInstaller>.run --silent --driver
┌──[root@test]-[~] └─$nvcc -V && nvidia-smi nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Fri_Dec_17_18:16:03_PST_2021 Cuda compilation tools, release 11.6, V11.6.55 Build cuda_11.6.r11.6/compiler.30794723_0 Thu Jun 15 14:42:58 2023 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.108.03 Driver Version: 510.108.03 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A | | 0% 51C P8 21W / 170W | 105MiB / 12288MiB | 12% Default | | | | N/A | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1386 G /usr/lib/xorg/Xorg 81MiB | | 0 N/A N/A 1650 G /usr/bin/gnome-shell 22MiB | +-----------------------------------------------------------------------------+ ┌──[root@test]-[~] └─$
Every 2.0s: nvidia-smi test: Thu Jun 15 14:44:47 2023
Thu Jun 15 14:44:47 2023 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.108.03 Driver Version: 510.108.03 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A | | 0% 55C P2 51W / 170W | 4025MiB / 12288MiB | 22% Default | | | | N/A | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1386 G /usr/lib/xorg/Xorg 81MiB | | 0 N/A N/A 1650 G /usr/bin/gnome-shell 22MiB | | 0 N/A N/A 32031 C python 3917MiB | +-----------------------------------------------------------------------------+
┌──[root@test]-[~] └─$sudo ./cuda_12.1.1_530.30.02_linux.run Error! Could not locate dkms.conf file. File: /var/lib/dkms/nvidia-fs/2.15.3/source/dkms.conf does not exist. cat: /var/log/nvidia/.uninstallManifests/kernelobjects-components/uninstallManifest-nvidia_fs: No such file or directory make: *** No rule to make target 'uninstall'. Stop. Error! DKMS tree already contains: nvidia-fs-2.15.3 You cannot add the same module/version combo more than once. =========== = Summary = ===========
Driver: Not Selected Toolkit: Installed in /usr/local/cuda-12.1/
Please make sure that - PATH includes /usr/local/cuda-12.1/bin - LD_LIBRARY_PATH includes /usr/local/cuda-12.1/lib64, or, add /usr/local/cuda-12.1/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-12.1/bin To uninstall the kernel objects, run ko-uninstaller in /usr/local/kernelobjects/bin ***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 530.00 is required for CUDA 12.1 functionality to work. To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file: sudo <CudaInstaller>.run --silent --driver
Logfile is /var/log/cuda-installer.log ┌──[root@test]-[~] └─$
解决办法,换了低版本的510
运行 nvvp 报错
1 2 3 4 5 6 7 8 9 10 11 12 13 14
┌──[root@test]-[~] └─$nvvp Nvvp: Cannot open display: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.eclipse.osgi.storage.FrameworkExtensionInstaller (file:/usr/local/cuda-11.6/libnvvp/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.storage.FrameworkExtensionInstaller WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Nvvp: Cannot open display: Nvvp: An error has occurred. See the log file /usr/local/cuda-11.6/libnvvp/configuration/1686795694122.log. ┌──[root@test]-[~] └─$
ssh 环境不行,需要做桌面环境
在桌面环境执行,报错
1
Gtk-Message: 09:10:26.571: Failed to load module "canberra-gtk-module"
nvidia-driver-530-open : Depends: libnvidia-gl-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: nvidia-dkms-530-open (<= 530.41.03-1) Depends: nvidia-dkms-530-open (>= 530.41.03) Depends: nvidia-kernel-common-530 (<= 530.41.03-1) but it is not going to be installed Depends: nvidia-kernel-common-530 (>= 530.41.03) but it is not going to be installed Depends: nvidia-kernel-source-530-open (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-compute-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-extra-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: nvidia-compute-utils-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-decode-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-encode-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: nvidia-utils-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: xserver-xorg-video-nvidia-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-cfg1-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Depends: libnvidia-fbc1-530 (= 530.41.03-0ubuntu0.22.04.2) but it is not going to be installed Recommends: libnvidia-compute-530:i386 (= 530.41.03-0ubuntu0.22.04.2) Recommends: libnvidia-decode-530:i386 (= 530.41.03-0ubuntu0.22.04.2) Recommends: libnvidia-encode-530:i386 (= 530.41.03-0ubuntu0.22.04.2) Recommends: libnvidia-fbc1-530:i386 (= 530.41.03-0ubuntu0.22.04.2) Recommends: libnvidia-gl-530:i386 (= 530.41.03-0ubuntu0.22.04.2) E: Unable to correct problems, you have held broken packages.