#
# Optimization flags for the Open64 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 = -O1
standard_comp = -O2
aggressive_comp = -Ofast -Wuninitialized
aggressive_link = -ipa

[amd_athlon]
safe_comp = -O1 -march=athlon -msse2
standard_comp = -O2 -march=athlon -msse2
aggressive_comp = -Ofast -march=athlon -msse2 -mso -Wuninitialized
aggressive_link = -ipa

[amd_athlon64]
safe_comp = -O1 -march=athlon64 -msse2
standard_comp = -O2 -march=athlon64 -msse2
aggressive_comp = -Ofast -march=athlon64 -msse2 -mso -Wuninitialized
aggressive_link = -ipa

[amd_athlon64fx]
safe_comp = -O1 -march=athlon64fx -msse2
standard_comp = -O2 -march=athlon64fx -msse2
aggressive_comp = -Ofast -march=athlon64fx -msse2 -mso -Wuninitialized
aggressive_link = -ipa

[barcelona]
safe_comp = -O1 -march=barcelona -msse4a
standard_comp = -O2 -march=barcelona -msse4a
aggressive_comp = -Ofast -march=barcelona -msse4a -mso -Wuninitialized
aggressive_link = -ipa

[amd_opteron]
safe_comp = -O1 -march=opteron -msse2
standard_comp = -O2 -march=opteron -msse2
aggressive_comp = -Ofast -march=opteron -msse2 -mso -Wuninitialized
aggressive_link = -ipa

[intel_pentium4]
safe_comp = -O1 -march=pentium4 -msse2
standard_comp = -O2 -march=pentium4 -msse2
aggressive_comp = -Ofast -march=pentium4 -msse2 -Wuninitialized
aggressive_link = -ipa

[intel_xeon]
safe_comp = -O1 -march=xeon -msse3
standard_comp = -O2 -march=xeon -msse3
aggressive_comp = -Ofast -march=xeon -msse3 -mso -Wuninitialized
aggressive_link = -ipa

