From: kronbichler Date: Wed, 22 Dec 2010 09:23:19 +0000 (+0000) Subject: Detect native processor variant for icc. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69558108b411ba8a5705ad5a8589725cdc2ece04;p=dealii-svn.git Detect native processor variant for icc. git-svn-id: https://svn.dealii.org/trunk@23061 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 92522e603a..b77302717b 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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 ;;