Linux下查看 cuda 与 cudnn 版本
➜ ~ cat /usr/local/cuda/include/cudnn_version.h| grep CUDNN_MAJOR -A 2
可见cudnn版本是8.2.4
➜ ~ nvidia-smi ![](https://img2022.cnblogs.com/blog/1233571/202211/1233571-20221124144701747-1367345261.png)
➜ ~ cat /usr/local/cuda/include/cudnn_version.h| grep CUDNN_MAJOR -A 2