From: Timo Heister Date: Fri, 22 Nov 2013 14:34:38 +0000 (+0000) Subject: disable vectorization on intel compilers because they produce wrong code. See issue... X-Git-Tag: v8.1.0~207 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc0e8e6fce8a9d58ed6d055ee122f877d80248c;p=dealii.git 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 --- 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")