按照 官方文档 安装完毕,验证安装时 paddle.utils.run_check()
报错
- 版本、环境信息:
- GPU:GTX1660 SUPER
- platform:windows10
- Paddle version: 2.1.2
- Paddle With CUDA: True
- OS: Windows 10
- Python version: 3.9.6
- CUDA version: 10.2.89
- cuDNN version: 7.6.5
- Nvidia driver version: 441.22
- 安装方式信息:pip安装
- 问题描述:
执行 paddle.utils.run_check()
时发生报错,目前无法解决此问题
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
W0819 17:41:20.890090 5104 device_context.cc:404] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 10.2, Runtime API Version: 10.2
W0819 17:41:20.897076 5104 device_context.cc:422] device: 0, cuDNN Version: 7.6.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\utils\install_check.py", line 196, in run_check
_run_static_single(use_cuda)
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\utils\install_check.py", line 124, in _run_static_single
exe.run(startup_prog)
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\fluid\executor.py", line 1110, in run
six.reraise(*sys.exc_info())
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\six.py", line 719, in reraise
raise value
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\fluid\executor.py", line 1098, in run
return self._run_impl(
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\fluid\executor.py", line 1231, in _run_impl
return self._run_program(
File "C:\Users\a\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\paddle\fluid\executor.py", line 1328, in _run_program
self._default_executor.run(program.desc, scope, 0, True, True,
RuntimeError: (PreconditionNotMet) The third-party dynamic library (cublas64_102.dll;cublas64_10.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 C:\home\workspace\Paddle_release4\paddle\fluid\platform\dynload\dynamic_loader.cc:265)
>>>
cuda
和cudnn
应该都没有问题,版本是对的上的,执行C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\extras\demo_suite
下的测试工具deviceQuery.exe
和bandwidthTest.exe
结果都是Result = PASS
- 环境变量配置
- cuda 10.2 官网上的两个补丁也打了
https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
- 安装的 cuda 文件夹 以及 解压的 cudnn 文件夹
各种方法都试了,也重装了好多次 paddle 和 cuda cudnn 实在没有办法了,一直报这个错
7条答案
按热度按时间oyjwcjzk1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
nx7onnlm2#
@yishibakaien 您好,运行时动态库加载失败,环境变量是否生效了呢
zc0qhyus3#
我如何判断 环境变量是否生效了
x4shl7ld4#
@zhouwei25 你好,看得见我的回复吗?我要如何判断环境变量是否配置正确(生效),有没有什么办法可以检查,issue 中的
deviceQuery.exe
和bandwidthTest.exe
两项 测试可否作为环境变量正确的判断依据pdtvr36n5#
@yishibakaien 你用
set PATH
看一下有哪些目录,然后看下cublas64_102.dll;cublas64_10.dll是否在里面0aydgbwb6#
有解决了的么?同样的情况,同样的问题已经卡了很久了
mrwjdhj37#
您好,根据已给出的信息,可以确定cublas64_10.dll 与 cublasLt64_10.dll 文件是存在于C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin(CUDA10.2)中的。按照报错截图,Python是Python software foundation版本的,我推测是该渠道安装的Python无法查找到上述dll文件。请进行以下操作: