Use ISA for GCC flags and change binary and build directory names

Signed-off-by: Rafael Ravedutti <rafael.r.ravedutti@fau.de>
This commit is contained in:
Rafael Ravedutti
2023-01-16 23:05:21 +01:00
parent ffad9d40f3
commit 8aad7e87a0
3 changed files with 29 additions and 13 deletions

View File

@@ -4,21 +4,21 @@ LINKER = $(CC)
OPENMP = #-qopenmp
PROFILE = #-profile-functions -g -pg
ifeq($(ISA),AVX512)
ifeq ($(ISA),AVX512)
OPTS = -Ofast -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
endif
ifeq($(ISA),AVX2)
ifeq ($(ISA),AVX2)
OPTS = -Ofast -xCORE-AVX2 $(PROFILE)
#OPTS = -Ofast -xAVX2 $(PROFILE)
#OPTS = -Ofast -march=core-avx2 $(PROFILE)
endif
ifeq($(ISA),AVX)
ifeq ($(ISA),AVX)
OPTS = -Ofast -xAVX $(PROFILE)
endif
ifeq($(ISA),SSE)
ifeq ($(ISA),SSE)
OPTS = -Ofast -xSSE4.2 $(PROFILE)
endif