From 2a4a70c6023b904d0aebe0c3e3d89227bd2d8d7b Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 30 Sep 2024 13:53:30 -0500 Subject: [PATCH] CMake: remove DEAL_II_HAVE_ARM_NEON and use DEAL_II_VECTORIZATION_LEVEL_IN_BITS --- include/deal.II/base/config.h.in | 2 -- include/deal.II/base/vectorization.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 32b41e4fb026..818a031d06f1 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -138,8 +138,6 @@ #define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0 #endif -#cmakedefine DEAL_II_HAVE_ARM_NEON - #define DEAL_II_OPENMP_SIMD_PRAGMA @DEAL_II_OPENMP_SIMD_PRAGMA@ diff --git a/include/deal.II/base/vectorization.h b/include/deal.II/base/vectorization.h index b43f59a83a02..5a05d48652e2 100644 --- a/include/deal.II/base/vectorization.h +++ b/include/deal.II/base/vectorization.h @@ -1003,7 +1003,7 @@ vectorized_transpose_and_store(const bool add_into, #ifndef DOXYGEN -# if defined(DEAL_II_HAVE_ARM_NEON) && defined(__ARM_NEON) +# if DEAL_II_VECTORIZATION_WIDTH_IN_BITS >= 128 && defined(__ARM_NEON) /** * Specialization for double and ARM Neon. @@ -6313,7 +6313,7 @@ compare_and_apply_mask(const VectorizedArray &left, # endif -# if defined(DEAL_II_HAVE_ARM_NEON) && defined(__ARM_NEON) +# if DEAL_II_VECTORIZATION_WIDTH_IN_BITS >= 128 && defined(__ARM_NEON) template DEAL_II_ALWAYS_INLINE inline VectorizedArray