centos7下,intel-opencl-caffe安装中遇到的坑

用的是这个项目:https://github.com/01org/caffe

教程参考:https://github.com/01org/caffe/wiki/clCaffe

  1. OpenCV的问题:

        ...
        CMake Warning at C:/opencv/opencv320/build/OpenCVConfig.cmake:138 (message):
        Found OpenCV Windows Pack but it has no binaries compatible with your configuration.
    
        You should manually point CMake variable OpenCV_DIR to your build of OpenCV
        ...
    

    在CMakeList.txt中加入一句:

    set(OpenCV_FOUND 1)
    

    然后,在编译命令中添加:

    -DOpenCV_DIR=/usr/local/opencv-2.4.13/build
    
  2. 如果使用atlas,会碰到找不到库的问题。建议改用openblas

    openblas:

    yum install  openblas-devel
    

    MakeFile.config配置如下:

        BLAS := open
        # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
        # Leave commented to accept the defaults for your choice of BLAS
        # (which should work)!
        #BLAS_INCLUDE := /usr/include/atlas
        #BLAS_LIB := /usr/lib64/atlas
    
  3. 安装最新的epel-Release

    sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-xx.noarch.rpm
    

    出错:

    Error: Failed Dependencies:epel-Release >= 7 Is Needed By Webtatic-Release-7-9.Noarch
    

    移除老的版本:

    yum remove epel*
    

    之后再重新安装

  4. 运行测试

    • 放到 /usr/local/lib 里面的动态链接库并不能正常被加载。(应该是之前安装的库都在这个目录……)
      把这个目录添加到库搜索的目录就行了:

      sudo ldconfig /usr/local/lib
      
    • 运行 examples 的例子的时候,其默认都是在 GPU 运行的,需要在 *_solver.prototxt 中将修改 solver_mode 为 solver_mode = CPU。

你可能感兴趣的:(错误信息解决方案)