Skip to content

Commit e7514fe

Browse files
vchuravypiiswrong
authored andcommitted
add support for building on power (apache#3302)
1 parent ef68dae commit e7514fe

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ PSLITE:
197197
$(DMLC_CORE)/libdmlc.a: DMLCCORE
198198

199199
DMLCCORE:
200-
+ cd $(DMLC_CORE); make libdmlc.a config=$(ROOTDIR)/$(config); cd $(ROOTDIR)
200+
+ cd $(DMLC_CORE); make libdmlc.a USE_SSE=$(USE_SSE) config=$(ROOTDIR)/$(config); cd $(ROOTDIR)
201201

202202
bin/im2rec: tools/im2rec.cc $(ALL_DEP)
203203

dmlc-core

Submodule dmlc-core updated 1 file

make/config.mk

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ else
8080
USE_STATIC_MKL = NONE
8181
endif
8282

83+
#----------------------------
84+
# Settings for power arch
85+
#----------------------------
86+
ARCH := $(shell uname -a)
87+
ifneq (,$(filter $(ARCH), powerpc64le ppc64le))
88+
USE_SSE=0
89+
else
90+
USE_SSE=1
91+
endif
92+
8393
#----------------------------
8494
# distributed computing
8595
#----------------------------

0 commit comments

Comments
 (0)