omega_h
Reliable mesh adaptation
Public Member Functions | Static Public Member Functions | List of all members
Omega_h::KokkosPool Class Reference

A memory pool for allocating and deallocating chunks of memory. More...

#include <Omega_h_pool_kokkos.hpp>

Public Member Functions

 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 Public Member Functions

static auto getGlobalPool () -> KokkosPool &
 
static auto destroyGlobalPool () -> void
 

Detailed Description

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: