The Kokkos class that manages memory pool for dynamically-sized temporary arrays in Kokkos parallel functions. More...
#include <KokkosMemoryPool.h>
Public Member Functions | |
MemoryPool (dof_id_type size, unsigned int ways) | |
Constructor. More... | |
template<typename T > | |
KOKKOS_FUNCTION MemoryChunk< T > | allocate (dof_id_type idx, unsigned int size) const |
Allocate a memory chunk The returned object should be alive while the memory chunk is used. More... | |
Private Attributes | |
Array<::Kokkos::MemoryPool< MemSpace > > | _pools |
Kokkos memory pools. More... | |
The Kokkos class that manages memory pool for dynamically-sized temporary arrays in Kokkos parallel functions.
Definition at line 77 of file KokkosMemoryPool.h.
Moose::Kokkos::MemoryPool::MemoryPool | ( | dof_id_type | size, |
unsigned int | ways | ||
) |
Constructor.
size | The memory pool size in the number of bytes |
ways | The number of parallel ways |
|
inline |
Allocate a memory chunk The returned object should be alive while the memory chunk is used.
indx | The index to select pool |
size | The memory chunk size in the number of elements |
Definition at line 95 of file KokkosMemoryPool.h.
|
private |
Kokkos memory pools.
Definition at line 106 of file KokkosMemoryPool.h.
Referenced by Moose::Kokkos::MemoryPool< MemSpace >::allocate().