зеркало из https://github.com/microsoft/caffe.git
add DEBUG option to Makefile/Makefile.config.example
This allows debugging to be toggled without dirtying the tree.
This commit is contained in:
Родитель
18d1e96edc
Коммит
c8ec12c5cb
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче