From: Martin Kronbichler Date: Thu, 1 Dec 2016 17:49:02 +0000 (+0100) Subject: Fix DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS with AVX512 and Intel. X-Git-Tag: v8.5.0-rc1~350^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3653%2Fhead;p=dealii.git Fix DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS with AVX512 and Intel. --- diff --git a/cmake/checks/check_01_compiler_features.cmake b/cmake/checks/check_01_compiler_features.cmake index 62f6e0d866..15d2e25ce5 100644 --- a/cmake/checks/check_01_compiler_features.cmake +++ b/cmake/checks/check_01_compiler_features.cmake @@ -51,6 +51,9 @@ CHECK_CXX_SOURCE_COMPILES( " #include +#ifdef __AVX512F__ + #include +#endif int main() { __m128d a, b; @@ -60,6 +63,16 @@ CHECK_CXX_SOURCE_COMPILES( __m128d d = b - c; __m128d e = c * a + d; __m128d f = e/a; +#ifdef __AVX512F__ + __m512d g, h; + g = _mm512_set1_pd (1.0); + h = _mm512_set1_pd (2.1); + __m512d i = g + h; + g = i - g; + h *= i; + i = h/i; + (void)i; +#endif (void)f; } "