IcBench: Makefile
This commit is contained in:
9
makefile
9
makefile
@ -26,7 +26,7 @@ CC=gcc
|
|||||||
CXX=g++
|
CXX=g++
|
||||||
CFLAGS+=-D__int64_t=int64_t
|
CFLAGS+=-D__int64_t=int64_t
|
||||||
else
|
else
|
||||||
UNAME := $(shell uname -a)
|
UNAME := $(shell uname -s)
|
||||||
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin FreeBSD GNU/kFreeBSD))
|
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin FreeBSD GNU/kFreeBSD))
|
||||||
LDFLAGS+=-lpthread -lm
|
LDFLAGS+=-lpthread -lm
|
||||||
ifneq ($(UNAME),$(filter $(UNAME),Darwin))
|
ifneq ($(UNAME),$(filter $(UNAME),Darwin))
|
||||||
@ -48,13 +48,14 @@ MSSE=-O3 -march=armv8-a -mcpu=cortex-a72 -falign-loops -falign-labels -falign-fu
|
|||||||
#-floop-optimize
|
#-floop-optimize
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifneq ($(UNAME),$(filter $(UNAME),ppc64le))
|
UNAMEA := $(shell uname -a)
|
||||||
|
ifeq (,$(findstring ppc64le, $(UNAMEA)))
|
||||||
|
MSSE=-mssse3
|
||||||
|
else
|
||||||
#Minimum SSE = Sandy Bridge, AVX2 = haswell
|
#Minimum SSE = Sandy Bridge, AVX2 = haswell
|
||||||
MSSE=-march=corei7-avx -mtune=corei7-avx
|
MSSE=-march=corei7-avx -mtune=corei7-avx
|
||||||
# -mno-avx -mno-aes (add for Pentium based Sandy bridge)
|
# -mno-avx -mno-aes (add for Pentium based Sandy bridge)
|
||||||
MAVX2=-march=haswell
|
MAVX2=-march=haswell
|
||||||
else
|
|
||||||
MSSE=-msse2
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user