-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #462 from fmihpc/dev
Merge dev into master for Vlasiator 5.0 release
- Loading branch information
Showing
242 changed files
with
20,360 additions
and
8,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# -*- mode: makefile -*- | ||
CMP = mpic++ | ||
LNK = mpic++ | ||
|
||
#======== Vectorization ========== | ||
#Set vector backend type for vlasov solvers, sets precision and length. | ||
#NOTE this has to have the same precision as the distribution function define (DISTRIBUTION_FP_PRECISION) | ||
#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 | ||
|
||
#======== PAPI ========== | ||
#Add PAPI_MEM define to use papi to report memory consumption? | ||
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 | ||
|
||
|
||
#======= 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) | ||
#-DMPICH_IGNORE_CXX_SEEK: Ignores some multiple definition | ||
# errors that come up when using | ||
# mpi.h in c++ on Cray | ||
|
||
CXXFLAGS += -DMPICH_IGNORE_CXX_SEEK | ||
|
||
FLAGS = | ||
|
||
#GNU flags: | ||
CXXFLAGS += -O3 -fopenmp -funroll-loops -std=c++11 -W -Wall -Wno-unused -fabi-version=0 -mavx2 | ||
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++0x -fabi-version=0 -mavx | ||
|
||
MATHFLAGS = -ffast-math | ||
LDFLAGS = -g | ||
LIB_MPI = -lgomp | ||
|
||
# BOOST_VERSION = current trilinos version | ||
# ZOLTAN_VERSION = current trilinos verson | ||
|
||
#======== Libraries =========== | ||
|
||
LIBRARY_PREFIX = /home/lib | ||
|
||
|
||
#compiled libraries | ||
INC_BOOST = -I$/usr/include/boost | ||
LIB_BOOST = -L$/usr/lib/x86_64-linux-gnu -lboost_program_options | ||
|
||
INC_ZOLTAN = -I$(LIBRARY_PREFIX)/zoltan/include | ||
LIB_ZOLTAN = -L$(LIBRARY_PREFIX)/zoltan/lib -lzoltan | ||
|
||
INC_JEMALLOC = -I$(LIBRARY_PREFIX)/jemalloc/include | ||
LIB_JEMALLOC = -L$(LIBRARY_PREFIX)/jemalloc/lib -ljemalloc | ||
|
||
INC_VLSV = -I$(LIBRARY_PREFIX)/vlsv | ||
LIB_VLSV = -L$(LIBRARY_PREFIX)/vlsv -lvlsv | ||
|
||
INC_PROFILE = -I$(LIBRARY_PREFIX)/phiprof-2.0-beta/include | ||
LIB_PROFILE = -L$(LIBRARY_PREFIX)/phiprof-2.0-beta/lib -lphiprof | ||
|
||
INC_PAPI = -I$(LIBRARY_PREFIX)/papi/include | ||
LIB_PAPI = -L$(LIBRARY_PREFIX)/papi/lib -lpapi | ||
|
||
#header libraries | ||
|
||
INC_EIGEN = -I/usr/include/eigen3 | ||
INC_DCCRG = -I$(LIBRARY_PREFIX)/dccrg/ | ||
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass | ||
INC_FSGRID = -I$(LIBRARY_PREFIX)/fsgrid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
CMP = mpic++ | ||
LNK = mpic++ | ||
|
||
#======== 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 | ||
|
||
#======== PAPI ========== | ||
#Add PAPI_MEM define to use papi to report memory consumption? | ||
#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 | ||
|
||
|
||
#======= 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) | ||
#-DMPICH_IGNORE_CXX_SEEK: Ignores some multiple definition | ||
# errors that come up when using | ||
# mpi.h in c++ on Cray | ||
|
||
CXXFLAGS = -DMPICH_IGNORE_CXX_SEEK | ||
|
||
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 -mavx2 -mfma | ||
testpackage: CXXFLAGS = -O2 -fopenmp -funroll-loops -std=c++17 -fabi-version=0 -mavx2 -mfma | ||
|
||
MATHFLAGS = -ffast-math | ||
LDFLAGS = -lrt | ||
LIB_MPI = -lgomp | ||
|
||
# BOOST_VERSION = current trilinos version | ||
# ZOLTAN_VERSION = current trilinos verson | ||
# | ||
#======== Libraries =========== | ||
|
||
MPT_VERSION = 2.4.0 | ||
JEMALLOC_VERSION = 5.2.1 | ||
LIBRARY_PREFIX = /projappl/project_2000203/libraries | ||
|
||
|
||
#compiled libraries | ||
#INC_BOOST = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/boost/1.61.0/include/ | ||
#LIB_BOOST = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/boost/1.61.0/lib -lboost_program_options | ||
LIB_BOOST = -lboost_program_options | ||
|
||
INC_ZOLTAN = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/zoltan/3.8/include | ||
LIB_ZOLTAN = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/zoltan/3.8/lib -lzoltan | ||
|
||
#INC_JEMALLOC = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/jemalloc/$(JEMALLOC_VERSION)/include | ||
#LIB_JEMALLOC = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/jemalloc/$(JEMALLOC_VERSION)/lib -ljemalloc -Wl,-rpath=$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/jemalloc/$(JEMALLOC_VERSION)/lib | ||
|
||
INC_VLSV = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/vlsv | ||
LIB_VLSV = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/vlsv -lvlsv | ||
|
||
LIB_PROFILE = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/phiprof/lib -lphiprof -lgfortran -Wl,-rpath=$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/phiprof/lib | ||
INC_PROFILE = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/phiprof/include | ||
|
||
LIB_PAPI = -L$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/papi/lib -lpapi -Wl,-rpath=$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/papi/lib | ||
INC_PAPI = -I$(LIBRARY_PREFIX)/hpcx-mpi/$(MPT_VERSION)/$(CC_BRAND)/$(CC_BRAND_VERSION)/papi/include | ||
|
||
|
||
#header libraries | ||
|
||
INC_FSGRID = -I$(LIBRARY_PREFIX)/fsgrid | ||
INC_EIGEN = -I$(LIBRARY_PREFIX)/eigen/3.3.7/ | ||
INC_DCCRG = -I$(LIBRARY_PREFIX)/dccrg/ | ||
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass | ||
|
||
|
||
|
||
|
Oops, something went wrong.