#
# Optimization flags for the G95 Fortran compiler, any version
#
# Identifiers are of the form <level>_<stage>, where <level> is one of
# the permitted debug levels, and <stage> is a build stage which may
# take the following values:
#
#   * prep: for preprocessing;
#   * comp: for compilation;
#   * link: for linking.
#
# Each section of this file corresponds to a specific architecture. If
# no specific flags have been defined, the default ones will be applied.
# For a complete list of recognized architectures, please look at
# ~abinit/doc/build/architectures.txt.
#

[DEFAULT]
safe_comp = -O2
standard_comp = -O2
aggressive_comp = -O3

[amd_athlon]
safe_comp = -O2 -march=athlon
standard_comp = -O2 -march=athlon
aggressive_comp = -O3 -march=athlon

[amd_athlon64]
safe_comp = -O2 -march=athlon64
standard_comp = -O2 -march=athlon64
aggressive_comp = -O3 -march=athlon64

[amd_opteron]
safe_comp = -O2 -march=opteron
standard_comp = -O2 -march=opteron
aggressive_comp = -O3 -march=opteron

[dec_alphaev56]
safe_comp = -O2
standard_comp = -O3
aggressive_comp = -O3

[dec_alphaev67]
safe_comp = -O2
standard_comp = -O3
aggressive_comp = -O3

[ibm_powerpc]
safe_comp = -O2 -mpowerpc
standard_comp = -O2 -mpowerpc
aggressive_comp = -O4 -mpowerpc

[ibm_powerpc64]
safe_comp = -O2 -mpowerpc64
standard_comp = -O2 -mpowerpc64
aggressive_comp = -O4 -mpowerpc64

[intel_core2]
safe_comp = -O2 -march=prescott -mmmx -msse -msse2 -msse3
standard_comp = -O2 -march=prescott -mmmx -msse -msse2 -msse3
aggressive_comp = -O3 -march=prescott -mmmx -msse -msse2 -msse3

[intel_coreduo]
safe_comp = -O2 -march=prescott -mmmx -msse -msse2
standard_comp = -O2 -march=prescott -mmmx -msse -msse2
aggressive_comp = -O3 -march=prescott -mmmx -msse -msse2

[intel_itanium1]
safe_comp = -O2
standard_comp = -O3
aggressive_comp = -O3

[intel_itanium2]
safe_comp = -O2
standard_comp = -O3
aggressive_comp = -O3

[intel_pentium3]
safe_comp = -O2 -march=pentium3 -mmmx -msse
standard_comp = -O2 -march=pentium3 -mmmx -msse
aggressive_comp = -O3 -march=pentium3 -mmmx -msse

[intel_pentium4]
safe_comp = -O2 -march=pentium4 -mmmx -msse -msse2
standard_comp = -O2 -march=pentium4 -mmmx -msse -msse2
aggressive_comp = -O3 -march=pentium4 -mmmx -msse -msse2

[intel_xeon]
safe_comp = -O2 -march=nocona -mmmx -msse 
standard_comp = -O3 -march=nocona -mmmx -msse -msse2 
aggressive_comp = -O3 -march=nocona -mmmx -msse -msse2 

