Change ICX flags based on ISA

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti 2023-01-16 23:13:40 +01:00
parent 8aad7e87a0
commit 5833f00894
3 changed files with 26 additions and 16 deletions

17
.gitignore vendored
View File

@ -58,13 +58,10 @@ dkms.conf
todo.txt todo.txt
# Build directories and executables # Build directories and executables
GCC-*/ #GCC-*/
ICC-*/ #ICC-*/
ICX-*/ #ICX-*/
CLANG-*/ #CLANG-*/
NVCC-*/ #NVCC-*/
MDBench-GCC* build-*/
MDBench-ICC* MDBench-*
MDBench-ICX*
MDBench-CLANG*
MDBench-NVCC*

View File

@ -3,15 +3,28 @@ LINKER = $(CC)
OPENMP = #-qopenmp OPENMP = #-qopenmp
PROFILE = #-profile-functions -g -pg PROFILE = #-profile-functions -g -pg
ifeq ($(ISA),AVX512)
OPTS = -Ofast -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE) OPTS = -Ofast -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
#OPTS = -Ofast -march=cascadelake -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE) #OPTS = -Ofast -march=cascadelake -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
#OPTS = -Ofast -xCORE-AVX2 $(PROFILE) endif
#OPTS = -Ofast -xAVX $(PROFILE)
ifeq ($(ISA),AVX2)
OPTS = -Ofast -xCORE-AVX2 $(PROFILE)
#OPTS = -Ofast -xAVX2 $(PROFILE) #OPTS = -Ofast -xAVX2 $(PROFILE)
#OPTS = -Ofast -xSSE4.2 $(PROFILE) #OPTS = -Ofast -march=core-avx2 $(PROFILE)
endif
ifeq ($(ISA),AVX)
OPTS = -Ofast -xAVX $(PROFILE)
endif
ifeq ($(ISA),SSE)
OPTS = -Ofast -xSSE4.2 $(PROFILE)
endif
#OPTS = -Ofast -no-vec $(PROFILE) #OPTS = -Ofast -no-vec $(PROFILE)
#OPTS = -Ofast -xHost $(PROFILE) #OPTS = -Ofast -xHost $(PROFILE)
#OPTS = -Ofast -march=core-avx2 $(PROFILE)
CFLAGS = $(PROFILE) $(OPENMP) $(OPTS) CFLAGS = $(PROFILE) $(OPENMP) $(OPTS)
ASFLAGS = #-masm=intel ASFLAGS = #-masm=intel
LFLAGS = $(PROFILE) $(OPTS) $(OPENMP) LFLAGS = $(PROFILE) $(OPTS) $(OPENMP)

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# Adjustable variables # Adjustable variables
TAG="${TAG:-ICX}" TAG="${TAG:-ICC}"
OPT_SCHEME="${OPT_SCHEME:-gromacs}" OPT_SCHEME="${OPT_SCHEME:-lammps}"
CORE="${CORE:-0}" CORE="${CORE:-0}"
FREQ="${FREQ:-2.4}" FREQ="${FREQ:-2.4}"
NRUNS="${NRUNS:-3}" NRUNS="${NRUNS:-3}"