Cuda versions

Hello everyone,

I’m using a Ubuntu 20.04 RTX3080 laptop and my nvidia driver version is 495.46

What I want to ask is, when I run the command nvidia-smi the CUDA version on the output is 11.5 but when I run command nvcc --version it’ 10.1 :(

I want to download MxNet or cuDNN and I need to verify my CUDA version.
My outputs for the commands that I declared are shown below

Thanks and regards.

nvidia-smi
>>Thu Jan 27 13:26:06 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46       Driver Version: 495.46       CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P8    18W /  N/A |    460MiB /  7982MiB |      3%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1075      G   /usr/lib/xorg/Xorg                 45MiB |
|    0   N/A  N/A      2049      G   /usr/lib/xorg/Xorg                218MiB |
|    0   N/A  N/A      2228      G   /usr/bin/gnome-shell               20MiB |
|    0   N/A  N/A      3550      G   ...AAAAAAAAA= --shared-files       51MiB |
|    0   N/A  N/A      4741      G   /usr/lib/firefox/firefox          109MiB |
+-----------------------------------------------------------------------------+
nvcc -V
>>nvcc: NVIDIA (R) Cuda compiler driver
  Copyright (c) 2005-2019 NVIDIA Corporation
  Built on Sun_Jul_28_19:07:16_PDT_2019
  Cuda compilation tools, release 10.1, V10.1.243

You can check version by doing nvcc --version
Go to ~/.bashrc and check path of CUDA and based on your requirement you can set bin and lib path

1 Like

Hello, this forum is dedicated to discussions related to using the sanitizer tools and API.
Questions related to CUDA can be raised at CUDA - NVIDIA Developer Forums

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