forked from fmihpc/vlasiator
-
Notifications
You must be signed in to change notification settings - Fork 0
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 fmihpc#339 from ursg/master
Makefile reordering, marconi makefile and "DO LB" command.
- Loading branch information
Showing
9 changed files
with
232 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#MARCONI - KNL based cluster | ||
# | ||
#The following module commands should give you the correct environment for this makefile | ||
#module purge | ||
#module load env-knl | ||
#module load profile/advanced | ||
#module load intel | ||
#module load intelmpi | ||
#module load boost | ||
#module swap intelmpi mvapich2/2.2--intel--pe-xe-2017--binary | ||
|
||
|
||
#======== 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 = VEC16F_AGNER | ||
else | ||
#Double-precision | ||
VECTORCLASS = VEC8D_AGNER | ||
endif | ||
|
||
#======== PAPI ========== | ||
#Add PAPI_MEM define to use papi to report memory consumption? | ||
CXXFLAGS += -DPAPI_MEM | ||
|
||
|
||
#======== Allocator ========= | ||
#Use TBB malloc | ||
LDFLAGS += -L$(TBBROOT)/lib/intel64/gcc4.7/ -ltbbmalloc_proxy -ltbbmalloc | ||
|
||
|
||
#======= 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 | ||
#GNU flags: | ||
CC_BRAND = intel | ||
CC_BRAND_VERSION = 17.0.1 | ||
CXXFLAGS += -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++11 -qopenmp -ansi-alias | ||
testpackage: CXXFLAGS = -O2 -g -DMAX_VECTOR_SIZE=512 -xMIC-AVX512 -std=c++11 -qopenmp -ansi-alias | ||
MATHFLAGS = | ||
LDFLAGS += -qopenmp -lifcore | ||
CMP = mpicxx | ||
LNK = mpicxx | ||
|
||
|
||
#======== Libraries =========== | ||
|
||
HEADER_LIBRARY_PREFIX = /marconi_work/Pra14_3521/libraries | ||
LIBRARY_PREFIX = /marconi_work/Pra14_3521/libraries | ||
|
||
|
||
INC_BOOST = -I$(BOOST_INC) | ||
LIB_BOOST = -L$(BOOST_LIB) -lboost_program_options | ||
|
||
INC_ZOLTAN = -I$(LIBRARY_PREFIX)/zoltan/include | ||
LIB_ZOLTAN = -L$(LIBRARY_PREFIX)/zoltan/lib -lzoltan | ||
|
||
INC_VLSV = -I$(LIBRARY_PREFIX)/vlsv | ||
LIB_VLSV = -L$(LIBRARY_PREFIX)/vlsv -lvlsv | ||
|
||
|
||
LIB_PROFILE = -L$(LIBRARY_PREFIX)/phiprof/lib -lphiprof | ||
INC_PROFILE = -I$(LIBRARY_PREFIX)/phiprof/include | ||
|
||
#system | ||
INC_PAPI = -I$(LIBRARY_PREFIX)/papi/include | ||
LIB_PAPI = -L$(LIBRARY_PREFIX)/papi/lib -lpapi -lpfm | ||
|
||
#header libraries | ||
|
||
INC_EIGEN = -I$(HEADER_LIBRARY_PREFIX)/eigen | ||
INC_DCCRG = -I$(HEADER_LIBRARY_PREFIX)/dccrg/ | ||
INC_VECTORCLASS = -I$(HEADER_LIBRARY_PREFIX)/vectorclass | ||
|
||
|
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
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
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
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
Oops, something went wrong.