From 4d1dac4f9f79209f5c730a03d58a850553dc562a Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 14 Jul 2015 15:37:27 -0400 Subject: [PATCH] enable auto-vectorization for intel 15 It turns out vectorization is working again (at least with 15.0.3), so enable it conditionally. --- cmake/checks/check_03_compiler_bugs.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/checks/check_03_compiler_bugs.cmake b/cmake/checks/check_03_compiler_bugs.cmake index c5511c2945..e0445e7094 100644 --- a/cmake/checks/check_03_compiler_bugs.cmake +++ b/cmake/checks/check_03_compiler_bugs.cmake @@ -349,14 +349,14 @@ ENDIF() # -# in intel (at least 13.1 and 14), vectorization causes +# 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. # -# - Timo Heister, 2013 +# - Timo Heister, 2013, 2015 # -IF(CMAKE_CXX_COMPILER_ID MATCHES "Intel") +IF(CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0.3" ) ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-no-vec") ENDIF() -- 2.39.5