RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcublas.so) that Paddle......

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

RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcublas.so) that Paddle depends on is not configured correctly. (error code is libcublas.so: cannot open shared object file: No such file or directory)
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/paddle/phi/backends/dynload/dynamic_loader.cc:303)
    [operator < gaussian_random > error]

2、解决办法
找到cuda的lib64,然后设置LD_LIBRARY_PATH

export LD_LIBRARY_PATH=‘/usr/local/cuda-11.4/lib64/’


参考链接:https://blog.51cto.com/u_15274944/5041483

你可能感兴趣的:(杂项,paddle)