The Kokkos thread object that aids in converting the one-dimensional thread index into multi-dimensional thread indices. More...
#include <KokkosThread.h>
Public Types | |
| using | id_type = thread_id_type |
Public Member Functions | |
| template<typename... size_type> | |
| void | resize (size_type... sizes) |
| Set the thread pool size and dimension. More... | |
| KOKKOS_FUNCTION thread_id_type | size () const |
| Get the total thread pool size. More... | |
| KOKKOS_FUNCTION thread_id_type | size (const unsigned int dim) const |
| Get the size of each dimension. More... | |
| KOKKOS_FUNCTION thread_id_type | operator() (const thread_id_type tid, const unsigned int dim) const |
| Get the multi-dimensional thread index of a dimension given a one-dimensional thread index. More... | |
Protected Attributes | |
| thread_id_type | _size = 0 |
| Total thread pool size. More... | |
| unsigned int | _dim = 0 |
| Thread pool dimension. More... | |
| thread_id_type | _dims [max_dimension] |
| Thread pool size of each dimension. More... | |
| thread_id_type | _strides [max_dimension] |
| Thread pool stride of each dimension. More... | |
The Kokkos thread object that aids in converting the one-dimensional thread index into multi-dimensional thread indices.
Definition at line 29 of file KokkosThread.h.
| using Moose::Kokkos::Thread< thread_id_type, max_dimension >::id_type = thread_id_type |
Definition at line 37 of file KokkosThread.h.
|
inline |
Get the multi-dimensional thread index of a dimension given a one-dimensional thread index.
| tid | The one-dimensional thread index |
| dim | for which the multi-dimensional thread index is to be returned |
Definition at line 68 of file KokkosThread.h.
| void Moose::Kokkos::Thread< thread_id_type, max_dimension >::resize | ( | size_type... | sizes | ) |
Set the thread pool size and dimension.
| sizes | The size of each dimension |
Definition at line 99 of file KokkosThread.h.
|
inline |
Get the total thread pool size.
Definition at line 50 of file KokkosThread.h.
Referenced by Moose::Kokkos::ADKernel::operator()(), Moose::Kokkos::ADIntegratedBC::operator()(), Moose::Kokkos::Kernel::operator()(), and Moose::Kokkos::IntegratedBC::operator()().
|
inline |
Get the size of each dimension.
| dim | The dimension index |
Definition at line 56 of file KokkosThread.h.
|
protected |
Thread pool dimension.
Definition at line 84 of file KokkosThread.h.
Referenced by Moose::Kokkos::Thread< thread_id_type, max_dimension >::operator()(), and Moose::Kokkos::Thread< thread_id_type, max_dimension >::size().
|
protected |
Thread pool size of each dimension.
Definition at line 88 of file KokkosThread.h.
Referenced by Moose::Kokkos::Thread< thread_id_type, max_dimension >::operator()(), and Moose::Kokkos::Thread< thread_id_type, max_dimension >::size().
|
protected |
Total thread pool size.
Definition at line 80 of file KokkosThread.h.
Referenced by Moose::Kokkos::Thread< thread_id_type, max_dimension >::size().
|
protected |
Thread pool stride of each dimension.
Definition at line 92 of file KokkosThread.h.
Referenced by Moose::Kokkos::Thread< thread_id_type, max_dimension >::operator()().
1.8.14