Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4489

mismatched versions between nvcc 11.5 vs. nvidia-smi 12.2 on ubuntu

$
0
0

I'm trying to install cuda in my ubuntu system. So I ran the following command:

sudo apt install nvidia-driver-535

And nvidia-smi had shown me, I have got the correct cuda version (or at least what I was looking for):

Sun Jun 30 17:42:56 2024       +---------------------------------------------------------------------------------------+| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     ||-----------------------------------------+----------------------+----------------------+

Abd then I did the following:

sudo apt update && sudo apt upgradesudo apt install nvidia-cuda-toolkit

But after doing all this, when I tried looking into the nvcc --version, it gives me the following:

nvcc: NVIDIA (R) Cuda compiler driverCopyright (c) 2005-2021 NVIDIA CorporationBuilt on Thu_Nov_18_09:45:30_PST_2021Cuda compilation tools, release 11.5, V11.5.119Build cuda_11.5.r11.5/compiler.30672275_0

Why am I getting this conflict? I want the cuda 12.2 for my nvcc as well. How can I resolve this issue? And upgrade nvcc to use cuda 12.2 as well?


Viewing all articles
Browse latest Browse all 4489

Trending Articles