cudaDriverGetVersion() reports 11.4 despite CUDA upgrade

Hello all,

I have a Jetson AGX Xavier with CUDA upgraded to 12.2 by following these instructions.

If I then compile and run a quick test CUDA program cudaRuntimeGetVersion() reports 12.2.0 but cudaDriverGetVersion() reports 11.4.0.

This possibly wouldn’t matter but ArrayFire uses cudaDriverGetVersion() to decide if it can run and it’s deciding that it can’t because the CUDA version is too old.

According to the Technical blog on upgrading CUDA the upgrade package includes libcuda.so, and I can see it installed in the /usr/local/cuda-12.2 directory (which /usr/local/cuda points to).

So why does cudaDriverGetVersion() report 11.4.0?

Cheers, Dave.

Hi,

GPU Driver is integrated in the BSP so the latest version for Xavier is 11.4.
Only the CUDA library can be upgraded to CUDA 12.

Thanks.

Thanks @AastaLLL, so does that mean that anything that uses cudaDriverGetVersion() to determine the CUDA version will fail?

Is it true to say that after upgrading CUDA, as per the above instructions, the CUDA version is 12.2? Or is there some additional subtlety?

Thanks, Dave.

Hi,

It will be better to use cudaRuntimeGetVersion() to check the CUDA library version.

On Jetson, the gpu driver is located in the below path instead:

 /usr/lib/aarch64-linux-gnu/tegra/libcuda.so

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.