Skip to content

Commit

Permalink
Merge pull request #1060 from ursg/GhostTranslationDevMerge
Browse files Browse the repository at this point in the history
Ghost translation dev merge
  • Loading branch information
ursg authored Nov 12, 2024
2 parents bcb8ec4 + 28a210b commit 052cbaf
Show file tree
Hide file tree
Showing 49 changed files with 1,252 additions and 707 deletions.
4 changes: 2 additions & 2 deletions MAKE/Makefile.Freezer
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ endif
# MATHFLAGS are for special math etc. flags, these are only applied on solver functions
# LDFLAGS flags for linker

CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -mfma -mavx2 -Wno-unknown-pragmas -Wno-sign-compare
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -mfma -mavx2 -Wno-unknown-pragmas -Wno-sign-compare
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.MN5_gpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ else
endif

# GNU flags:
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mavx2
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mavx
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mavx2
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mavx

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.appleM1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
# mpi.h in c++ on Cray

FLAGS =
CXXFLAGS += -I ${GITHUB_WORKSPACE}/libraries-appleM1/include -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/libomp/include -march=native -O3 -std=c++17 -fopenmp -Wall -Wno-unused -g
CXXFLAGS += -I ${GITHUB_WORKSPACE}/libraries-appleM1/include -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/libomp/include -march=native -O3 -std=c++20 -fopenmp -Wall -Wno-unused -g
MATHFLAGS = # -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = # -fno-unsafe-math-optimizations
LDFLAGS = -fopenmp -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/llvm/lib/c++ -g
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.arriesgado
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif

FLAGS =
# note: std was c++11
CXXFLAGS = -O1 -std=c++17 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp -march=rv64imafdc -isystem /usr/lib/gcc/riscv64-linux-gnu/11/include/
CXXFLAGS = -O1 -std=c++20 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp -march=rv64imafdc -isystem /usr/lib/gcc/riscv64-linux-gnu/11/include/
MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
LDFLAGS = -fopenmp
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.bsc_jetsontx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif
FLAGS =
# note: std was c++11
# note: testpackage settings missing
CXXFLAGS = -I$(HOME)/include -O3 -std=c++17 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp -march=native
CXXFLAGS = -I$(HOME)/include -O3 -std=c++20 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp -march=native

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
6 changes: 3 additions & 3 deletions MAKE/Makefile.carrington_gcc_openmpi
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 13.2.0
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -mavx -march=znver2 #-flto
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -mavx -march=znver2 -DIONOSPHERE_SORTED_SUMS
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -mavx -march=znver2 #-flto
testpackage: CXXFLAGS = -O2 -g -ggdb -fopenmp -funroll-loops -std=c++20 -mavx -march=znver2 -DIONOSPHERE_SORTED_SUMS
CXXFLAGS += -Wall -Wextra -Wno-unused

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations

LDFLAGS = -lrt -lgfortran -std=c++17 -lgomp
LDFLAGS = -lrt -lgfortran -std=c++20 -lgomp
LIB_MPI = -lgomp -lmpi

#======== PAPI ==========
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.cubbli20
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ PAPI_FLAG =

FLAGS =
# Debug flags:
#CXXFLAGS = -g -funroll-loops -std=c++17 -fopenmp -W -Wall -pedantic -Wno-unused -fabi-version=0 -mavx
CXXFLAGS = -O3 -funroll-loops -std=c++17 -fopenmp -W -Wall -Wno-unused -fabi-version=0 -mavx
#CXXFLAGS = -g -funroll-loops -std=c++20 -fopenmp -W -Wall -pedantic -Wno-unused -fabi-version=0 -mavx
CXXFLAGS = -O3 -funroll-loops -std=c++20 -fopenmp -W -Wall -Wno-unused -fabi-version=0 -mavx

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ endif
FLAGS =

#GNU flags:
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -mavx2
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mavx
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -mavx2
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mavx

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.github_actions
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
# mpi.h in c++ on Cray

