caffe测试mnist问题-error while loading shared libraries

问题描述

build/examples/mnist/convert_mnist_data.bin: error while loading shared libraries: libcudart.so.9.2: cannot open shared object file: No such file or directory

解决方法

caffe运行时需要调用cuda的库,我们在/etc/ld.so.conf.d目录下新建一个cafe.conf文件,将所需要用的库的目录写入;

# sudo vi /etc/ld.so.conf.d/caffe.conf
/usr/local/cuda/lib64   /*添加内容并保存退出*/
# sudo ldconfig    /*更新配置*/

参考

1.error while loading shared libraries

posted on 2018-06-21 11:11  鹅要长大  阅读(393)  评论(0编辑  收藏  举报

导航