3#include <AMReX_Config.H>
36 [[nodiscard]]
void*
alloc (std::size_t sz)
final;
43 void free (
void* pt)
final;
48 [[nodiscard]]
bool isManaged ()
const final;
49 [[nodiscard]]
bool isDevice ()
const final;
50 [[nodiscard]]
bool isPinned ()
const final;
A virtual base class for objects that manage their own dynamic memory allocation.
Definition AMReX_Arena.H:124
A STREAM-ordered memory arena.
Definition AMReX_SArena.H:28
bool isDevice() const final
Check whether it is non-managed GPU device memory.
Definition AMReX_SArena.cpp:38
bool isStreamOrderedArena() const final
Is this a GPU stream ordered memory allocator?
Definition AMReX_SArena.H:54
void * alloc(std::size_t sz) final
Allocates dynamic memory from the arena of size sz. Returns a pointer to this memory....
Definition AMReX_SArena.cpp:5
bool isManaged() const final
Check whether it is managed GPU memory.
Definition AMReX_SArena.cpp:32
bool isPinned() const final
Check whether it is pinned host memory.
Definition AMReX_SArena.cpp:44
bool isDeviceAccessible() const final
Definition AMReX_SArena.cpp:20
void free(void *pt) final
Deletes the arena pointed to by pt. After this function is called, the memory can still be used by al...
Definition AMReX_SArena.cpp:13
bool isHostAccessible() const final
Definition AMReX_SArena.cpp:26
Definition AMReX_Amr.cpp:49