]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Evaluation kernels: Make sure to pick vectorized gather function
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 15 Dec 2021 08:00:32 +0000 (09:00 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 15 Dec 2021 08:00:32 +0000 (09:00 +0100)
include/deal.II/matrix_free/evaluation_kernels.h

index c85113a8678aee28b57ad823fb52dc2df7f54ea8..3a039c1cf6dd57286a1e1f32282870ebe760d7f7 100644 (file)
@@ -2628,7 +2628,7 @@ namespace internal
 
   // internal helper function for reading data; specialized version where we
   // can use a dedicated load function
-  template <typename Number, unsigned int width>
+  template <typename Number, std::size_t width>
   void
   do_vectorized_read(const Number *src_ptr, VectorizedArray<Number, width> &dst)
   {
@@ -2652,7 +2652,7 @@ namespace internal
 
   // internal helper function for reading data; specialized version where we
   // can use a dedicated gather function
-  template <typename Number, unsigned int width>
+  template <typename Number, std::size_t width>
   void
   do_vectorized_gather(const Number *                  src_ptr,
                        const unsigned int *            indices,
@@ -2676,7 +2676,7 @@ namespace internal
 
   // internal helper function for reading data; specialized version where we
   // can use a dedicated load function
-  template <typename Number, unsigned int width>
+  template <typename Number, std::size_t width>
   void
   do_vectorized_add(const VectorizedArray<Number, width> src, Number *dst_ptr)
   {
@@ -2702,7 +2702,7 @@ namespace internal
 
   // internal helper function for reading data; specialized version where we
   // can use a dedicated gather function
-  template <typename Number, unsigned int width>
+  template <typename Number, std::size_t width>
   void
   do_vectorized_scatter_add(const VectorizedArray<Number, width> src,
                             const unsigned int *                 indices,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.