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:
parent
ffad9d40f3
commit
8aad7e87a0
10
Makefile
10
Makefile
@ -1,6 +1,7 @@
|
|||||||
#CONFIGURE BUILD SYSTEM
|
#CONFIGURE BUILD SYSTEM
|
||||||
TARGET = MDBench-$(TAG)-$(OPT_SCHEME)
|
IDENTIFIER = $(OPT_SCHEME)-$(TAG)-$(ISA)-$(DATA_TYPE)
|
||||||
BUILD_DIR = ./$(TAG)-$(OPT_SCHEME)
|
TARGET = MDBench-$(IDENTIFIER)
|
||||||
|
BUILD_DIR = ./build-$(IDENTIFIER)
|
||||||
SRC_DIR = ./$(OPT_SCHEME)
|
SRC_DIR = ./$(OPT_SCHEME)
|
||||||
ASM_DIR = ./asm
|
ASM_DIR = ./asm
|
||||||
COMMON_DIR = ./common
|
COMMON_DIR = ./common
|
||||||
@ -155,9 +156,8 @@ clean:
|
|||||||
|
|
||||||
cleanall:
|
cleanall:
|
||||||
$(info ===> CLEAN)
|
$(info ===> CLEAN)
|
||||||
@rm -rf ICC-lammps ICX-lammps GCC-lammps CLANG-lammps NVCC-lammps
|
@rm -rf build-*
|
||||||
@rm -rf ICC-gromacs ICX-gromacs GCC-gromacs CLANG-gromacs NVCC-gromacs
|
@rm -rf MDBench-*
|
||||||
@rm -rf MDBench-GCC* MDBench-ICC* MDBench-ICX* MDBench-CLANG* MDBench-NVCC*
|
|
||||||
@rm -f tags
|
@rm -f tags
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
@ -6,13 +6,29 @@ ANSI_CFLAGS += -std=c99
|
|||||||
ANSI_CFLAGS += -pedantic
|
ANSI_CFLAGS += -pedantic
|
||||||
ANSI_CFLAGS += -Wextra
|
ANSI_CFLAGS += -Wextra
|
||||||
|
|
||||||
#CFLAGS = -O0 -g -std=c99 -fargument-noalias
|
ifeq ($(ISA),AVX512)
|
||||||
|
CFLAGS = -Ofast -mavx512f -mavx512vl -mavx512bw -mavx512dq -mavx512cd -ffast-math -funroll-loops # -fopenmp
|
||||||
#CFLAGS = -O3 -march=cascadelake -ffast-math -funroll-loops # -fopenmp
|
#CFLAGS = -O3 -march=cascadelake -ffast-math -funroll-loops # -fopenmp
|
||||||
CFLAGS = -Ofast -march=native -ffast-math -funroll-loops # -fopenmp
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ISA),AVX2)
|
||||||
#CFLAGS = -Ofast -march=native -mavx2 -ffast-math -funroll-loops # -fopenmp
|
#CFLAGS = -Ofast -march=native -mavx2 -ffast-math -funroll-loops # -fopenmp
|
||||||
|
#CFLAGS = -O3 -march=znver1 -ffast-math -funroll-loops # -fopenmp
|
||||||
|
#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 = -Ofast -march=native -ffast-math -funroll-loops # -fopenmp
|
||||||
#CFLAGS = -O3 -march=native -ffast-math -funroll-loops # -fopenmp
|
#CFLAGS = -O3 -march=native -ffast-math -funroll-loops # -fopenmp
|
||||||
#CFLAGS = -O3 -march=znver1 -ffast-math -funroll-loops # -fopenmp
|
|
||||||
ASFLAGS = #-masm=intel
|
ASFLAGS = #-masm=intel
|
||||||
LFLAGS =
|
LFLAGS =
|
||||||
DEFINES = -D_GNU_SOURCE -DNO_ZMM_INTRIN
|
DEFINES = -D_GNU_SOURCE -DNO_ZMM_INTRIN
|
||||||
|
Loading…
Reference in New Issue
Block a user