2015-05-27 17:49:31 +02:00
|
|
|
# Common flags
|
|
|
|
##############
|
|
|
|
#
|
|
|
|
# -mkl=[parallel|sequential] : Use the MKL library
|
2015-06-03 10:51:32 +02:00
|
|
|
# --ninja : Allow the utilisation of ninja. It is mandatory !
|
2015-05-27 17:49:31 +02:00
|
|
|
# --align=32 : Align all provided arrays on a 32-byte boundary
|
|
|
|
#
|
|
|
|
[COMMON]
|
2015-05-28 12:03:14 +02:00
|
|
|
FC : ifort
|
2017-10-30 12:26:23 +01:00
|
|
|
LAPACK_LIB : -mkl=parallel
|
2015-06-02 15:46:24 +02:00
|
|
|
IRPF90 : irpf90
|
2017-12-05 18:54:10 +01:00
|
|
|
IRPF90_FLAGS : --ninja --align=32
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Global options
|
|
|
|
################
|
|
|
|
#
|
|
|
|
# 1 : Activate
|
|
|
|
# 0 : Deactivate
|
|
|
|
#
|
|
|
|
[OPTION]
|
2016-09-09 19:39:28 +02:00
|
|
|
MODE : OPT ; [ OPT | PROFILE | DEBUG ] : Chooses the section below
|
2015-05-27 17:49:31 +02:00
|
|
|
CACHE : 1 ; Enable cache_compile.py
|
|
|
|
OPENMP : 1 ; Append OpenMP flags
|
|
|
|
|
|
|
|
# Optimization flags
|
|
|
|
####################
|
|
|
|
#
|
|
|
|
# -xHost : Compile a binary optimized for the current architecture
|
|
|
|
# -O2 : O3 not better than O2.
|
|
|
|
# -ip : Inter-procedural optimizations
|
|
|
|
# -ftz : Flushes denormal results to zero
|
|
|
|
#
|
|
|
|
[OPT]
|
2016-05-13 10:25:50 +02:00
|
|
|
FC : -traceback
|
2018-02-26 17:19:53 +01:00
|
|
|
FCFLAGS : -xAVX -O2 -ip -ftz -g
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Profiling flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
[PROFILE]
|
|
|
|
FC : -p -g
|
2016-06-15 10:07:00 +02:00
|
|
|
FCFLAGS : -xSSE4.2 -O2 -ip -ftz
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# Debugging flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
# -traceback : Activate backtrace on runtime
|
|
|
|
# -fpe0 : All floating point exaceptions
|
|
|
|
# -C : Checks uninitialized variables, array subscripts, etc...
|
|
|
|
# -g : Extra debugging information
|
|
|
|
# -xSSE2 : Valgrind needs a very simple x86 executable
|
|
|
|
#
|
|
|
|
[DEBUG]
|
|
|
|
FC : -g -traceback
|
2016-07-07 13:30:58 +02:00
|
|
|
FCFLAGS : -xSSE2 -C -fpe0
|
2015-05-27 17:49:31 +02:00
|
|
|
|
|
|
|
# OpenMP flags
|
|
|
|
#################
|
|
|
|
#
|
|
|
|
[OPENMP]
|
2017-04-20 08:45:56 +02:00
|
|
|
FC : -qopenmp
|
2015-05-27 17:49:31 +02:00
|
|
|
IRPF90_FLAGS : --openmp
|
|
|
|
|