FLAGS =
CXXFLAGS += -I ${GITHUB_WORKSPACE}/libraries/include -L ${GITHUB_WORKSPACE}/libraries/lib -march=native -O3 -std=c++17 -fopenmp -Wall -Wno-unused -fabi-version=0 -mavx -g -Wno-cast-function-type
CXXFLAGS += -I ${GITHUB_WORKSPACE}/libraries/include -L ${GITHUB_WORKSPACE}/libraries/lib -march=native -O3 -std=c++20 -fopenmp -Wall -Wno-unused -fabi-version=0 -mavx -g -Wno-cast-function-type
MATHFLAGS = # -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = # -fno-unsafe-math-optimizations
LDFLAGS = -L ${GITHUB_WORKSPACE}/libraries/lib -Wl,-rpath=${GITHUB_WORKSPACE}/libraries/lib -g
Expand Down
6 changes: 3 additions & 3 deletions MAKE/Makefile.hawk_gcc_mpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.2.0_bis
CXXFLAGS += -g -fopenmp -O3 -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -Wall -Wpedantic -mfma -march=native -mavx2
#CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -mavx
CXXFLAGS += -g -fopenmp -O3 -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -Wall -Wpedantic -mfma -march=native -mavx2
#CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -mavx
not_parallel_tools: CXXFLAGS += -march=native -mno-avx2 -mavx
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0
not_parallel_tools: CC_BRAND_VERSION = 4.9.2-noavx2

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.hawk_gcc_openmpi
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.2.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -Wall -Wpedantic -mfma -march=native -mavx2
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -Wall -Wpedantic -mfma -march=native -mavx2
not_parallel_tools: CXXFLAGS += -march=native -mno-avx2 -mavx
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0
not_parallel_tools: CC_BRAND_VERSION = 4.9.2-noavx2

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.home
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ LNK = mpic++
FLAGS =
# note: std was c++11
# note: testpackage settings missing
CXXFLAGS = -I$(HOME)/include -I/usr/include -L$(HOME)/lib -L/usr/lib -O3 -funroll-loops -std=c++17 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp
#CXXFLAGS = -I$(HOME)/include -L$(HOME)/lib -O0 -funroll-loops -std=c++17 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -g -fopenmp
CXXFLAGS = -I$(HOME)/include -I/usr/include -L$(HOME)/lib -L/usr/lib -O3 -funroll-loops -std=c++20 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fopenmp
#CXXFLAGS = -I$(HOME)/include -L$(HOME)/lib -O0 -funroll-loops -std=c++20 -W -Wall -pedantic -Wno-unused -Wno-unused-parameter -Wno-missing-braces -g -fopenmp
MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
LDFLAGS = -L $(HOME)/lib
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.horakons
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ endif
#======== Flags =========

FLAGS =
CXXFLAGS = -O3 -funroll-loops -std=c++17 -fopenmp -W -Wall -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fabi-version=0 -mavx
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
CXXFLAGS = -O3 -funroll-loops -std=c++20 -fopenmp -W -Wall -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fabi-version=0 -mavx
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -DPAPI_MEM
MATHFLAGS = -ffast-math
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.kstppd
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ endif
#======== Flags =========

FLAGS =
CXXFLAGS = -O3 -funroll-loops -std=c++17 -fopenmp -W -Wall -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fabi-version=0 -mavx
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
CXXFLAGS = -O3 -funroll-loops -std=c++20 -fopenmp -W -Wall -Wno-unused -Wno-unused-parameter -Wno-missing-braces -fabi-version=0 -mavx
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -DPAPI_MEM
MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
73 changes: 73 additions & 0 deletions MAKE/Makefile.lumi_2403
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
CMP = CC
LNK = CC

# Modules loaded
# module load LUMI/24.03 ; module load Boost/1.83.0-cpeGNU-24.03 ; module load partition/C

#======== Vectorization ==========
#Set vector backend type for vlasov solvers, sets precision and length.
#Options:
# AVX: VEC4D_AGNER, VEC4F_AGNER, VEC8F_AGNER
# AVX512: VEC8D_AGNER, VEC16F_AGNER
# Fallback: VEC4D_FALLBACK, VEC4F_FALLBACK, VEC8F_FALLBACK

ifeq ($(DISTRIBUTION_FP_PRECISION),SPF)
#Single-precision
VECTORCLASS = VEC8F_AGNER
else
#Double-precision
VECTORCLASS = VEC4D_AGNER
endif

