#
# Optimization flags for the Sun 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 = -xO2 -fround=nearest -xtarget=native
standard_comp = -xO3 -fround=nearest -xtarget=native
aggressive_comp = -xO4 -fround=nearest -xtarget=native -xlibmil -xlibmopt -xipo -xjobs=3
aggressive_link = -xipo

[amd_opteron]
safe_comp = -xO2 -fround=nearest -xtarget=opteron -xarch=sse2a -m64
standard_comp = -xO3 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xvector=simd
standard_link = -xvector=simd
aggressive_comp = -xO4 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3
aggressive_link = -xvector=simd -xipo

[intel_core2]
safe_comp = -xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2
standard_comp = -xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd
standard_link = -xvector=simd
aggressive_comp = -xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3
aggressive_link = -xvector=simd -xipo

[intel_coreduo]
safe_comp = -xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2
standard_comp = -xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd
standard_link = -xvector=simd
aggressive_comp = -xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3
aggressive_link = -xvector=simd -xipo

[intel_pentium3]
safe_comp = -xO2 -fround=nearest -xtarget=pentium3 -xarch=sse
standard_comp = -xO3 -fround=nearest -xtarget=pentium3 -xarch=sse
aggressive_comp = -xO4 -fround=nearest -xtarget=pentium3 -xarch=sse -xlibmil -xlibmopt -xvector=lib -xipo
aggressive_link = -xvector=lib -xipo

[intel_pentium4]
safe_comp = -xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2
standard_comp = -xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2
aggressive_comp = -xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=lib -xipo
aggressive_link = -xvector=lib -xipo

[intel_xeon]
safe_comp = -xO2 -fround=nearest
standard_comp = -xO3 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib
aggressive_comp = -xO5 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib

