paddle报错:
Error: Failed to find dynamic library: libcublas.so ( libcublas.so: cannot open shared object file: No such file or directory )
Please specify its path correctly using following ways:
Method. set environment variable LD_LIBRARY_PATH on Linux or DYLD_LIBRARY_PATH on Mac OS.
For instance, issue command: export LD_LIBRARY_PATH=…
Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled. at (/paddle/paddle/fluid/platform/dynload/dynamic_loader.cc:177)
根据报错提示,添加LD_LIBRARY_PATH环境变量。
vim ~/.bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
source ~/.bashrc
但是我的问题没得到解决
我的解决方法
查看paddle安装状态:
官网步骤:
import paddle.fluid
paddle.fluid.install_check.run_check()
我的输出:Your Paddle Fluid is installed successfully for SINGLE GPU or CPU!
单卡gpu或cpu.......
由于有两块gpu,训练时默认调两张卡
改成单卡执行: CUDA_VISIBLE_DEVICES=0 python train.py 问题解决