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

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

#include <Omega_h_pool_kokkos.hpp>

Public Member Functions

 StaticKokkosPool (size_t numChunks, size_t bytesPerChunk)
 
auto allocate (size_t n) -> void *
 
void deallocate (void *data)
 
auto getNumAllocations () const -> unsigned
 
auto getNumFreeChunks () const -> unsigned
 
auto getNumAllocatedChunks () const -> unsigned
 
auto getNumChunks () const -> unsigned
 
auto getNumFreeFragments () const -> unsigned
 

Static Public Member Functions

static auto getRequiredChunks (size_t n, size_t bytesPerChunk) -> size_t
 

Detailed Description

A memory pool for allocating and deallocating chunks of memory.

Does not support resizing.


The documentation for this class was generated from the following files: