Commit 4901bc34 authored by Leonardo Solis's avatar Leonardo Solis

#55: create two debug modes for CONFIG (FDEBUG and LDEBUG) + removed...

#55: create two debug modes for CONFIG (FDEBUG and LDEBUG) + removed DOCK_DEBUG as a Makefile variable
parent 4abaea1a
......@@ -98,8 +98,10 @@ else
endif
# ------------------------------------------------------
# Configuration (Host)
# Valid values: RELEASE, DEBUG
# Configuration
# FDEBUG (full) : enables debugging on both host + device
# LDEBUG (light): enables debugging on host
# RELEASE
CONFIG=RELEASE
OCL_DEBUG_BASIC=-DPLATFORM_ATTRIBUTES_DISPLAY\
......@@ -116,7 +118,9 @@ OCL_DEBUG_ALL=$(OCL_DEBUG_BASIC) \
-DKERNEL_WORK_GROUP_INFO_DISPLAY \
-DBUFFER_OBJECT_INFO_DISPLAY
ifeq ($(CONFIG),DEBUG)
ifeq ($(CONFIG),FDEBUG)
OPT =-O0 -g3 -Wall $(OCL_DEBUG_ALL) -DDOCK_DEBUG
else ifeq ($(CONFIG),LDEBUG)
OPT =-O0 -g3 -Wall $(OCL_DEBUG_BASIC)
else ifeq ($(CONFIG),RELEASE)
OPT =-O3
......@@ -125,18 +129,9 @@ else
endif
# ------------------------------------------------------
# Host and Device Debug
DOCK_DEBUG=NO
# Reproduce results (remove randomness)
REPRO=NO
ifeq ($(DOCK_DEBUG),YES)
DD =-DDOCK_DEBUG
else
DD =
endif
ifeq ($(REPRO),YES)
REP =-DREPRO
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment