Ubuntu 14.04 64-bit on-machine Caffe configuration compilation procedure without CUDA support

Source: Internet
Author: User

Caffe is an efficient, deep learning framework. It can be executed either on the CPU or on the GPU.

The following is an introduction to the Caffe configuration compilation process on Ubuntu without Cuda:

1. Install the blas:$ sudo apt-get install Libatlas-base-dev

2. Install dependencies: $ sudo apt-get install Libprotobuf-dev libleveldb-dev libsnappy-devlibopencv-dev Libboost-all-dev libhdf5-se Rial-dev Protobuf-compiler Liblmdb-dev

3. Install Glog (download from http://download.csdn.net/download/chenguangxing3/6661667): $ tar zxvf glog-0.3.3.tar.gz, $ cd glog-0.3.3 , $./configure, $make, $ sudo make install

4. Install gflags (download from Https://github.com/gflags/gflags), execute: $ unzip gflags-master.zip, $CD Gflags-master, $ mkdir Build , $ CD build, $ export cxxflags= "-fpic", $cmake: , make verbose=1, $ make, $ sudo make install

5. Install lmdb:$ git clone git://gitorious.org/mdb/mdb.git, $ Cdmdb/libraries/liblmdb, $ make, $ sudo make install

6. Download caffe:$ git clone git://github.com/bvlc/caffe.git

7. Install Caffe: (1), $ CP Makefile.config.example Makefile.config (2), modify Makefile.config file: Remove comment, cpu_only:= 1 (3), $ make Al L (4), $ make test (5), $ make runtest

Note : If you add the Libgflags-dev libgoogle-glog-dev Liblmdb-dev entry in step 2nd, you can omit the 3rd, 4, and 5 steps for a separate installation of Glog, GFlags, and Lmdb.

Reference documents:

1. http://caffe.berkeleyvision.org/installation.html

2. http://m.blog.csdn.net/blog/zxd675816777/39649281

3. http://www.haodaima.net/art/2823705

4. http://demo.netfoucs.com/danieljianfeng/article/details/42836167

5. http://www.cnblogs.com/platero/p/3993877.html

6. http://blog.csdn.net/kuaitoukid/article/details/40395617

Ubuntu 14.04 64-bit on-machine Caffe configuration compilation procedure without CUDA support

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.