A memory pool for allocating and deallocating chunks of memory.
More...
#include <Omega_h_pool_kokkos.hpp>
|
|
| KokkosPool (size_t bytesPerChunks) |
| |
|
auto | allocate (size_t n) -> void * |
| |
|
void | deallocate (void *data) |
| |
|
template<typename DataType > |
| auto | allocateView (size_t n) -> View< DataType * > |
| |
|
template<typename DataType > |
| void | deallocateView (View< DataType * > view) |
| |
|
auto | getNumAllocations () const -> unsigned |
| |
|
auto | getNumFreeChunks () const -> unsigned |
| |
|
auto | getNumAllocatedChunks () const -> unsigned |
| |
|
auto | getNumChunks () const -> unsigned |
| |
|
auto | getNumFreeFragments () const -> unsigned |
| |
|
auto | getChunkSize () const -> size_t |
| |
|
|
static auto | getGlobalPool () -> KokkosPool & |
| |
|
static auto | destroyGlobalPool () -> void |
| |
A memory pool for allocating and deallocating chunks of memory.
It is a collection of StaticKokkosPool objects. This allows for resizing.
The documentation for this class was generated from the following files: