forked from BVLC/caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_yum.html
109 lines (91 loc) · 4.2 KB
/
install_yum.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html>
<head>
<!-- MathJax -->
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>
Caffe
</title>
<link rel="icon" type="image/png" href="/images/caffeine-icon.png">
<link rel="stylesheet" href="/stylesheets/reset.css">
<link rel="stylesheet" href="/stylesheets/styles.css">
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46255508-1', 'daggerfs.com');
ga('send', 'pageview');
</script>
<div class="wrapper">
<header>
<h1 class="header"><a href="/">Caffe</a></h1>
<p class="header">
Deep learning framework by the <a class="header name" href="http://bvlc.eecs.berkeley.edu/">BVLC</a>
</p>
<p class="header">
Created by
<br>
<a class="header name" href="http://daggerfs.com/">Yangqing Jia</a>
<br>
Lead Developer
<br>
<a class="header name" href="http://imaginarynumber.net/">Evan Shelhamer</a>
<ul>
<li>
<a class="buttons github" href="https://github.com/BVLC/caffe">View On GitHub</a>
</li>
</ul>
</header>
<section>
<h1 id="rhel--fedora--centos-installation">RHEL / Fedora / CentOS Installation</h1>
<p><strong>General dependencies</strong></p>
<div class="highlighter-rouge"><pre class="highlight"><code>sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
</code></pre>
</div>
<p><strong>Remaining dependencies, recent OS</strong></p>
<div class="highlighter-rouge"><pre class="highlight"><code>sudo yum install gflags-devel glog-devel lmdb-devel
</code></pre>
</div>
<p><strong>Remaining dependencies, if not found</strong></p>
<div class="highlighter-rouge"><pre class="highlight"><code># glog
wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
tar zxvf glog-0.3.3.tar.gz
cd glog-0.3.3
./configure
make && make install
# gflags
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make && make install
# lmdb
git clone https://github.com/LMDB/lmdb
cd lmdb/libraries/liblmdb
make && make install
</code></pre>
</div>
<p>Note that glog does not compile with the most recent gflags version (2.1), so before that is resolved you will need to build with glog first.</p>
<p><strong>CUDA</strong>: Install via the NVIDIA package instead of <code class="highlighter-rouge">yum</code> to be certain of the library and driver versions.
Install the library and latest driver separately; the driver bundled with the library is usually out-of-date.
+ CentOS/RHEL/Fedora:</p>
<p><strong>BLAS</strong>: install ATLAS by <code class="highlighter-rouge">sudo yum install atlas-devel</code> or install OpenBLAS or MKL for better CPU performance. For the Makefile build, uncomment and set <code class="highlighter-rouge">BLAS_LIB</code> accordingly as ATLAS is usually installed under <code class="highlighter-rouge">/usr/lib[64]/atlas</code>).</p>
<p><strong>Python</strong> (optional): if you use the default Python you will need to <code class="highlighter-rouge">sudo yum install</code> the <code class="highlighter-rouge">python-devel</code> package to have the Python headers for building the pycaffe wrapper.</p>
<p>Continue with <a href="installation.html#compilation">compilation</a>.</p>
</section>
</div>
</body>
</html>