编译Caffe时出错
Error while compiling Caffe
我正在尝试用ubuntu 16.04中的openblas编译caffe。我已经下载并使用 no_affinity = 1 USE_OPENMP = 1 编译了OpenBlasOpenBlas汇编很好,所有测试均已运行
OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE)
OS ... Linux
Architecture ... x86_64
BINARY ... 64bit
C compiler ... GCC (command line : gcc)
Fortran compiler ... GFORTRAN (command line : gfortran)
Library Name ... libopenblas_sandybridgep-r0.2.20.dev.a (Multi threaded; Max num-threads is 4)
Use OpenMP in the multithreading. Because of ignoring OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS flags,
you should use OMP_NUM_THREADS environment variable to control the number of threads.
但是,在Caffe安装中与OpenBlas Libs链接给了以下错误
链接cxx可执行文件upgrade_net_proto_binary /Opt/openblas/lib/libopenblas.so:'gomp_parallel@gomp_4.0'的不确定引用 Collect2:错误:LD返回1个退出状态 工具/cmakefiles/ustgrade_net_proto_binary.dir/build.make:129:目标食谱'工具/ustgrade_net_net_proto_binary'失败 制作[2]:* [工具/ustgrade_net_proto_binary]错误1 cmakefiles/makefile2:403:目标'工具/cmakefiles/ustgrade_net_proto_binary.dir/all'失败的配方 制作[1]: * [工具/cmakefiles/ustgrade_net_proto_binary.dir/all]错误2
很可能是因为您要链接到编译的OpenBlas,而不是安装它并链接到安装。运行make
后,您应该运行make install PREFIX=/path/to/install/OpenBLAS
,然后应链接到已安装的版本。
相关文章:
- 访问者访问变体并返回不同类型时出错
- 在Linux for Windows上编译C++代码时出错
- 读取文件的最后一行并输入到链接列表时出错
- 重载操作程序时出错>>用于类中的字符串 memebr
- 调用专用模板时出错"no matching function for call to [...]"
- C++-试图将函数指针推回到另一个CPP文件中的矢量时出错
- LINK 尝试使用 OpenSSL evp aes 256 c++ 时出错
- 在Google Kick start中提交时出错
- 在c++中访问int到类对象的映射时出错
- 分段错误当我试图运行程序时出错
- 使用dynamic_cast和构造函数时出错
- CHECK(调用)函数在Google Colab中出错
- 用pybind11包装C++抽象类时出错
- 为x86而非x64编译时出错
- 在C 中使用Caffe;无法将Caffe ::求解参数仪发挥作用而不会出错
- Caffe Net.Forward 尝试使用 OpenCV 进行人脸检测时出错
- 编译Caffe时出错
- 导入hdf5文件以在caffe中训练hdf5_classification时出错
- 编译 Caffe 时出错:ld:无法映射文件,errno=22
- 编译 caffe 时出错(未定义对 'caffe::D ecodeDatumNative(caffe::D atum*)'的引用)