2 cuda versions on my compter

Hi,

On Windows 10, I installed cuda_10.1.243_426.00_win10.exe and driver 441.12. on command prompt, I run command nvcc --version and nvidia-smi, I got the following output:

for nvcc --version command, cuda version is 10.1.243,
for nvidia-smi command, cuda version is 10.2

why are those 2 versions different?

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:12:52_Pacific_Daylight_Time_2019
Cuda compilation tools, release 10.1, V10.1.243
nvidia-smi
Mon Mar 09 10:57:14 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 441.12       Driver Version: 441.12       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 208... WDDM  | 00000000:01:00.0 Off |                  N/A |
| 18%   51C    P2    53W / 250W |   6230MiB / 11264MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

Including the path to latest Cuda 10.2 version in PATH, should help resolve the ambiguity.