如何检测cuda和cudnn的版本?

check cuda

cat /usr/local/cuda/version.txt

nvcc –version

check cudnn:

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

or

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

Author Rewards

Leave a Reply

Your email address will not be published. Required fields are marked *