错误 [PreconditionNotMetError: The third-party dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly. (error code is 126)
# 查询当前cuda版本
nvcc --version
# 查找cuda对应的cudnn版本
pip index versions nvidia-cudnn-cu12
# 返回Available versions: 9.20.0.48, ……, 8.9.7.29, 8.9.6.50, 8.9.5.29, 8.9.4.25,选择一个8版本安装
pip install nvidia-cudnn-cu12==8.9.4.25
简而言之:
- 1、下载cuNN developer.nvidia.com/cudnn-downl…
- 2、windows 打开cmd,用指令which nvcc查询CUDA安装目录
- 3、将下载下来的bin文件中的所有dll文件复制到cuda的bin文件夹下即可
解决参考:www.cnblogs.com/DriOgon/p/1…
错误Could not locate cublasLt64_11.dll. Please make sure it is in your library path!
如果这里的版本号_11与你的cuda版本不一致,那么可能是你安装的cudnn版本与当前cuda版本不一致