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
# Build directories and executables
GCC-*/
ICC-*/
ICX-*/
CLANG-*/
NVCC-*/
MDBench-GCC*
MDBench-ICC*
MDBench-ICX*
MDBench-CLANG*
MDBench-NVCC*
#GCC-*/
#ICC-*/
#ICX-*/
#CLANG-*/
#NVCC-*/
build-*/
MDBench-*

View File

@ -3,15 +3,28 @@ LINKER = $(CC)
OPENMP = #-qopenmp
PROFILE = #-profile-functions -g -pg
ifeq ($(ISA),AVX512)
OPTS = -Ofast -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
#OPTS = -Ofast -march=cascadelake -xCORE-AVX512 -qopt-zmm-usage=high $(PROFILE)
#OPTS = -Ofast -xCORE-AVX2 $(PROFILE)
#OPTS = -Ofast -xAVX $(PROFILE)
endif
ifeq ($(ISA),AVX2)
OPTS = -Ofast -xCORE-AVX2 $(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 -xHost $(PROFILE)
#OPTS = -Ofast -march=core-avx2 $(PROFILE)
CFLAGS = $(PROFILE) $(OPENMP) $(OPTS)
ASFLAGS = #-masm=intel
LFLAGS = $(PROFILE) $(OPTS) $(OPENMP)

View File

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