Memory arenas and allocators.
More...
Memory arenas and allocators.
AMReX provides a number of memory arenas and allocators:
◆ aligned_size()
| std::size_t amrex::aligned_size |
( |
std::size_t |
align_requirement, |
|
|
std::size_t |
size |
|
) |
| |
|
inlinenoexcept |
Return the smallest multiple of align_requirement that is >= size.
◆ is_aligned()
| bool amrex::is_aligned |
( |
const void * |
p, |
|
|
std::size_t |
alignment |
|
) |
| |
|
inlinenoexcept |
Return whether the address p is aligned to alignment bytes.
◆ 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 may be an alias to The_Arena.
◆ The_Pinned_Arena()
| Arena * amrex::The_Pinned_Arena |
( |
| ) |
|
Return a pointer to The_Pinned_Arena, the pinned memory arena.