FLAGS =

#GNU flags:
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations

LDFLAGS = -lrt -fopenmp -lpapi
LIB_MPI = -fopenmp

#======== PAPI ==========
#Add PAPI_MEM define to use papi to report memory consumption?
CXXFLAGS += -DPAPI_MEM
testpackage: CXXFLAGS += -DPAPI_MEM

#======== Allocator =========
#Use jemalloc instead of system malloc to reduce memory fragmentation? https://github.com/jemalloc/jemalloc
#Configure jemalloc with --with-jemalloc-prefix=je_ when installing it
CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
testpackage: CXXFLAGS += -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE

#======= Compiler and compilation flags =========
# NOTES on compiler flags:
# CXXFLAGS is for compiler flags, they are always used
# MATHFLAGS are for special math etc. flags, these are only applied on solver functions
# LDFLAGS flags for linker

#-DNO_WRITE_AT_ALL: Define to disable write at all to
# avoid memleak (much slower IO)

#======== Libraries ===========
LIB_BOOST = -lboost_program_options

#compiled libraries
LIBRARY_PREFIX = /projappl/project_462000358/cpu-libraries/2403

INC_ZOLTAN = -isystem$(LIBRARY_PREFIX)/zoltan/include
LIB_ZOLTAN = -L$(LIBRARY_PREFIX)/zoltan/lib -lzoltan -Wl,-rpath=$(LIBRARY_PREFIX)/zoltan/lib

INC_JEMALLOC = -isystem$(LIBRARY_PREFIX)/jemalloc/include
LIB_JEMALLOC = -L$(LIBRARY_PREFIX)/jemalloc/lib -ljemalloc -Wl,-rpath=$(LIBRARY_PREFIX)/jemalloc/lib

INC_PAPI = -I$(LIBRARY_PREFIX)/papi/include -lpapi
LIB_PAPI = -L$(LIBRARY_PREFIX)/papi/lib -Wl,-rpath=$(LIBRARY_PREFIX)/papi/lib

INC_VLSV = -I$(LIBRARY_PREFIX)/vlsv
LIB_VLSV = -L$(LIBRARY_PREFIX)/vlsv -lvlsv -Wl,-rpath=$(LIBRARY_PREFIX)/vlsv

LIB_PROFILE = -L$(LIBRARY_PREFIX)/phiprof/lib -lphiprof -lgfortran -Wl,-rpath=$(LIBRARY_PREFIX)/phiprof/lib
INC_PROFILE = -I$(LIBRARY_PREFIX)/phiprof/include
2 changes: 1 addition & 1 deletion MAKE/Makefile.lumi_cpeGnu
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif
FLAGS =

#GNU flags:
CXXFLAGS += -g -ggdb -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mfma -mavx2 -Wno-unused-parameter
CXXFLAGS += -g -ggdb -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2 -Wno-unused-parameter
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.lumi_cray
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.3.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mfma -mavx2
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.lumi_gnu
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.3.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mfma -mavx2
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.lumi_gnu358
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.3.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mfma -mavx2
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
5 changes: 3 additions & 2 deletions MAKE/Makefile.mahti_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LNK = mpic++

# Modules loaded
# module load gcc openmpi jemalloc papi boost
# module load gcc/13 openmpi jemalloc papi
# also load cuda/11.5.0 for nvtx support
#======== Vectorization ==========
#Set vector backend type for vlasov solvers, sets precision and length.
Expand All @@ -29,8 +30,8 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.3.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -march=native -mfma -mavx2 -fpermissive
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mfma -fpermissive
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -march=native -mfma -mavx2 -fpermissive
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mfma -fpermissive


MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.marconi
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ endif
CC_BRAND = intel
CC_BRAND_VERSION = 17.0.1
# note: std was c++11
CXXFLAGS += -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++17 -qopenmp -ansi-alias
testpackage: CXXFLAGS = -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++17 -qopenmp -ansi-alias
CXXFLAGS += -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++20 -qopenmp -ansi-alias
testpackage: CXXFLAGS = -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++20 -qopenmp -ansi-alias

