]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - jacinto-ai/caffe-jacinto.git/blob - Makefile.config.example
Merge pull request #1654 from longjon/softmax-missing-values
[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
7 # CPU-only switch (uncomment to build without GPU support).
8 # CPU_ONLY := 1
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++
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
20 # CUDA architecture setting: going with all of them.
21 # For CUDA < 6.0, comment the *_50 lines for compatibility.
22 CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
23                 -gencode arch=compute_20,code=sm_21 \
24                 -gencode arch=compute_30,code=sm_30 \
25                 -gencode arch=compute_35,code=sm_35 \
26                 -gencode arch=compute_50,code=sm_50 \
27                 -gencode arch=compute_50,code=compute_50
29 # BLAS choice:
30 # atlas for ATLAS (default)
31 # mkl for MKL
32 # open for OpenBlas
33 BLAS := atlas
34 # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
35 # Leave commented to accept the defaults for your choice of BLAS
36 # (which should work)!
37 # BLAS_INCLUDE := /path/to/your/blas
38 # BLAS_LIB := /path/to/your/blas
40 # This is required only if you will compile the matlab interface.
41 # MATLAB directory should contain the mex binary in /bin.
42 # MATLAB_DIR := /usr/local
43 # MATLAB_DIR := /Applications/MATLAB_R2012b.app
45 # NOTE: this is required only if you will compile the python interface.
46 # We need to be able to find Python.h and numpy/arrayobject.h.
47 PYTHON_INCLUDE := /usr/include/python2.7 \
48                 /usr/lib/python2.7/dist-packages/numpy/core/include
49 # Anaconda Python distribution is quite popular. Include path:
50 # Verify anaconda location, sometimes it's in root.
51 # ANACONDA_HOME := $(HOME)/anaconda
52 # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
53                 # $(ANACONDA_HOME)/include/python2.7 \
54                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
56 # We need to be able to find libpythonX.X.so or .dylib.
57 PYTHON_LIB := /usr/lib
58 # PYTHON_LIB := $(ANACONDA_HOME)/lib
60 # Whatever else you find you need goes here.
61 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
62 LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
64 # Uncomment to use `pkg-config` to specify OpenCV library paths.
65 # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
66 # USE_PKG_CONFIG := 1
68 BUILD_DIR := build
69 DISTRIBUTE_DIR := distribute
71 # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
72 # DEBUG := 1
74 # The ID of the GPU that 'make runtest' will use to run unit tests.
75 TEST_GPUID := 0
77 # enable pretty build (comment to see full commands)
78 Q ?= @