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