diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-11-26 13:27:19 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-11-26 13:27:19 +0000 |
commit | af8508cbe93f536bded05f24d890e1f6901d5ab8 (patch) | |
tree | c3cb22ce8c0e6cfb79f2d2d2cf9d246e0fa40cf7 /lib/make/known-architectures/linux | |
parent | 2c7556db01d25ee1c7dde4a8186164e7f607c9a7 (diff) |
Fixes for 'x86_64':
1) reduce default optimization level from '-O3' to '-O2' for
C_OPTIMISE_FLAGS and CXX_OPTIMISE_FLAGS.
2) Don't specify '-xP' for F??_OPTIMISE_FLAGS as the code generated with this
optimization option will not run on an Opteron processor.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3917 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/linux')
-rw-r--r-- | lib/make/known-architectures/linux | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index cf1a5b49..1dc80b64 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -244,7 +244,11 @@ else # add the necessary libraries according to the compiler version if test "`$F90 -V 2>&1 | grep Version | sed 's/.*Version //' | sed 's/\..*//'`" -ge 8; then if test "`$F90 -V 2>&1 | grep EM64T`"; then - intel_p4_opt_flag='-xP' +# TR: '-xP' only works on Intel EMT64 processors, not on Opterons +# Since they cannot be distinguished, I commented out this +# optimization option for now. +# intel_p4_opt_flag='-xP' + intel_p4_opt_flag='' else intel_p4_opt_flag='-xN' fi @@ -330,7 +334,7 @@ else else : ${CFLAGS='-restrict'} fi - if test "$host_cpu" = 'ia64'; then + if test "$host_cpu" = 'ia64' -o "$host_cpu" = 'x86_64'; then : ${C_OPTIMISE_FLAGS='-O2 -ip'} else : ${C_OPTIMISE_FLAGS='-O3 -ip'} @@ -362,7 +366,7 @@ else else : ${CXXFLAGS='-restrict'} fi - if test "$host_cpu" = 'ia64'; then + if test "$host_cpu" = 'ia64' -o "$host_cpu" = 'x86_64'; then : ${CXX_OPTIMISE_FLAGS='-O2 -ip'} else : ${CXX_OPTIMISE_FLAGS='-O3 -ip'} |