首页 Paddle框架 帖子详情
runtime error
收藏
快速回复
Paddle框架 问答模型训练深度学习 735 2
runtime error
收藏
快速回复
Paddle框架 问答模型训练深度学习 735 2

RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcusolver.so) that Paddle depends on is not configured correctly. (error code is libcusolver.so: cannot open shared object file: No such file or directory)

前提:

import paddle

paddle.utils.run_check()

成功运行。

训练模型的时候,报runtime error

cuda与cudnn版本跟paddle版本吻合。

0
收藏
回复
全部评论(2)
时间顺序
沃德595
#2 回复于2022-04

已解决。

可能是因为之前我用update-alternatives命令将cuda链接到cuda10.1之后,就没在bashrc中再export了。或者刚开始我就没输出cuda。

解决方法:

export LD_LIBRARY_PATH=”$LD_LIBRARY_PATH:/usr/local/cuda/lib64”
export CUDA_HOME=/usr/local/cuda

0
回复
z
zhujiehaode
#3 回复于2022-04

这个得在终端里运行吧

notebook里export好像没用

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户