CENTOS7 Installation Caffe

Source: Internet
Author: User
CentOS7 Installation Caffe Install Dependency Pack
sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
sudo yum install Gflag S-devel glog-devel lmdb-devel
sudo yum install Openblas-devel
Install Caffe
Wget-c https://github.com/BVLC/caffe/archive/1.0.tar.gz
tar zxvf 1.0.tar.gz
CD caffe-1.0
CP Makefile.config.example Makefile.config

Since I'm just testing that the machine does not have a GPU, you need to use Cpu_only mode, edit the Makefile.config, and open the line below

Cpu_only: = 1

Then, compile the installation

Make-all-test-make
runtest
problem Question one

The following error occurred while compiling

./include/caffe/util/mkl_alternate.hpp:14:19:fatal error:cblas.h:no such file or directory

Solutions

sudo yum install liblas-devel atlas-devel
question two

The following error occurred while compiling

/usr/bin/ld:cannot Find-lcblas
/usr/bin/ld:cannot Find-latlas

This issue can be addressed by installing Libatlas-base-dev packages for Ubuntu, as follows:

sudo apt install Libatlas-base-dev

But for CentOS7, without this package, you can edit the Makefile.config file by modifying the compilation parameters using Openblas,

Modified before
BLAS: = Atlas
Modified
BLAS: = Open

Then, re-execute

Make-all-test-make
runtest

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.