centos7下,intel-opencl-caffe安装中遇到的坑
2017-11-02 11:34
585 查看
用的是这个项目:https://github.com/01org/caffe
教程参考:https://github.com/01org/caffe/wiki/clCaffe
OpenCV的问题:
在CMakeList.txt中加入一句:
然后,在编译命令中添加:
如果使用atlas,会碰到找不到库的问题。建议改用openblas
openblas:
MakeFile.config配置如下:
安装最新的epel-Release
出错:
移除老的版本:
之后再重新安装
运行测试
放到 /usr/local/lib 里面的动态链接库并不能正常被加载。(应该是之前安装的库都在这个目录……)
把这个目录添加到库搜索的目录就行了:
运行 examples 的例子的时候,其默认都是在 GPU 运行的,需要在 *_solver.prototxt 中将修改 solver_mode 为 solver_mode = CPU。
教程参考:https://github.com/01org/caffe/wiki/clCaffe
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
如果使用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
安装最新的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*
之后再重新安装
运行测试
放到 /usr/local/lib 里面的动态链接库并不能正常被加载。(应该是之前安装的库都在这个目录……)
把这个目录添加到库搜索的目录就行了:
sudo ldconfig /usr/local/lib
运行 examples 的例子的时候,其默认都是在 GPU 运行的,需要在 *_solver.prototxt 中将修改 solver_mode 为 solver_mode = CPU。
相关文章推荐
- lua5.3.0在centos7下安装遇到的问题
- [转]Centos7下caffe的安装
- centos 6.5安装caffe遇到的问题
- centos 7下拨号上网 及 firefox安装flash后遇到的问题
- [转]Centos6.5+CUDA6.5+caffe安装配置及可能遇到问题解答
- 【Zabbix】centos7下安装zabbix客户端及遇到的问题
- CentOS 安装caffe步骤(非root、仅CPU、OpenBLAS、Intel MKL)
- CentOs7下,Caffe环境安装问题解决
- Centos7下caffe的安装
- Centos6.5+CUDA6.5+caffe安装配置及可能遇到问题解答
- centos7下安装部署LNMP+zabbix3.0
- centos7下安装ifconfig 命令
- centos 7下安装Emacs
- CentOS 7下安装mysql
- CentOS下安装配置Cacti遇到的问题
- centos安装paramiko遇到的错误
- CentOS7下Chrome以及chromedriver的安装配置
- Centos7下不删除python2.x的情况下安装python3.x
- CentOS 7下LAMP源码安装(2)设置及源码下载
- centos7下svn的安装与配置