Use -msse2 flag depending upon architecure while compiling the rabit code (#49)
This commit is contained in:
parent
41c96a25a9
commit
2eb1a1a371
10
Makefile
10
Makefile
@ -21,6 +21,16 @@ endif
|
|||||||
export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++0x
|
export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++0x
|
||||||
export CFLAGS = -O3 $(WARNFLAGS)
|
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
|
ifndef USE_SSE
|
||||||
USE_SSE = 1
|
USE_SSE = 1
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user