summaryrefslogtreecommitdiff
path: root/Makefile.config.example
diff options
context:
space:
mode:
authorSergey Karayev <sergeykarayev@gmail.com>2014-02-25 22:59:26 -0800
committerSergey Karayev <sergeykarayev@gmail.com>2014-02-25 22:59:26 -0800
commit38b21d7553fb373a1161fec4bdf030272632395f (patch)
treed7fe3f2c1eef1c3bbe50dd0a5cf747088de6eb9a /Makefile.config.example
parentb9e8140212ee0a75b81abde231f0428aa520c3b5 (diff)
downloadcaffeonacl-38b21d7553fb373a1161fec4bdf030272632395f.tar.gz
caffeonacl-38b21d7553fb373a1161fec4bdf030272632395f.tar.bz2
caffeonacl-38b21d7553fb373a1161fec4bdf030272632395f.zip
More comments in Makefile.config.example
Diffstat (limited to 'Makefile.config.example')
-rw-r--r--Makefile.config.example27
1 files changed, 19 insertions, 8 deletions
diff --git a/Makefile.config.example b/Makefile.config.example
index b70ccf2a..cec85e0a 100644
--- a/Makefile.config.example
+++ b/Makefile.config.example
@@ -1,7 +1,10 @@
+## Refer to http://caffe.berkeleyvision.org/installation.html
+# Contributions simplifying and improving our build system are welcome!
+
# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
-# CUDA architecture setting.
+# CUDA architecture setting: going with all of them.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
@@ -10,25 +13,33 @@ CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
# MKL directory contains include/ and lib/ directions that we need.
MKL_DIR := /opt/intel/mkl
-# NOTE: this is required only if you will compile the matlab interface.
-# MATLAB directory should contain the mex binary in /bin
+# This is required only if you will compile the matlab interface.
+# MATLAB directory should contain the mex binary in /bin.
MATLAB_DIR := /usr/local
+# MATLAB_DIR := /Applications/MATLAB_R2012b.app
# 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
+# 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
+
# We need to be able to find libpythonX.X.so or .dylib.
PYTHON_LIB := /usr/local/lib
+# 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++
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDES) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib /usr/local/lib
-# For OS X, use clang++.
-CXX := /usr/bin/g++
-# For OS X 10.9, use libstdc++ instead of libc++ for CUDA compatibility.
-#CXXFLAGS := -stdlib=libstdc++
-
BUILD_DIR := build
DISTRIBUTE_DIR := distribute