MATHFLAGS = #-ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = #-fno-unsafe-math-optimizations
Expand Down
2 changes: 1 addition & 1 deletion MAKE/Makefile.perlmutter_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 11.2.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mfma -mavx2
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mfma -mavx2
testpackage: CXXFLAGS = -g -O2 -fopenmp -funroll-loops -std=c++20 -mno-fma -mno-avx2 -mno-avx

MATHFLAGS = -ffast-math -fno-finite-math-only
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.puhti_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 9.1.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -fabi-version=0 -march=native -mfma -mavx512f
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mfma
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -fabi-version=0 -march=native -mfma -mavx512f
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mfma

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
4 changes: 2 additions & 2 deletions MAKE/Makefile.puhti_intel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ FLAGS =
#GNU flags:
CC_BRAND = intel
CC_BRAND_VERSION = 19.0.4
CXXFLAGS += -traceback -g -O3 -qopenmp -std=c++17 -W -Wall -Wno-unused -xHost -ipo -qopt-zmm-usage=high
testpackage: CXXFLAGS = -g -traceback -O2 -qopenmp -std=c++17 -W -Wno-unused -xHost -ipo
CXXFLAGS += -traceback -g -O3 -qopenmp -std=c++20 -W -Wall -Wno-unused -xHost -ipo -qopt-zmm-usage=high
testpackage: CXXFLAGS = -g -traceback -O2 -qopenmp -std=c++20 -W -Wno-unused -xHost -ipo

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
6 changes: 3 additions & 3 deletions MAKE/Makefile.ukko_gcc_openmpi
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 11.2.0
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++17 -W -Wall -Wno-unused -mavx -march=znver2 #-flto
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -mavx -march=znver2
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++20 -W -Wall -Wno-unused -mavx -march=znver2 #-flto
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++20 -mavx -march=znver2

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations

LDFLAGS = -lrt -lgfortran -std=c++17 -lgomp
LDFLAGS = -lrt -lgfortran -std=c++20 -lgomp
LIB_MPI = -lgomp -lmpi

#======== PAPI ==========
Expand Down
6 changes: 3 additions & 3 deletions MAKE/Makefile.vorna_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ FLAGS =
#GNU flags:
CC_BRAND = gcc
CC_BRAND_VERSION = 10.2.0
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++17 -mavx
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -mavx
CXXFLAGS += -g -O3 -fopenmp -funroll-loops -std=c++20 -mavx
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++20 -mavx
CXXFLAGS += -Wall -Wextra -Wno-unused

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
LDFLAGS = -lrt -lgfortran -std=c++17
LDFLAGS = -lrt -lgfortran -std=c++20
LIB_MPI = -lgomp

#======== PAPI ==========
Expand Down
6 changes: 3 additions & 3 deletions MAKE/Makefile.yann
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ LNK = mpic++
PAPI_FLAG =

FLAGS =
#CXXFLAGS = -I $(HOME)/include -L $(HOME)/lib -g -funroll-loops -std=c++0x -fopenmp -W -Wall -pedantic -Wno-unused -fabi-version=0 -mavx
CXXFLAGS += -g3 -ggdb -O3 -funroll-loops -std=c++17 -fopenmp -W -Wall -Wno-unused -fabi-version=0 -mfma -mavx2 -Wno-unknown-pragmas -Wno-sign-compare
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations
#CXXFLAGS = -I $(HOME)/include -L $(HOME)/lib -g -funroll-loops -std=c++20 -fopenmp -W -Wall -pedantic -Wno-unused -fabi-version=0 -mavx
CXXFLAGS += -g3 -ggdb -O3 -funroll-loops -std=c++20 -fopenmp -W -Wall -Wno-unused -fabi-version=0 -mfma -mavx2 -Wno-unknown-pragmas -Wno-sign-compare
testpackage: CXXFLAGS = -g -ggdb -O2 -fopenmp -funroll-loops -std=c++20 -fabi-version=0 -mno-avx -mno-fma -fno-unsafe-math-optimizations

MATHFLAGS = -ffast-math -fno-finite-math-only
testpackage: MATHFLAGS = -fno-unsafe-math-optimizations
Expand Down
Loading

0 comments on commit 052cbaf

Please sign in to comment.