From: Wolfgang Bangerth Date: Thu, 20 Aug 2009 21:54:00 +0000 (+0000) Subject: Allow --with-cpu=native. X-Git-Tag: v8.0.0~7247 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e23069ec52b9693d1863da502a411885e9ec4a2;p=dealii.git Allow --with-cpu=native. git-svn-id: https://svn.dealii.org/trunk@19321 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index af7c09ccb6..f0e9c21d18 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -2010,6 +2010,22 @@ AC_DEFUN(DEAL_II_CHECK_CPU_OPTIMIZATIONS, dnl ;; esac ;; + + native) + AC_MSG_RESULT(native processor variant) + case "$GXX_VERSION" in + gcc*) + dnl Tune for this processor, but only in optimized mode + dnl (to prevent the effects of possible compiler bugs to affect + dnl both debug as well as optimized versions) + CXXFLAGSO="$CXXFLAGSO -march=native" + + dnl Also set the mode for f77 compiler + F77FLAGSO="$F77FLAGSO -march=native + ;; + esac + ;; + *) AC_MSG_RESULT(none given or not recognized) ;;