2020-08-11 16:34:22 +02:00
|
|
|
CC = gcc
|
2021-03-24 08:43:44 +01:00
|
|
|
LINKER = $(CC)
|
2020-08-11 16:34:22 +02:00
|
|
|
|
|
|
|
ANSI_CFLAGS = -ansi
|
|
|
|
ANSI_CFLAGS += -std=c99
|
|
|
|
ANSI_CFLAGS += -pedantic
|
|
|
|
ANSI_CFLAGS += -Wextra
|
|
|
|
|
2023-01-16 23:05:21 +01:00
|
|
|
ifeq ($(ISA),AVX512)
|
|
|
|
CFLAGS = -Ofast -mavx512f -mavx512vl -mavx512bw -mavx512dq -mavx512cd -ffast-math -funroll-loops # -fopenmp
|
2022-01-17 11:40:44 +01:00
|
|
|
#CFLAGS = -O3 -march=cascadelake -ffast-math -funroll-loops # -fopenmp
|
2023-01-16 23:05:21 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ISA),AVX2)
|
2022-12-13 01:06:59 +01:00
|
|
|
#CFLAGS = -Ofast -march=native -mavx2 -ffast-math -funroll-loops # -fopenmp
|
2022-07-19 02:30:26 +02:00
|
|
|
#CFLAGS = -O3 -march=znver1 -ffast-math -funroll-loops # -fopenmp
|
2023-01-16 23:05:21 +01:00
|
|
|
#CFLAGS = -Ofast -mavx2 -ffast-math -funroll-loops # -fopenmp
|
|
|
|
CFLAGS = -Ofast -mavx2 -mfma -ffast-math -funroll-loops # -fopenmp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ISA),AVX)
|
|
|
|
CFLAGS = -Ofast -mavx -ffast-math -funroll-loops # -fopenmp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ISA),SSE)
|
|
|
|
CFLAGS = -Ofast -msse4.2 -ffast-math -funroll-loops # -fopenmp
|
|
|
|
endif
|
|
|
|
|
|
|
|
#CFLAGS = -O0 -g -std=c99 -fargument-noalias
|
|
|
|
#CFLAGS = -Ofast -march=native -ffast-math -funroll-loops # -fopenmp
|
|
|
|
#CFLAGS = -O3 -march=native -ffast-math -funroll-loops # -fopenmp
|
2022-12-13 01:06:59 +01:00
|
|
|
ASFLAGS = #-masm=intel
|
2020-08-11 16:34:22 +02:00
|
|
|
LFLAGS =
|
2022-07-19 02:30:26 +02:00
|
|
|
DEFINES = -D_GNU_SOURCE -DNO_ZMM_INTRIN
|
2021-04-15 14:55:02 +02:00
|
|
|
INCLUDES = $(LIKWID_INC)
|
2022-07-19 02:30:26 +02:00
|
|
|
LIBS = -lm
|