]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Detect native processor variant for icc.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 22 Dec 2010 09:23:19 +0000 (09:23 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 22 Dec 2010 09:23:19 +0000 (09:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@23061 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 92522e603a51e5dd69559e4f0ab5119eab37acff..b77302717bb4d87458956f7c4b58d42e7a77af45 100644 (file)
@@ -207,10 +207,13 @@ AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl
           else if test "x$version11" != "x" ; then
             AC_MSG_RESULT(C++ compiler is icc-11)
             GXX_VERSION=intel_icc11
+          else if test "x$version12" != "x" ; then
+            AC_MSG_RESULT(C++ compiler is icc-12)
+            GXX_VERSION=intel_icc12
           else
             AC_MSG_RESULT(C++ compiler is icc)
             GXX_VERSION=intel_icc
-          fi fi fi fi fi fi fi
+          fi fi fi fi fi fi fi fi
           GXX_VERSION_DETAILED="$GXX_VERSION"
         else
 
@@ -1804,7 +1807,12 @@ AC_DEFUN(DEAL_II_CHECK_CPU_OPTIMIZATIONS, dnl
 
              dnl Also set the mode for f77 compiler
              F77FLAGSO="$F77FLAGSO -march=native"
-          ;;
+              ;;
+
+          intel_icc*)
+              dnl Same, but for the icc compiler
+              CXXFLAGSO="$CXXFLAGSO -xhost"
+              ;;
         esac
         ;;
 

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.