paddleseq运行报错dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly.

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