Tpetra parallel linear algebra
Version of the Day
|
Parallel for functor for counting "buckets" in the FixedHashTable. More...
#include <Tpetra_Details_FixedHashTable_def.hpp>
Public Member Functions | |
CountBuckets (const counts_view_type &counts, const keys_view_type &keys, const size_type size) | |
Constructor. More... | |
KOKKOS_INLINE_FUNCTION void | operator() (const size_type &i) const |
Do this for every entry of keys_ . More... | |
KOKKOS_INLINE_FUNCTION void | operator() (const size_type &i, value_type &dst) const |
Debug reduce version of above operator(). More... | |
KOKKOS_INLINE_FUNCTION void | init (value_type &dst) const |
Set the initial value of the reduction result. More... | |
Parallel for functor for counting "buckets" in the FixedHashTable.
CountsViewType | Type of the Kokkos::View specialization used to store the bucket counts; the output of this functor. |
KeysViewType | Type of the Kokkos::View specialization used to store the keys; the input of this functor. |
SizeType | The parallel loop index type; a built-in integer type. Defaults to the type of the input View's dimension. You may use a shorter type to improve performance. |
Definition at line 70 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Constructor.
counts | [out] (Preallocated) View of the bucket counts |
keys | [in] View of the keys |
size | [in] Number of buckets; length of counts |
Definition at line 92 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Do this for every entry of keys_
.
Count the number of keys in keys_
that hash to the same value.
Definition at line 105 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Debug reduce version of above operator().
Set dst to 1 on error (out-of-bounds hash value).
Definition at line 119 of file Tpetra_Details_FixedHashTable_def.hpp.
|
inline |
Set the initial value of the reduction result.
Definition at line 136 of file Tpetra_Details_FixedHashTable_def.hpp.