From 421374a737b9c7596b0a92ed5c21f20617a3f604 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 10 Oct 2013 08:16:03 +0000 Subject: [PATCH] Reactivate -O2 for icc-14* git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31193 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_compiler_flags_intel.cmake | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/deal.II/cmake/setup_compiler_flags_intel.cmake b/deal.II/cmake/setup_compiler_flags_intel.cmake index c10cb5e91e..3955028811 100644 --- a/deal.II/cmake/setup_compiler_flags_intel.cmake +++ b/deal.II/cmake/setup_compiler_flags_intel.cmake @@ -118,9 +118,7 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release") # General optimization flags: # - IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13.0" ) - ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2") - ELSE() + IF(CMAKE_CXX_COMPILER_VERSION MATCHES "^13\\.") # # Disable aggressive optimization for intel-13* compilers, until we # resolve a lot of funny miscompilations... @@ -128,13 +126,16 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release") # - Maier, 2013 # ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O1") + ELSE() + ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2") ENDIF() + # equivalent to -fno-strict-aliasing: + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-no-ansi-alias") + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-ip") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops") - # equivalent to -fno-strict-aliasing: - ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-no-ansi-alias") ENDIF() -- 2.39.5