RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly. (error code is 126)
Suggestions:
1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
2. Configure third-party dynamic library environment variables as follows:
- Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`
- Windows: set PATH by `set PATH=XXX; (at ..\paddle\phi\backends\dynload\dynamic_loader.cc:312)
Solution
Download cudnn64_8.dll
Place it into the bin folder of the corresponding CUDA path (the following is my path, yours might be different, do not copy blindly)
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
References
- https://stackoverflow.com/questions/66083545/could-not-load-dynamic-library-cudnn64-8-dll-dlerror-cudnn64-8-dll-not-found
- https://github.com/PaddlePaddle/PaddleOCR/issues/11230
- https://blog.csdn.net/shuaishishi/article/details/136619380?spm=1001.2014.3001.5501
- https://blog.csdn.net/Jiu__Yue/article/details/126532583