Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
Memory Arenas and Allocators

Memory arenas and allocators. More...

Classes

class  amrex::Arena
 A virtual base class for objects that manage their own dynamic memory allocation. More...
 
class  amrex::CArena
 A Concrete Class for Dynamic Memory Management using first fit. This is a coalescing memory manager. It allocates (possibly) large chunks of heap space and apportions it out as requested. It merges together neighboring chunks on each free(). More...
 
class  amrex::ArenaAllocator< T >
 
class  amrex::DeviceArenaAllocator< T >
 
class  amrex::PinnedArenaAllocator< T >
 
class  amrex::ManagedArenaAllocator< T >
 
class  amrex::AsyncArenaAllocator< T >
 
class  amrex::PolymorphicArenaAllocator< T >
 
class  amrex::SArena
 A STREAM-ordered memory arena. More...
 

Functions

Arenaamrex::The_Arena ()
 
Arenaamrex::The_Async_Arena ()
 
Arenaamrex::The_Device_Arena ()
 
Arenaamrex::The_Managed_Arena ()
 
Arenaamrex::The_Pinned_Arena ()
 
Arenaamrex::The_Comms_Arena ()
 
Arenaamrex::The_Cpu_Arena ()
 

Detailed Description

Memory arenas and allocators.

AMReX provides a number of memory arenas and allocators:

Function Documentation

◆ The_Arena()

Arena * amrex::The_Arena ( )

Return a pointer to The_Arena, the main memory arena.

◆ The_Async_Arena()

Arena * amrex::The_Async_Arena ( )

Return a pointer to The_Async_Arena, the async-safe GPU device arena.

◆ The_Comms_Arena()

Arena * amrex::The_Comms_Arena ( )

Return a pointer to The_Comms_Arena, the memory arena used by communication buffers.

◆ The_Cpu_Arena()

Arena * amrex::The_Cpu_Arena ( )

Return a pointer to The_Cpu_Arena, the CPU memory arena.

◆ The_Device_Arena()

Arena * amrex::The_Device_Arena ( )

Return a pointer to The_Device_Arena, the GPU device memory arena. It may be an alias to The_Arena.

◆ The_Managed_Arena()

Arena * amrex::The_Managed_Arena ( )

Return a pointer to The_Managed_Arena, the GPU managed memory arena. It maby be and alias to The_Arena.

◆ The_Pinned_Arena()

Arena * amrex::The_Pinned_Arena ( )

Return a pointer to The_Pinned_Arena, the pinned memory arena.