Hello
When writing a simple cuda kernel, it compiles without problem (with nvcc) but when executing it, I get the following error:
the provided PTX was compiled with an unsupported toolchain.
which seems to indicate that there is an incompatibility between some elements of the computing chain.
I’ve been trying to finf which, and it looks like my nvidia driver doesn’t correspond to my cuda version. More precisely:
nvcc --version ✔ base
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0
comes from the official repositories (so cuda toolkit 12.6 and more precisely 12.6.3.1 as pacman -Q cuda returns). But
nvidia-smi INT ✘ 39m 20s base
Fri Jan 3 04:30:21 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.135 Driver Version: 550.135 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| 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 4090 Off | 00000000:01:00.0 On | Off |
| 0% 26C P8 14W / 450W | 479MiB / 24564MiB | 2% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1957 G /usr/lib/Xorg 108MiB |
| 0 N/A N/A 2050 G /usr/bin/gnome-shell 73MiB |
| 0 N/A N/A 2754 G /usr/lib/firefox/firefox 228MiB |
| 0 N/A N/A 4171 C+G /usr/bin/pamac-manager 34MiB |
+-----------------------------------------------------------------------------------------+
is what I get after having installed the driver with
mhwd -i pci video-nvidia
On the one hand, it looks like 550.135 is not very old (November 2024) but is not adaptated to cuda >12.4.
On the other hand, it looks like the more recent 550.142 (December 2024) isn’t reachable from mhwd.
So it seems I should downgrade the Cuda toolkit to 12.4 … Alas Cuda 12.4 is in Arch Linux Archive, which is frightening (to me). Before to engage in this direction, I’d like to be sure I didn’t miss something very simple that would solve the problem in a straightforward manner.
So the question is : is downgrading Cuda the easiest solution ?
Thanks
[
Kernel: 6.11.11-1-MANJARO
CPU: Intel i9-12900KF
GPU: NVIDIA GeForce RTX 4090
]