paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8.

问题描述:

 报错信息:

D:\anaconda\envs\paddle\python.exe E:/TEST/main.py
W0112 11:05:38.400643 15268 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 12.0, Runtime API Version: 11.2
W0112 11:05:38.403635 15268 dynamic_loader.cc:276] Note: [Recommend] copy cudnn into CUDA installation directory. 
 For instance, download cudnn-10.0-windows10-x64-v7.6.5.32.zip from NVIDIA's official website, 
then, unzip it and copy it into C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0
You should do this according to your CUDA installation directory and CUDNN version.
Traceback (most recent call last):
  File "E:/TEST/main.py", line 2, in <module>
    print(paddle.utils.run_check())
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\utils\install_check.py", line 266, in run_check
    _run_static_single(use_cuda, use_xpu, use_npu)
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\utils\install_check.py", line 170, in _run_static_single
    exe.run(startup_prog)
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1299, in run
    six.reraise(*sys.exc_info())
  File "D:\anaconda\envs\paddle\lib\site-packages\six.py", line 719, in reraise
    raise value
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1285, in run
    res = self._run_impl(
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1510, in _run_impl
    return self._run_program(
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1607, in _run_program
    self._default_executor.run(program.desc, scope, 0, True, True,
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:303)

Running verify PaddlePaddle program ... 

Process finished with exit code 1

解决方法:

找到下载好的CUDNN文件,下载网站https://developer.nvidia.com/rdp/cudnn-archive,BIN中的dll文件

 复制到C:\Windows\System32中。

 再次运行测试,成功

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

向阳花开0926

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值