Merge pull request #1326 from jackculpepper/absgradatzero
[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 # To customize your choice of compiler, uncomment and set the following.
11 # N.B. the default for Linux is g++ and the default for OSX is clang++
12 # CUSTOM_CXX := g++
13
14 # CUDA directory contains bin/ and lib/ directories that we need.
15 CUDA_DIR := /usr/local/cuda
16 # On Ubuntu 14.04, if cuda tools are installed via
17 # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
18 # CUDA_DIR := /usr
19
20 # CUDA architecture setting: going with all of them (up to CUDA 5.5 compatible).
21 # For the latest architecture, you need to install CUDA >= 6.0 and uncomment
22 # the *_50 lines below.
23 CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
24                 -gencode arch=compute_20,code=sm_21 \
25                 -gencode arch=compute_30,code=sm_30 \
26                 -gencode arch=compute_35,code=sm_35 \
27                 #-gencode arch=compute_50,code=sm_50 \
28                 #-gencode arch=compute_50,code=compute_50
29
30 # BLAS choice:
31 # atlas for ATLAS (default)
32 # mkl for MKL
33 # open for OpenBlas
34 BLAS := atlas
35 # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
36 # Leave commented to accept the defaults for your choice of BLAS
37 # (which should work)!
38 # BLAS_INCLUDE := /path/to/your/blas
39 # BLAS_LIB := /path/to/your/blas
40
41 # This is required only if you will compile the matlab interface.
42 # MATLAB directory should contain the mex binary in /bin.
43 # MATLAB_DIR := /usr/local
44 # MATLAB_DIR := /Applications/MATLAB_R2012b.app
45
46 # NOTE: this is required only if you will compile the python interface.
47 # We need to be able to find Python.h and numpy/arrayobject.h.
48 PYTHON_INCLUDE := /usr/include/python2.7 \
49                 /usr/lib/python2.7/dist-packages/numpy/core/include
50 # Anaconda Python distribution is quite popular. Include path:
51 # Verify anaconda location, sometimes it's in root.
52 # ANACONDA_HOME := $(HOME)/anaconda
53 # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
54                 # $(ANACONDA_HOME)/include/python2.7 \
55                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
56
57 # We need to be able to find libpythonX.X.so or .dylib.
58 PYTHON_LIB := /usr/lib
59 # PYTHON_LIB := $(ANACONDA_HOME)/lib
60
61 # Whatever else you find you need goes here.
62 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
63 LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
64
65 # Uncomment to use `pkg-config` to specify OpenCV library paths.
66 # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
67 # USE_PKG_CONFIG := 1
68
69 BUILD_DIR := build
70 DISTRIBUTE_DIR := distribute
71
72 # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
73 # DEBUG := 1
74
75 # The ID of the GPU that 'make runtest' will use to run unit tests.
76 TEST_GPUID := 0