[CUDA] Determine whether CUDA is installed on the computer

1. View via command line

Open a command line window (such as PowerShell or Command Prompt) and enter the following command:
nvcc --version
If CUDA is installed, it will display version information for the CUDA compilation tools, similar to the output you provided above.
Generally

PS C:\Users\ammy> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

2. NVIDIA graphics driver control panel

If you have the NVIDIA graphics driver installed, you can find the NVIDIA Control Panel in the system tray. The installed CUDA version may be displayed in the information section.

3. Program directory

If you downloaded and installed CUDA before, it will usually be installed in the default directory (for example C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA). You can check whether there are CUDA installation files and folders in this directory.

Guess you like

Origin blog.csdn.net/m0_51662391/article/details/132315002