зеркало из https://github.com/microsoft/caffe.git
Merge pull request #268 from longjon/debug
Add DEBUG option to Makefile/Makefile.config.example
This commit is contained in:
Коммит
2338027414
6
Makefile
6
Makefile
|
@ -97,7 +97,11 @@ LIBRARIES := cudart cublas curand \
|
|||
PYTHON_LIBRARIES := boost_python python2.7
|
||||
WARNINGS := -Wall
|
||||
|
||||
COMMON_FLAGS := -DNDEBUG -O2
|
||||
ifdef DEBUG
|
||||
COMMON_FLAGS := -DDEBUG -g -O0
|
||||
else
|
||||
COMMON_FLAGS := -DNDEBUG -O2
|
||||
endif
|
||||
|
||||
# MKL switch (default = non-MKL)
|
||||
USE_MKL ?= 0
|
||||
|
|
|
@ -45,3 +45,6 @@ LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib /usr/local/lib
|
|||
|
||||
BUILD_DIR := build
|
||||
DISTRIBUTE_DIR := distribute
|
||||
|
||||
# uncomment for debugging
|
||||
#DEBUG := 1
|
||||
|
|
Загрузка…
Ссылка в новой задаче