As already suggested in the following post:
tave@deepthought:~$ inxi -Gx
Graphics:
Device-1: NVIDIA GK104GL [Quadro K5000] vendor: Hewlett-Packard
driver: nvidia v: 470.74 bus ID: 04:00.0
Display: x11 server: X.Org 1.20.11 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 3840x2160~30Hz
OpenGL: renderer: Quadro K5000/PCIe/SSE2 v: 4.6.0 NVIDIA 470.74
direct render: Yes
I installed NVidia-470 for my Quadro K5000 in Ubuntu 23.04 (Z620 HP workstation):
But when installing cuda 11:cuda-repo-ubuntu2004-11-1-local_11.1.0-455.23.05-1_amd64.deb ubuntu is asking for libnvidia-cfg1-455 and xserver-xorg-video-nvidia-455:
xserver-xorg-video-nvidia-455 : Depends: libnvidia-cfg1-455 (= 455.23.05-0ubuntu1) but it is not going to be installed
Although both libnvidia-cfg1-470 and xserver-xorg-video-nvidia-470 are installed, inxi -Gx
Graphics:
Device-1: NVIDIA GK104GL [Quadro K5000] vendor: Hewlett-Packard
driver: nvidia v: 470.199.02 bus-ID: 05:00.0
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
resolution: 1920x1080~60Hz
OpenGL: renderer: Quadro K5000/PCIe/SSE2 v: 4.6.0 NVIDIA 470.199.02
direct render: Yes
Many many thanks,
Samir
GK104 is compute capability 3.0
Support for it ended with CUDA 10.2
There are no newer versions of CUDA that support that device.
Still have the same problem!
Many thanks,
Samir
For CUDA 10.x, there is no official support for Ubuntu 23.04
If you are able to successfully install the NVIDIA-470 driver (it seems that you were, based on your posting) then I would suggest installing CUDA 10.2 via the runfile installer method. Keep your NVIDIA-470 driver, and select only the cuda toolkit for installation (deselect the driver install).
I suggest familiarizing yourself with the CUDA linux install guide. Here is the version for CUDA 10.2.
I am trying to install cuda 10.2 as you suggested.
But apparently I have to remove the one I installed previously (cuda 11.04).
I could not locate it in ubuntu?
there is no a cuda directory in \usr\local so that I can make:
sudo /usr/local/cuda-X.Y/bin/uninstall_cuda_X.Y.pl
this is what I get when making sudo ./cuda_10.2.89_440.33.01_linux.run
Existing package manager installation of the driver found. It is strongly │
│ recommended that you remove this before continuing. │
│ Abort │
│ Continue
If I choose Continue:
Failed to verify gcc version. See log at /var/log/cuda-installer.log for details
and here is the cuda-installer.log:
INFO]: Driver installation detected by command: apt list --installed | grep -e nvidia-driver-[0-9][0-9][0-9] -e nvidia-[0-9][0-9][0-9]
[INFO]: Cleaning up window
[INFO]: Complete
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc
[INFO]: gcc version: gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
[ERROR]: unsupported compiler version: 11.4.0. Use --override to override this check.
Many many thanks again,
and I am really sorry for bothering you…
I just had a closer look at cuda 10.2 toolkit documentation and it looks like the latest gcc version compatible with cuda 10.2 is gcc 7.3.0!!!
That is because that uninstall method (and file) are only associated with the runfile install method. You did not (previously) use the runfile install method, you used the package manager install method. This is covered in the guide I linked.
That is the runfile install method. As indicated in the guide I linked, as well as in the warning message:
it is recommended that you do not “mix” these methods. You need to fully uninstall the previous package manager installation before attempting a runfile installation, using the instructions in the guide.
In addition, the host compiler you have installed on your Ubuntu 23.04 OS is not compatible with CUDA 10.2. You will not be able to install using the runfile install method without fixing this. To fix this, you need to install an older version of GCC (the specific version needed is listed in the guide I linked) and set your system environment (e.g. PATH) so that compiler is found automatically. This topic is not unique or specific to CUDA, so you will need to search for instructions how to do that on Ubuntu 23.04 if you want to follow that path.
As you can see, installing a much older version of CUDA on a newer, unsupported OS can be challenging. You can probably make your life easer by wiping out your 23.04 OS, and installing a supported OS on that machine, if you want to use CUDA 10.2 on it.
So you think that the best/easiest solution will be to wipe ubuntu 22.04 and install Ubuntu 18.04 where I can have gcc 7.3 and install cuda 10.2 easily?
That is most certainly what I would do, if I wanted to set that machine up in a trouble-free fashion, to use the GK104 device with CUDA 10.2. You have to decide what activities constitute the best use of your time, as well as what needs you may have.
I could not find Ubuntu.18.04.3 as suggested by nvidia…but I found 18.04.6 version.
Do you think latter would do the job as well?
I don’t know. You can try it. I actually thought the 23.04 would work with a proper driver install and runfile installation of the toolkit, but I forgot about the dependency on gcc version.
Even with Ubuntu 18.04.3 still struggling!!!
It still complaining about the gcc:
gcc version: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
this is the oldest gcc version that comes with Ubuntu 18.04.
This is exactly what I was afraid of!
I don’t know is there any way to downgrade gcc to 7.3?
Many thanks,
Samir
That isn’t specific to CUDA or NVIDIA. You may wish to do some google searches. You can install/build pretty much any version of gcc you want. I don’t have a recipe for you.
I finally succeeded installing ubuntu 18.04 with gcc 7.3.0.
I was pretty sure that cuda 10.2 will install easily!!!
But apparently it is not. Here is /var/log/cuda-installer.log file:
[INFO]: Driver not installed.
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc
[INFO]: gcc version: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)
[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Components to install:
[INFO]: Driver
[INFO]: 440.33.01
[INFO]: Executing NVIDIA-Linux-x86_64-440.33.01.run --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd 2>&1
[INFO]: Finished with code: 256
[ERROR]: Install of driver component failed.
[ERROR]: Install of 440.33.01 failed, quitting