当前位置:网站首页>Ubantu check cudnn and CUDA versions

Ubantu check cudnn and CUDA versions

2022-07-06 00:49:00 @BangBang

1. cudnn edition

 Enter the first  /usr  Under the table of contents 
1 cd /usr
 Search under this directory  cudnn.h  perhaps  cudnn_version.h  file 
2 sudo find -name cudnn.h
 The search results are as follows 
./include/cudnn.h
 Then execute the following command 
3 cat ./include/cudnn.h | grep CUDNN_MAJOR -A 2

give the result as follows :
 Insert picture description here
Corresponding cudnn Version is 7.6.4

2. see cuda edition

1. Enter the following command on the command line , see version.txt The content of Be careful cat Space after

cat /usr/local/cuda/version.txt

2. There is another way to view GPU Occupancy

nvidia-smi

This also allows you to view the current GPU Version of

3. If installed cudatoolkit You can also use the following command to view the current cuda edition

nvcc -V
原网站

版权声明
本文为[@BangBang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060044110151.html