]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow --with-cpu=native.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 20 Aug 2009 21:54:00 +0000 (21:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 20 Aug 2009 21:54:00 +0000 (21:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@19321 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index af7c09ccb69cc14e66b9427827a0f5b32001bd44..f0e9c21d185ea682c97059b60ed12234bbc32629 100644 (file)
@@ -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)
        ;;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.