]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable vectorization on intel compilers because they produce wrong code. See issue...
authorTimo Heister <timo.heister@gmail.com>
Fri, 22 Nov 2013 14:34:38 +0000 (14:34 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 22 Nov 2013 14:34:38 +0000 (14:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@31760 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_intel.cmake

index d29abc6537e85819ca06a15691bf9b1a5c705c28..aabd08e7ffbdba4c008e6eef2b375c6a3b47698f 100644 (file)
@@ -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")

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.