View nvidia gpu version
nvidia-smi
every 10s display time
watch -n 10 nvidia-smi
View nvidia driver version
cat /proc/driver/nvidia/version
Board determines whether the hardware level identification cards
lspci | grep NVIDIAdf
lspci | grep VGA
//VGA compatible controller: NVIDIA Corporation Device 1b02
cuda version
nvcc -V or
cat /usr/local/cuda/version.txt
cudnn version
Method. 1:
CAT /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
Method 2:
download the specified database version corresponding smple:
https://developer.nvidia.com/rdp/cudnn-archive
libcudnn7_7. + cuda10.0_amd64.deb 4.1.5-1
libcudnn7-dev_7.4.1.5-1 + cuda10.0_amd64.deb
libcudnn7-doc_7.4.1.5-1 + cuda10.0_amd64.deb
therein are doc sample,
Installation cudnn libraries:
sudo -i dpkg libcudnn7-doc_7.4.1.5-1+cuda10.0_amd64.deb
执行:
cp -r /usr/src/cudnn_samples_v7/ /home/tongzhilin/
cd /home/tongzhilin/cudnn_samples_v7/mnistCUDNN
make clean && make
./mnistCUDNN