The Kokkos thread object that aids in converting the one-dimensional thread index into multi-dimensional thread indices.
More...
#include <KokkosThread.h>
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.
◆ operator()()
KOKKOS_FUNCTION ThreadID Moose::Kokkos::Thread::operator() |
( |
ThreadID |
tid, |
|
|
unsigned int |
dim |
|
) |
| const |
|
inline |
Get the multi-dimensional thread index of a dimension given a one-dimensional thread index.
- Parameters
-
tid | The one-dimensional thread index |
dim | for which the multi-dimensional thread index is to be returned |
- Returns
- The multi-dimensional thread index of the dimension
Definition at line 49 of file KokkosThread.h.
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
unsigned int _dim
Thread pool dimension.
ThreadID _dims[10]
Thread pool size of each dimension.
ThreadID _strides[10]
Thread pool stride of each dimension.
◆ resize()
void Moose::Kokkos::Thread::resize |
( |
std::vector< ThreadID > |
dims | ) |
|
Set the thread pool size and dimension.
- Parameters
-
dims | The vector containing the size of each dimension |
◆ size()
ThreadID Moose::Kokkos::Thread::size |
( |
| ) |
const |
|
inline |
Get the total thread pool size.
- Returns
- The total thread pool size
Definition at line 42 of file KokkosThread.h.
ThreadID _size
Total thread pool size.
◆ _dim
unsigned int Moose::Kokkos::Thread::_dim = 0 |
|
protected |
◆ _dims
ThreadID Moose::Kokkos::Thread::_dims[10] |
|
protected |
◆ _size
ThreadID Moose::Kokkos::Thread::_size = 0 |
|
protected |
◆ _strides
ThreadID Moose::Kokkos::Thread::_strides[10] |
|
protected |
The documentation for this class was generated from the following file: