Use -msse2 flag depending upon architecure while compiling the rabit code (#49)

This commit is contained in:
snehlatamohite 2017-09-01 21:12:45 +05:30 committed by Tianqi Chen
parent 41c96a25a9
commit 2eb1a1a371

View File

@ -21,6 +21,16 @@ endif
export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++0x
export CFLAGS = -O3 $(WARNFLAGS)
#----------------------------
# Settings for power and arm arch
#----------------------------
ARCH := $(shell uname -a)
ifneq (,$(filter $(ARCH), powerpc64le ppc64le ))
USE_SSE=0
else
USE_SSE=1
endif
ifndef USE_SSE
USE_SSE = 1
endif