You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -87,15 +87,20 @@ There is an unofficial Windows port of Caffe at [niuzhiheng/caffe:windows](https
87
87
88
88
## Compilation
89
89
90
-
Now that you have the prerequisites, edit your `Makefile.config` to change the paths for your setup The defaults should work, but uncomment the relevant lines if using Anaconda Python.
90
+
Caffe can be compiled with either Make or CMake. Make is officially supported while CMake is supported by the community.
91
+
92
+
### Compilation with Make
93
+
94
+
Configure the build by copying and modifying the example `Makefile.config` for your setup. The defaults should work, but uncomment the relevant lines if using Anaconda Python.
91
95
92
96
cp Makefile.config.example Makefile.config
93
-
# Adjust Makefile.config (for example, if using Anaconda Python)
97
+
# Adjust Makefile.config (for example, if using Anaconda Python, or if cuDNN is desired)
94
98
make all
95
99
make test
96
100
make runtest
97
101
98
-
- For cuDNN acceleration, you should uncomment the `USE_CUDNN := 1` switch in `Makefile.config`.
102
+
- For CPU & GPU accelerated Caffe, no changes are needed.
103
+
- For cuDNN acceleration using NVIDIA's proprietary cuDNN software, uncomment the `USE_CUDNN := 1` switch in `Makefile.config`. cuDNN is sometimes but not always faster than Caffe's GPU acceleration.
99
104
- For CPU-only Caffe, uncomment `CPU_ONLY := 1` in `Makefile.config`.
100
105
101
106
To compile the Python and MATLAB wrappers do `make pycaffe` and `make matcaffe` respectively.
@@ -107,7 +112,7 @@ Be sure to set your MATLAB and Python paths in `Makefile.config` first!
107
112
108
113
Now that you have installed Caffe, check out the [MNIST tutorial](gathered/examples/mnist.html) and the [reference ImageNet model tutorial](gathered/examples/imagenet.html).
109
114
110
-
### CMake Compilation
115
+
### Compilation with CMake
111
116
112
117
In lieu of manually editing `Makefile.config` to configure the build, Caffe offers an unofficial CMake build thanks to @Nerei, @akosiorek, and other members of the community. It requires CMake version >= 2.8.7.
113
118
The basic steps are as follows:
@@ -116,6 +121,7 @@ The basic steps are as follows:
116
121
cd build
117
122
cmake ..
118
123
make all
124
+
make install
119
125
make runtest
120
126
121
127
See [PR #1667](https://github.com/BVLC/caffe/pull/1667) for options and details.
0 commit comments