|
UMPIRE
Umpire: resource management and provision
|
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/strategy/mixins/AlignedAllocation.hpp>

Public Member Functions | |
| AlignedAllocation ()=delete | |
| AlignedAllocation (std::size_t alignment, strategy::AllocationStrategy *strategy) | |
| std::size_t | aligned_round_up (std::size_t size) |
| Round up the size to be an integral multple of configured alignment. More... | |
| void * | aligned_allocate (const std::size_t size) |
Return an allocation of size bytes that is aligned on the configured alignment boundary. More... | |
| void | aligned_deallocate (void *ptr) |
| Deallocate previously alligned allocation. More... | |
Protected Attributes | |
| strategy::AllocationStrategy * | m_allocator |
|
delete |
| umpire::strategy::mixins::AlignedAllocation::AlignedAllocation | ( | std::size_t | alignment, |
| strategy::AllocationStrategy * | strategy | ||
| ) |
|
inline |
Round up the size to be an integral multple of configured alignment.
Referenced by DynamicSizePool< IA >::allocate(), umpire::strategy::QuickPool::allocate(), and umpire::strategy::ResourceAwarePool::allocate_resource().
|
inline |
Return an allocation of size bytes that is aligned on the configured alignment boundary.
References umpire::strategy::AllocationStrategy::allocate_internal(), m_allocator, and UMPIRE_POISON_MEMORY_REGION.
Referenced by umpire::strategy::QuickPool::allocate(), umpire::strategy::ResourceAwarePool::allocate_resource(), and DynamicSizePool< IA >::allocateBlock().
|
inline |
Deallocate previously alligned allocation.
References umpire::strategy::AllocationStrategy::deallocate_internal(), and m_allocator.
Referenced by DynamicSizePool< IA >::freeReleasedBlocks(), umpire::strategy::QuickPool::release(), and umpire::strategy::ResourceAwarePool::release().
|
protected |
Referenced by aligned_allocate(), aligned_deallocate(), DynamicSizePool< IA >::allocate(), umpire::strategy::QuickPool::allocate(), umpire::strategy::ResourceAwarePool::allocate_resource(), DynamicSizePool< IA >::deallocate(), umpire::strategy::QuickPool::deallocate(), umpire::strategy::QuickPool::getPlatform(), umpire::strategy::ResourceAwarePool::getPlatform(), umpire::strategy::QuickPool::getTraits(), and umpire::strategy::ResourceAwarePool::getTraits().