From: Matthias Maier Date: Mon, 30 Sep 2024 18:53:30 +0000 (-0500) Subject: CMake: remove DEAL_II_HAVE_ARM_NEON and use DEAL_II_VECTORIZATION_WIDTH_IN_BITS X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21cb85667e25810fcdbc01f208dffc59deee1567;p=dealii.git CMake: remove DEAL_II_HAVE_ARM_NEON and use DEAL_II_VECTORIZATION_WIDTH_IN_BITS --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 32b41e4fb0..818a031d06 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 b43f59a83a..5a05d48652 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