cat /usr/local/cuda/version.txt
或者 nvcc -V (也可以看到版本信息)
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2