2014-02-26 10:59:26 +04:00
|
|
|
## Refer to http://caffe.berkeleyvision.org/installation.html
|
|
|
|
# Contributions simplifying and improving our build system are welcome!
|
|
|
|
|
2014-02-03 14:41:44 +04:00
|
|
|
# CUDA directory contains bin/ and lib/ directories that we need.
|
|
|
|
CUDA_DIR := /usr/local/cuda
|
|
|
|
|
2014-02-26 10:59:26 +04:00
|
|
|
# CUDA architecture setting: going with all of them.
|
2014-02-03 14:41:44 +04:00
|
|
|
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
|
|
|
|
-gencode arch=compute_20,code=sm_21 \
|
|
|
|
-gencode arch=compute_30,code=sm_30 \
|
|
|
|
-gencode arch=compute_35,code=sm_35
|
|
|
|
|
2014-02-18 23:10:23 +04:00
|
|
|
# MKL switch: set to 1 for MKL
|
|
|
|
USE_MKL := 0
|
2014-02-03 14:41:44 +04:00
|
|
|
# MKL directory contains include/ and lib/ directions that we need.
|
|
|
|
MKL_DIR := /opt/intel/mkl
|
|
|
|
|
2014-02-26 10:59:26 +04:00
|
|
|
# This is required only if you will compile the matlab interface.
|
|
|
|
# MATLAB directory should contain the mex binary in /bin.
|
2014-02-03 14:41:44 +04:00
|
|
|
MATLAB_DIR := /usr/local
|
2014-02-26 10:59:26 +04:00
|
|
|
# MATLAB_DIR := /Applications/MATLAB_R2012b.app
|
2014-02-03 14:41:44 +04:00
|
|
|
|
|
|
|
# NOTE: this is required only if you will compile the python interface.
|
|
|
|
# We need to be able to find Python.h and numpy/arrayobject.h.
|
|
|
|
PYTHON_INCLUDES := /usr/include/python2.7 \
|
|
|
|
/usr/local/lib/python2.7/dist-packages/numpy/core/include
|
2014-02-26 10:59:26 +04:00
|
|
|
# Anaconda Python distribution is quite popular. Include path:
|
|
|
|
# PYTHON_INCLUDES := $(HOME)/anaconda/include \
|
|
|
|
# $(HOME)/anaconda/include/python2.7 \
|
|
|
|
# $(HOME)/anaconda/lib/python2.7/site-packages/numpy/core/include
|
|
|
|
|
2014-02-03 14:41:44 +04:00
|
|
|
# We need to be able to find libpythonX.X.so or .dylib.
|
|
|
|
PYTHON_LIB := /usr/local/lib
|
2014-02-26 10:59:26 +04:00
|
|
|
# PYTHON_LIB := $(HOME)/anaconda/lib
|
|
|
|
|
|
|
|
CXX := /usr/bin/g++
|
|
|
|
# For OS X, use clang++.
|
|
|
|
# CXX := /usr/bin/clang++
|
|
|
|
# For OS X 10.9, use libstdc++ instead of libc++ for CUDA compatibility.
|
|
|
|
# CXXFLAGS := -stdlib=libstdc++
|
2014-02-03 14:41:44 +04:00
|
|
|
|
|
|
|
# Whatever else you find you need goes here.
|
|
|
|
INCLUDE_DIRS := $(PYTHON_INCLUDES) /usr/local/include
|
|
|
|
LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib /usr/local/lib
|
|
|
|
|
2014-02-15 11:28:26 +04:00
|
|
|
BUILD_DIR := build
|
|
|
|
DISTRIBUTE_DIR := distribute
|
2014-03-22 02:15:00 +04:00
|
|
|
|
|
|
|
# uncomment for debugging
|
|
|
|
#DEBUG := 1
|
2014-03-30 04:46:39 +04:00
|
|
|
|
|
|
|
# The ID of the GPU that 'make runtest' will use to run unit tests.
|
|
|
|
TEST_GPUID := 0
|