10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-26 22:33:57 +01:00
quantum_package/config/gfortran.cfg

63 lines
1.6 KiB
INI
Raw Normal View History

2015-05-27 17:49:31 +02:00
# Common flags
##############
#
# -ffree-line-length-none : Needed for IRPF90 which produces long lines
# -lblas -llapack : Link with libblas and liblapack libraries provided by the system
# -I . : Include the curent directory (Mandatory)
2015-05-27 17:49:31 +02:00
#
# --ninja : Allow the utilisation of ninja. (Mandatory)
2015-05-27 17:49:31 +02:00
# --align=32 : Align all provided arrays on a 32-byte boundary
#
#
2015-05-27 17:49:31 +02:00
[COMMON]
2015-12-17 23:32:30 +01:00
FC : gfortran -mavx -g -ffree-line-length-none -I . -static-libgcc
2015-06-21 23:08:18 +02:00
LAPACK_LIB : -llapack -lblas
2015-06-03 09:49:49 +02:00
IRPF90 : irpf90
IRPF90_FLAGS : --ninja --align=32
2015-05-27 17:49:31 +02:00
# Global options
################
#
# 1 : Activate
# 0 : Deactivate
#
[OPTION]
2015-12-17 23:32:30 +01: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
####################
#
# -Ofast : Disregard strict standards compliance. Enables all -O3 optimizations.
# It also enables optimizations that are not valid
# for all standard-compliant programs. It turns on
# -ffast-math and the Fortran-specific
# -fno-protect-parens and -fstack-arrays.
[OPT]
2015-10-17 15:49:58 +02:00
FCFLAGS : -Ofast
2015-05-27 17:49:31 +02:00
# Profiling flags
#################
#
[PROFILE]
FC : -p -g
2015-06-11 17:26:05 +02:00
FCFLAGS : -Ofast
2015-05-27 17:49:31 +02:00
# Debugging flags
#################
#
# -fcheck=all : Checks uninitialized variables, array subscripts, etc...
# -g : Extra debugging information
#
[DEBUG]
FCFLAGS : -fcheck=all -g
# OpenMP flags
#################
#
[OPENMP]
FC : -fopenmp
IRPF90_FLAGS : --openmp