summaryrefslogtreecommitdiff
path: root/Makefile.config.example
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-04-08 20:11:53 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-04-08 20:11:53 -0700
commitd09f023ed2a2525f4bcd9b2329940bd0282399af (patch)
tree5f0f1e255728ec84c532034607645bf22329f67d /Makefile.config.example
parent4d4de2383045cc2412f98159692e1d5fee5ba810 (diff)
parent8fc0e4bbe666f2c68f0f7f6ae4c7237675016114 (diff)
downloadcaffeonacl-d09f023ed2a2525f4bcd9b2329940bd0282399af.tar.gz
caffeonacl-d09f023ed2a2525f4bcd9b2329940bd0282399af.tar.bz2
caffeonacl-d09f023ed2a2525f4bcd9b2329940bd0282399af.zip
Merge pull request #305 from shelhamer/install-doc-blas-platform
Document BLAS install, tailor Makefile and Makefile.config to platform
Diffstat (limited to 'Makefile.config.example')
-rw-r--r--Makefile.config.example26
1 files changed, 11 insertions, 15 deletions
diff --git a/Makefile.config.example b/Makefile.config.example
index 55007715..27d460b1 100644
--- a/Makefile.config.example
+++ b/Makefile.config.example
@@ -6,11 +6,13 @@ CUDA_DIR := /usr/local/cuda
# 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 \
- -gencode arch=compute_35,code=sm_35
+ -gencode arch=compute_20,code=sm_21 \
+ -gencode arch=compute_30,code=sm_30 \
+ -gencode arch=compute_35,code=sm_35
-# MKL switch: set to 1 for MKL
+# MKL switch:
+# 0 for ATLAS BLAS (default)
+# 1 for MKL BLAS
USE_MKL := 0
# MKL directory contains include/ and lib/ directions that we need.
MKL_DIR := /opt/intel/mkl
@@ -23,22 +25,16 @@ MKL_DIR := /opt/intel/mkl
# 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
+ /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
+ # $(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
@@ -46,8 +42,8 @@ LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib /usr/local/lib
BUILD_DIR := build
DISTRIBUTE_DIR := distribute
-# uncomment for debugging
-#DEBUG := 1
+# Uncomment for debugging.
+# DEBUG := 1
# The ID of the GPU that 'make runtest' will use to run unit tests.
TEST_GPUID := 0