本文记录在ubuntu上配置caffe(GPU版本)的一些问题的解决方法
问题1
//home/dyx/anaconda2/lib/libpng16.so.16:对’inflateValidate@ZLIB_1.2.9’未定义的引用,如下图:
解决方法:
在Makefile.config文件末端加上这句 LINKFLAGS:=-Wl,-rpath,$(HOME)/anaconda2/lib
问题2
在make test的时候出现
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
......
Headers are 1.10.1, library is 1.8.16
......
解决方法
这是因为Anaconda中安装的hdf5库是1.10.1的, 而之前通过pip intall h5py库应该就是1.8.16的, 一山不容二虎,于是把旧版本删除了sudo pip uninstall h5py。发现自己在Makefile.config文件中PYTHON_LIB := /usr/lib, 这是错误的,而要换成PYTHON_LIB := $(ANACONDA_HOME)/lib,然后重新编译
make all -j6
make test
make runtest
问题得到解决
Ubuntu上配置Caffe-GPU版问题解决
本文记录了在Ubuntu系统上配置Caffe GPU版本过程中遇到的问题及解决方法,包括解决libpng16.so.16引用问题和HDF5版本不匹配导致的编译错误。
5486

被折叠的 条评论
为什么被折叠?



