The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.so: cannot open shared object file: No such file or directory)
错误来源:运行paddle框架时报错,找不到libcuda.so,但是我cuda和cudnn都安装没问题,需要将libcuda.so.1软链接到libcuda.so
python -m paddle.distributed.launch --gpus 0,1,2,3 tools/train.py -c configs/visdrone/ppyoloe_plus_crn_l_largesize_80e_visdrone.yml -o LearningRate.base_lr=0.000625 --eval --amp
The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.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;
在终端中输入下述语句找到libcuda.so.1的位置
sudo find / -name libcuda.so*
找到了,在/usr/lib/x86_64-linux-gnu下(在这个文件夹下面有软链接是因为我已经提前链接好了)
最后一部,将libcuda.so.1软链接到libcuda.so上即可
sudo ln -s /usr/lib/x86_64-linux-gnu/libcuda.so.1 /usr/lib/x86_64-linux-gnu/libcuda.so
更多推荐
【解决paddle运行错误-libcuda.so软链接问题】The third-party dynamic library (libcuda.so) that
发布评论