質問編集履歴

1

makefile.configの追加

2019/05/07 04:05

投稿

jaxaman
jaxaman

スコア11

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,267 @@
17
17
  make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
18
18
 
19
19
  make: *** Waiting for unfinished jobs....
20
+
21
+
22
+
23
+
24
+
25
+ 現在のMakefile.configは次のようになっています。
26
+
27
+ ```ここに言語を入力
28
+
29
+ ## Refer to http://caffe.berkeleyvision.org/installation.html
30
+
31
+ # Contributions simplifying and improving our build system are welcome!
32
+
33
+
34
+
35
+ # cuDNN acceleration switch (uncomment to build with cuDNN).
36
+
37
+ #USE_CUDNN := 1
38
+
39
+
40
+
41
+ # CPU-only switch (uncomment to build without GPU support).
42
+
43
+ CPU_ONLY := 1
44
+
45
+
46
+
47
+ # uncomment to disable IO dependencies and corresponding data layers
48
+
49
+ USE_OPENCV := 0
50
+
51
+ # USE_LEVELDB := 0
52
+
53
+ # USE_LMDB := 0
54
+
55
+ # This code is taken from https://github.com/sh1r0/caffe-android-lib
56
+
57
+ # USE_HDF5 := 0
58
+
59
+
60
+
61
+ # uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
62
+
63
+ # You should not set this flag if you will be reading LMDBs with any
64
+
65
+ # possibility of simultaneous read and write
66
+
67
+ # ALLOW_LMDB_NOLOCK := 1
68
+
69
+
70
+
71
+ # Uncomment if you're using OpenCV 3
72
+
73
+ OPENCV_VERSION := 3
74
+
75
+
76
+
77
+ # To customize your choice of compiler, uncomment and set the following.
78
+
79
+ # N.B. the default for Linux is g++ and the default for OSX is clang++
80
+
81
+ # CUSTOM_CXX := g++
82
+
83
+
84
+
85
+ # CUDA directory contains bin/ and lib/ directories that we need.
86
+
87
+ CUDA_DIR := /usr/local/cuda
88
+
89
+ # On Ubuntu 14.04, if cuda tools are installed via
90
+
91
+ # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
92
+
93
+ # CUDA_DIR := /usr
94
+
95
+
96
+
97
+ # CUDA architecture setting: going with all of them.
98
+
99
+ # For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
100
+
101
+ # For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
102
+
103
+ # For CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility.
104
+
105
+ CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
106
+
107
+ -gencode arch=compute_20,code=sm_21 \
108
+
109
+ -gencode arch=compute_30,code=sm_30 \
110
+
111
+ -gencode arch=compute_35,code=sm_35 \
112
+
113
+ -gencode arch=compute_50,code=sm_50 \
114
+
115
+ -gencode arch=compute_52,code=sm_52 \
116
+
117
+ -gencode arch=compute_60,code=sm_60 \
118
+
119
+ -gencode arch=compute_61,code=sm_61 \
120
+
121
+ -gencode arch=compute_61,code=compute_61
122
+
123
+
124
+
125
+ # BLAS choice:
126
+
127
+ # atlas for ATLAS (default)
128
+
129
+ # mkl for MKL
130
+
131
+ # open for OpenBlas
132
+
133
+ BLAS := atlas
134
+
135
+ # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
136
+
137
+ # Leave commented to accept the defaults for your choice of BLAS
138
+
139
+ # (which should work)!
140
+
141
+ # BLAS_INCLUDE := /path/to/your/blas
142
+
143
+ # BLAS_LIB := /path/to/your/blas
144
+
145
+
146
+
147
+ # Homebrew puts openblas in a directory that is not on the standard search path
148
+
149
+ # BLAS_INCLUDE := $(shell brew --prefix openblas)/include
150
+
151
+ # BLAS_LIB := $(shell brew --prefix openblas)/lib
152
+
153
+
154
+
155
+ # This is required only if you will compile the matlab interface.
156
+
157
+ # MATLAB directory should contain the mex binary in /bin.
158
+
159
+ # MATLAB_DIR := /usr/local
160
+
161
+ # MATLAB_DIR := /Applications/MATLAB_R2012b.app
162
+
163
+
164
+
165
+ # NOTE: this is required only if you will compile the python interface.
166
+
167
+ # We need to be able to find Python.h and numpy/arrayobject.h.
168
+
169
+ #PYTHON_INCLUDE := /usr/include/python2.7 \
170
+
171
+ /usr/lib/python2.7/dist-packages/numpy/core/include
172
+
173
+ # Anaconda Python distribution is quite popular. Include path:
174
+
175
+ # Verify anaconda location, sometimes it's in root.
176
+
177
+ ANACONDA_HOME := $(HOME)/anaconda
178
+
179
+ # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
180
+
181
+ # $(ANACONDA_HOME)/include/python2.7 \
182
+
183
+ # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include
184
+
185
+
186
+
187
+ # Uncomment to use Python 3 (default is Python 2)
188
+
189
+ PYTHON_LIBRARIES := boost_python3 python3.5m
190
+
191
+ # PYTHON_INCLUDE := /usr/include/python3.5m \
192
+
193
+ /usr/lib/python3.5/dist-packages/numpy/core/include
194
+
195
+ PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
196
+
197
+ $(ANACONDA_HOME)/lib \
198
+
199
+ $(ANACONDA_HOME)/include/python3.6m \
200
+
201
+ $(ANACONDA_HOME)/lib/python3.6/site-packages/numpy/core/include
202
+
203
+ # We need to be able to find libpythonX.X.so or .dylib.
204
+
205
+ PYTHON_LIB := /usr/lib
206
+
207
+ # PYTHON_LIB := $(ANACONDA_HOME)/lib
208
+
209
+
210
+
211
+ # Homebrew installs numpy in a non standard path (keg only)
212
+
213
+ # PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
214
+
215
+ # PYTHON_LIB += $(shell brew --prefix numpy)/lib
216
+
217
+
218
+
219
+ # Uncomment to support layers written in Python (will link against Python libs)
220
+
221
+ # WITH_PYTHON_LAYER := 1
222
+
223
+
224
+
225
+ # Whatever else you find you need goes here.
226
+
227
+ INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
228
+
229
+ LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
230
+
231
+
232
+
233
+ # If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
234
+
235
+ # INCLUDE_DIRS += $(shell brew --prefix)/include
236
+
237
+ # LIBRARY_DIRS += $(shell brew --prefix)/lib
238
+
239
+
240
+
241
+ # NCCL acceleration switch (uncomment to build with NCCL)
242
+
243
+ # https://github.com/NVIDIA/nccl (last tested version: v1.2.3-1+cuda8.0)
244
+
245
+ # USE_NCCL := 1
246
+
247
+
248
+
249
+ # Uncomment to use `pkg-config` to specify OpenCV library paths.
250
+
251
+ # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
252
+
253
+ USE_PKG_CONFIG := 1
254
+
255
+
256
+
257
+ # N.B. both build and distribute dirs are cleared on `make clean`
258
+
259
+ BUILD_DIR := build
260
+
261
+ DISTRIBUTE_DIR := distribute
262
+
263
+
264
+
265
+ # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
266
+
267
+ # DEBUG := 1
268
+
269
+
270
+
271
+ # The ID of the GPU that 'make runtest' will use to run unit tests.
272
+
273
+ TEST_GPUID := 0
274
+
275
+
276
+
277
+ # enable pretty build (comment to see full commands)
278
+
279
+ Q ?= @
280
+
281
+
282
+
283
+ ```