Merge pull request #3088 from lukeyeager/bvlc/lmdb-nolock
[platform/upstream/caffeonacl.git] / Makefile.config.example
1 ## Refer to http://caffe.berkeleyvision.org/installation.html
2 # Contributions simplifying and improving our build system are welcome!
3
4 # cuDNN acceleration switch (uncomment to build with cuDNN).
5 # USE_CUDNN := 1
6
7 # CPU-only switch (uncomment to build without GPU support).
8 # CPU_ONLY := 1
9
10 # uncomment to disable IO dependencies and corresponding data layers
11 # USE_OPENCV := 0
12 # USE_LEVELDB := 0
13 # USE_LMDB := 0
14
15 # uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
16 #       You should not set this flag if you will be reading LMDBs with any
17 #       possibility of simultaneous read and write
18 # ALLOW_LMDB_NOLOCK := 1
19
20 # To customize your choice of compiler, uncomment and set the following.
21 # N.B. the default for Linux is g++ and the default for OSX is clang++
22 # CUSTOM_CXX := g++
23
24 # CUDA directory contains bin/ and lib/ directories that we need.
25 CUDA_DIR := /usr/local/cuda
26 # On Ubuntu 14.04, if cuda tools are installed via
27 # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
28 # CUDA_DIR := /usr
29
30 # CUDA architecture setting: going with all of them.
31 # For CUDA < 6.0, comment the *_50 lines for compatibility.
32 CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
33                 -gencode arch=compute_20,code=sm_21 \
34                 -gencode arch=compute_30,code=sm_30 \
35                 -gencode arch=compute_35,code=sm_35 \
36                 -gencode arch=compute_50,code=sm_50 \
37                 -gencode arch=compute_50,code=compute_50
38
39 # BLAS choice:
40 # atlas for ATLAS (default)
41 # mkl for MKL
42 # open for OpenBlas
43 BLAS := atlas
44 # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
45 # Leave commented to accept the defaults for your choice of BLAS
46 # (which should work)!
47 # BLAS_INCLUDE := /path/to/your/blas
48 # BLAS_LIB := /path/to/your/blas
49
50 # Homebrew puts openblas in a directory that is not on the standard search path
51 # BLAS_INCLUDE := $(shell brew --prefix openblas)/include
52 # BLAS_LIB := $(shell brew --prefix openblas)/lib
53
54 # This is required only if you will compile the matlab interface.
55 # MATLAB directory should contain the mex binary in /bin.
56 # MATLAB_DIR := /usr/local
57 # MATLAB_DIR := /Applications/MATLAB_R2012b.app
58
59 # NOTE: this is required only if you will compile the python interface.
60 # We need to be able to find Python.h and numpy/arrayobject.h.
61 PYTHON_INCLUDE := /usr/include/python2.7 \
62                 /usr/lib/python2.7/dist-packages/numpy/core/include
63 # Anaconda Python distribution is quite popular. Include path:
64 # Verify anaconda location, sometimes it's in root.
65 # ANACONDA_HOME := $(HOME)/anaconda
66 # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
67                 # $(ANACONDA_HOME)/include/python2.7 \
68                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
69
70 # We need to be able to find libpythonX.X.so or .dylib.
71 PYTHON_LIB := /usr/lib
72 # PYTHON_LIB := $(ANACONDA_HOME)/lib
73
74 # Homebrew installs numpy in a non standard path (keg only)
75 # PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
76 # PYTHON_LIB += $(shell brew --prefix numpy)/lib
77
78 # Uncomment to support layers written in Python (will link against Python libs)
79 # WITH_PYTHON_LAYER := 1
80
81 # Whatever else you find you need goes here.
82 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
83 LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
84
85 # If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
86 # INCLUDE_DIRS += $(shell brew --prefix)/include
87 # LIBRARY_DIRS += $(shell brew --prefix)/lib
88
89 # Uncomment to use `pkg-config` to specify OpenCV library paths.
90 # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
91 # USE_PKG_CONFIG := 1
92
93 BUILD_DIR := build
94 DISTRIBUTE_DIR := distribute
95
96 # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
97 # DEBUG := 1
98
99 # The ID of the GPU that 'make runtest' will use to run unit tests.
100 TEST_GPUID := 0
101
102 # enable pretty build (comment to see full commands)
103 Q ?= @