From e8dd62f77aa0fc69cf4bdf990e88a9f80323035f Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 22 Nov 2013 14:34:38 +0000 Subject: [PATCH] disable vectorization on intel compilers because they produce wrong code. See issue 156. git-svn-id: https://svn.dealii.org/trunk@31760 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_compiler_flags_intel.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deal.II/cmake/setup_compiler_flags_intel.cmake b/deal.II/cmake/setup_compiler_flags_intel.cmake index d29abc6537..aabd08e7ff 100644 --- a/deal.II/cmake/setup_compiler_flags_intel.cmake +++ b/deal.II/cmake/setup_compiler_flags_intel.cmake @@ -128,6 +128,12 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release") # ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2") + # in intel (at least 13.1 and 14), vectorization causes + # wrong code. See https://code.google.com/p/dealii/issues/detail?id=156 + # or tests/hp/solution_transfer.cc + # A work-around is to disable all vectorization. + ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-no-vec") + # equivalent to -fno-strict-aliasing: ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-no-ansi-alias") -- 2.39.5