Update my CUDA version

C:\Users\Administrator>nvidia-smi
Sat Jan 11 01:27:43 2025
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 546.60                 Driver Version: 546.60       CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                     TCC/WDDM  | 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 4060 ...  WDDM  | 00000000:01:00.0 Off |                  N/A |
| N/A   27C    P4              13W /  30W |      0MiB /  8188MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

I got this output from nvidia-smi, it shows the cuda version is 12.3
but Ive installed cuda toolkit 12.6 from CUDA Toolkit 12.6 Update 3 Downloads | NVIDIA Developer
I think there might be some issues in my codes caused by cuda version older than cuda toolkit version, how should I solve it?

What does nvcc -V show?

The Cuda version indicated in nvidia-smi is the version up to which the driver supports, so updating to a newer driver is required.

$ nvcc -V
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

I actually have no experience how to update a nvidia driver

Edited as you seem to be on Windows.

Go to Download The Latest Official NVIDIA Drivers and enter appropriate parameters.

1 Like

Thank you, Ive installed CUDA 12.7 now