报错

在使用PaddlePaddle时,运行编译好的程序报错:

Ubuntu18.04——报错解决:libcudart.so.10.2: cannot open shared object file: No such file or directory_paddlepaddle

但是文件​​libnvrtc.so.10.2​​​是存在的,就在​​cuda/lib64​​的路径下,但是报错找不到,解决方法是:

Ubuntu18.04——报错解决:libcudart.so.10.2: cannot open shared object file: No such file or directory_paddlepaddle_02

解决方法

重载一下cuda动态链接库为系统所共享即可正常运行:

# 将这里的cuda-10.2改成你的cudaxx-x文件夹即可
sudo ldconfig /usr/local/cuda-10.2/lib64