有多种查询,但是查询到的不一定是你现在安装的
1.
cmd输入nvidia-smi ,会显示gpu信息,但是这里的cuda是驱动对应的最高版本,不是你安装的版本。
例如:
C:\Users\wsb>nvidia-smi
Thu May 19 19:21:50 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 511.23 Driver Version: 511.23 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| 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 ... WDDM | 00000000:01:00.0 On | N/A |
| 35% 42C P8 18W / 340W | 359MiB / 10240MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1104 C+G N/A |
| 0 N/A N/A 2064 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 2340 C+G ...wekyb3d8bbwe\Video.UI.exe N/A |
| 0 N/A N/A 3452 C+G ...2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 5200 C+G N/A |
| 0 N/A N/A 8744 C+G ...5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 8940 C+G ...artMenuExperienceHost.exe N/A |
| 0 N/A N/A 9840 C+G ...me\Application\chrome.exe N/A |
| 0 N/A N/A 11252 C+G ...y\ShellExperienceHost.exe N/A |
| 0 N/A N/A 13248 C+G ... Host\Razer Synapse 3.exe N/A |
| 0 N/A N/A 13568 C+G ...arp.BrowserSubprocess.exe N/A |
| 0 N/A N/A 16276 C+G ...ekyb3d8bbwe\YourPhone.exe N/A |
+-----------------------------------------------------------------------------+
2.
正确输入 nvcc -V,会显示版本信息
例如:
C:\Users\wsb>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0
3.
看NVIDIA控制面板
NVIDIA控制面板 -->> 系统信息 -->> 组件 -->> NVCUDA64.ddl
这里同第一种方法,也是最高版本