2020-08-11 16:34:22 +02:00
|
|
|
CC = icc
|
2020-08-19 13:53:44 +02:00
|
|
|
LINKER = $(CC)
|
2020-08-11 16:34:22 +02:00
|
|
|
|
2024-01-11 17:16:17 +01:00
|
|
|
OPENMP = -qopenmp
|
2020-11-05 12:41:44 +01:00
|
|
|
PROFILE = #-profile-functions -g -pg
|
2023-01-16 22:45:24 +01:00
|
|
|
|
2023-01-16 23:05:21 +01:00
|
|
|
ifeq ($(ISA),AVX512)
|
2022-01-17 11:40:44 +01:00
|
|
|
OPTS = -Ofast -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
|
2023-01-16 22:45:24 +01:00
|
|
|
endif
|
|
|
|
|
2023-01-16 23:05:21 +01:00
|
|
|
ifeq ($(ISA),AVX2)
|
2023-01-16 22:45:24 +01:00
|
|
|
OPTS = -Ofast -xCORE-AVX2 $(PROFILE)
|
2022-12-13 01:06:59 +01:00
|
|
|
#OPTS = -Ofast -xAVX2 $(PROFILE)
|
2023-01-16 22:45:24 +01:00
|
|
|
#OPTS = -Ofast -march=core-avx2 $(PROFILE)
|
|
|
|
endif
|
|
|
|
|
2023-01-16 23:05:21 +01:00
|
|
|
ifeq ($(ISA),AVX)
|
2023-01-16 22:45:24 +01:00
|
|
|
OPTS = -Ofast -xAVX $(PROFILE)
|
|
|
|
endif
|
|
|
|
|
2023-01-16 23:05:21 +01:00
|
|
|
ifeq ($(ISA),SSE)
|
2023-01-16 22:45:24 +01:00
|
|
|
OPTS = -Ofast -xSSE4.2 $(PROFILE)
|
|
|
|
endif
|
|
|
|
|
2022-04-01 15:57:54 +02:00
|
|
|
#OPTS = -Ofast -no-vec $(PROFILE)
|
|
|
|
#OPTS = -Ofast -xHost $(PROFILE)
|
2020-11-05 12:41:44 +01:00
|
|
|
CFLAGS = $(PROFILE) -restrict $(OPENMP) $(OPTS)
|
2021-04-15 14:55:02 +02:00
|
|
|
ASFLAGS = #-masm=intel
|
2020-11-05 12:41:44 +01:00
|
|
|
LFLAGS = $(PROFILE) $(OPTS) $(OPENMP)
|
2022-04-01 15:57:54 +02:00
|
|
|
DEFINES = -std=c11 -pedantic-errors -D_GNU_SOURCE
|
|
|
|
INCLUDES =
|
|
|
|
LIBS = -lm
|