Upgraded driver and cuda lead to unsupported toolchain

I am running on Ubuntu 22.04. I had just updated my nvidia driver and cuda versions. Nvidia driver is now at 595.71.05 and nvcc reports cuda 13.3:

I am also using gcc 12.3 and g++ 12.3. Whenever I compile and run my cuda code, the kernel never executes and I get the error text “the provided PTX was compiled with an unsupported toolchain.”. All I do to compile the code is “nvcc kernel.cu”.

Any ideas on how to resolve this?

You may need to upgrade the driver to the 610 branch. The driver you’re currently using was compiled with Cuda 13.2.

in general:

make sure the CUDA version reported by nvidia-smi is greater than or equal to the CUDA version reported by nvcc --version

In the particular case, rs277 has already steered you to the right place. CUDA 13.3 just came out, so you should update your GPU driver to the latest available.