From 2eb1a1a371f41a0e0ef3127255aef4ea4f52c461 Mon Sep 17 00:00:00 2001 From: snehlatamohite Date: Fri, 1 Sep 2017 21:12:45 +0530 Subject: [PATCH] Use -msse2 flag depending upon architecure while compiling the rabit code (#49) --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 925be6b56..b46d8f3e0 100644 --- a/Makefile +++ b/Makefile @@ -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