Change ICX flags based on ISA
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
8aad7e87a0
commit
5833f00894
17
.gitignore
vendored
17
.gitignore
vendored
@ -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*
|
|
||||||
|
@ -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)
|
||||||
|
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user