Linux and Windows versions of view CUDA and cuDNN

Linux

View CUDA version

  • method one:
nvcc --version

or

nvcc -V

If nvcc not installed, then use the second method.

  • Method Two:
cat /usr/local/cuda/version.txt

When multiple versions of CUDA installation method two does not work, it can not be used to determine which version of CUDA, this time to look at methods III.

  • Method three:
nvidia-smi

Check the specific use NVIDIA GPU, but also listed CUDA Version.

View cuDNN version

cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

If not, it may not be installed cuDNN.

Windows

View CUDA version

Execute the command line:

nvcc --version

Or enter the installation directory CUDA View:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA

View cuDNN version

CUDA view into the installation directory of the file cudnn.h:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include\cudnn.h

As shown below, cuDNN version 7.2.1:

References

ubuntu: View cuda version - JNingWei
Windows View CUDA version - evildoer life Hu cannon
query CUDA and CUDNN version under LINUX - Hsu _ Beijing North

Guess you like

Origin www.cnblogs.com/wuliytTaotao/p/11453265.html