From 55db357dac409f85e765af4d4f8141bf6f9af3c3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Wed, 15 Jun 2022 02:25:53 +0200 Subject: [PATCH] CMake: Introduce forced failure for SSE2 vectorisation configuration. --- cmake/checks/check_02_compiler_features.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index 22345f01..b631ba3d 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -154,6 +154,11 @@ WF_CHECK_CXX_SOURCE_RUNS( do_test(); do_test(); #endif + + // All indications are that _mm_sqrt_pd() sporadically segfaults with zero input vector. + #if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128 + static_assert(false, 'Problematic vectorization width detected.'); + #endif do_test(); do_test();