查看cuda版本型号 cat /usr/local/cuda/version.txt # 方式一 nvcc -V # 方式二 查看cudnn 版本型号 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2