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