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