After compiling CUDA with the 12.5 compiler, nvidia-smi shows that I have CUDA 12.3, even though I did a fresh install of Ubuntu 22.04.
my steps
CUDA Toolkit 12.5 Downloads | NVIDIA Developer
wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda_12.5.0_555.42.02_linux.runsudo sh cuda_12.5.0_555.42.02_linux.run
second step i have instaled driver 545.29.06 from ubuntu ui the driver 555 is mising from ui
sudo ls /usr/local/
bin cuda cuda-12.5 etc games include lib man sbin share src
this is strange
nvidia-smi
Wed Jun 19 06:22:13 2024
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
|-----------------------------------------±---------------------±---------------------+
| 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 RTX 3080 Off | 00000000:01:00.0 On | N/A |
| 0% 49C P8 32W / 370W | 279MiB / 10240MiB | 4% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+
±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 4985 G /usr/lib/xorg/Xorg 133MiB |
| 0 N/A N/A 5392 G /usr/bin/gnome-shell 31MiB |
| 0 N/A N/A 8087 G …21,262144 --variations-seed-version 56MiB |
| 0 N/A N/A 9223 G …erProcess --variations-seed-version 44MiB |
±--------------------------------------------------------------------------------------+
coozila@office:~$ sudo nvidia-smi
[sudo] password for coozila:
Wed Jun 19 06:22:29 2024
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
|-----------------------------------------±---------------------±---------------------+
| 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 RTX 3080 Off | 00000000:01:00.0 On | N/A |
| 0% 49C P8 32W / 370W | 279MiB / 10240MiB | 4% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+
±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 4985 G /usr/lib/xorg/Xorg 137MiB |
| 0 N/A N/A 5392 G /usr/bin/gnome-shell 30MiB |
| 0 N/A N/A 8087 G …21,262144 --variations-seed-version 53MiB |
| 0 N/A N/A 9223 G …erProcess --variations-seed-version 44MiB |
±--------------------------------------------------------------------------------------+
user@office:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Apr_17_19:19:55_PDT_2024
Cuda compilation tools, release 12.5, V12.5.40
Build cuda_12.5.r12.5/compiler.34177558_0
also docker run --gpus all --rm nvidia/cuda:12.5.0-runtime-ubuntu22.04 nvidia-smi
Unable to find image ‘nvidia/cuda:12.5.0-runtime-ubuntu22.04’ locally
12.5.0-runtime-ubuntu22.04: Pulling from nvidia/cuda
a8b1c5f80c2d: Pull complete
5b5f281aa9fa: Pull complete
e85ef0eeb66c: Pull complete
0d0a907de515: Pull complete
508725ab4fe4: Pull complete
496b16ddfbf2: Pull complete
a2c7209f2750: Pull complete
522339e778ac: Pull complete
5cb97a32151b: Pull complete
Digest: sha256:75292ffaba88ea846d7f28261d4ed302fbe1124f10ff9da30e44034206916110
Status: Downloaded newer image for nvidia/cuda:12.5.0-runtime-ubuntu22.04
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as ‘legacy’
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.