runtime error
收藏
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
收藏
请登录后评论
已解决。
可能是因为之前我用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
这个得在终端里运行吧
notebook里export好像没用