ubuntu查看cuda、cuDNN版本
cuda:
#cat /usr/local/cuda/version.txt
star@xmatrix:~$ cat /usr/local/cuda/version.txt CUDA Version 10.1.105 star@xmatrix:~$
或者 nvcc -V
cuDNN:
#cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
star@xmatrix:~$ star@xmatrix:~$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 #define CUDNN_MAJOR 7 #define CUDNN_MINOR 5 #define CUDNN_PATCHLEVEL 1 -- #define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL) #include "driver_types.h" star@xmatrix:~$ star@xmatrix:~$
GNU make
tar@xmatrix:~$ make --version GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. star@xmatrix:~$
cmake
star@xmatrix:~$ cmake --version cmake version 3.5.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). star@xmatrix:~$ star@xmatrix:~$