Check whether cuda and cudnn are successfully installed and their versions in cmd

1. Check whether cuda is successfully installed in cmd:nvcc -V

  • insert image description here

2. Check whether cudnn is installed successfully in cmd:Run bandwidthTest.exe and deviceQuery.exe under the path [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\extras\demo_suite] in cmd, if both run successfully, it proves that cudnn is installed successfully.

  • insert image description here

  • Execute deviceQuery.exe first, and check whether the following interface appears.
    insert image description here

  • Then execute bandwidthTest.exe to check whether the following interface appears.
    insert image description here

  • If the above two interfaces appear, cudnn is also installed successfully.

3. Check the cuda version:nvcc -V

4. Check the cudnn version:Open the cudnn.h file with Notepad, search for CUDNN_MAJOR, and you can find the corresponding cudnn versionNote, if you can't find it in cudnn.h, you can search in the cudnn_version.h file.Specifically, refer to the following:

  • insert image description here

  • insert image description here

  • My version should be 7.6.4.

Guess you like

Origin blog.csdn.net/qq_40968179/article/details/124240224