Skip to content

Commit d3eb8a0

Browse files
TaoLvrondogency
authored andcommitted
Fix USE_MKLDNN check in Makefile (apache#13775)
* fix makefile * change make/config.mk * add comments * retrigger ci
1 parent ee3ec09 commit d3eb8a0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ endif
6161
# use customized config file
6262
include $(config)
6363

64-
ifndef $(USE_MKLDNN)
64+
ifndef USE_MKLDNN
6565
ifneq ($(UNAME_S), Darwin)
6666
ifneq ($(UNAME_S), Windows)
6767
ifeq ($(UNAME_P), x86_64)

make/config.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ USE_LIBJPEG_TURBO_PATH = NONE
9898
# use openmp for parallelization
9999
USE_OPENMP = 1
100100

101-
# whether use MKL-DNN library
102-
USE_MKLDNN = 0
101+
# whether use MKL-DNN library: 0 = disabled, 1 = enabled
102+
# if USE_MKLDNN is not defined, MKL-DNN will be enabled by default on x86 Linux.
103+
# you can disable it explicity with USE_MKLDNN = 0
104+
USE_MKLDNN =
103105

104106
# whether use NNPACK library
105107
USE_NNPACK = 0

0 commit comments

Comments
 (0)