【bug记录】Paddle报错 filed to find dynamic library: libcublas.so

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 问题解决

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值