|
1 | | -#=============================================================================== |
| 1 | + #=============================================================================== |
2 | 2 | # Copyright 2014 Intel Corporation |
3 | 3 | # Copyright contributors to the oneDAL project |
4 | 4 | # |
@@ -132,8 +132,10 @@ y := $(notdir $(filter $(_OS)/%,lnx/so win/dll mac/dylib)) |
132 | 132 | -DMKL_ILP64 := $(if $(filter mkl,$(BACKEND_CONFIG)),-DMKL_ILP64) |
133 | 133 | -Zl := $(-Zl.$(COMPILER)) |
134 | 134 | -Zl_DPCPP := $(-Zl.dpcpp) |
135 | | --DEBC := $(if $(REQDBG),$(-DEBC.$(COMPILER)) -DDEBUG_ASSERT -DONEDAL_ENABLE_ASSERT) -DTBB_SUPPRESS_DEPRECATED_MESSAGES -D__TBB_LEGACY_MODE |
136 | | --DEBC_DPCPP := $(if $(REQDBG),$(-DEBC.dpcpp) -DDEBUG_ASSERT -DONEDAL_ENABLE_ASSERT) |
| 135 | +# if REQDBG set to 'symbols', it will disable assert checking |
| 136 | +# This greatly reduces compiling with the static library when only symbols are desired |
| 137 | +-DEBC := $(if $(REQDBG),$(if $(filter symbols,$(REQDBG)),$(-DEBC.$(COMPILER)),$(-DEBC.$(COMPILER)) -DDEBUG_ASSERT -DONEDAL_ENABLE_ASSERT)) -DTBB_SUPPRESS_DEPRECATED_MESSAGES -D__TBB_LEGACY_MODE |
| 138 | +-DEBC_DPCPP := $(if $(REQDBG),$(if $(filter symbols,$(REQDBG)),$(-DEBC.dpcpp),$(-DEBC.dpcpp) -DDEBUG_ASSERT -DONEDAL_ENABLE_ASSERT)) |
137 | 139 | -DEBL := $(if $(REQDBG),$(if $(OS_is_win),-debug,)) |
138 | 140 | -EHsc := $(if $(OS_is_win),-EHsc,) |
139 | 141 | -isystem := $(if $(OS_is_win),-I,-isystem) |
@@ -1116,7 +1118,9 @@ Flags: |
1116 | 1118 | possible values: $(CORE.ALGORITHMS.CUSTOM.AVAILABLE) |
1117 | 1119 | REQCPU - list of CPU optimizations to be included into library |
1118 | 1120 | possible values: $(CPUs) |
1119 | | - REQDBG - flag that enables build in debug mode |
| 1121 | + REQDBG - flag that enables build in debug mode. Debug mode turns on oneDAL |
| 1122 | + assertions and adds debug symbols. For only debug symbols set flag to |
| 1123 | + special value: symbols |
1120 | 1124 | REQPROFILE - flag that enables kernel profiling using <ittnotify.h> |
1121 | 1125 | endef |
1122 | 1126 |
|
|
0 commit comments