|
UMPIRE
Umpire: resource management and provision
|
Reallocate data in CPU memory. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/op/HostReallocateOperation.hpp>

Public Member Functions | |
| void | transform (void *current_ptr, void **new_ptr, util::AllocationRecord *current_allocation, util::AllocationRecord *new_allocation, std::size_t new_size) |
| Transform length bytes of memory from src_ptr to dst_ptr. More... | |
| virtual camp::resources::EventProxy< camp::resources::Resource > | transform_async (void *src_ptr, void **dst_ptr, util::AllocationRecord *src_allocation, util::AllocationRecord *dst_allocation, std::size_t length, camp::resources::Resource &ctx) |
| virtual void | apply (void *src_ptr, util::AllocationRecord *src_allocation, int val, std::size_t length) |
| Apply val to the first length bytes of src_ptr. More... | |
| virtual camp::resources::EventProxy< camp::resources::Resource > | apply_async (void *src_ptr, util::AllocationRecord *src_allocation, int val, std::size_t length, camp::resources::Resource &ctx) |
Reallocate data in CPU memory.
|
virtual |
Transform length bytes of memory from src_ptr to dst_ptr.
Uses POSIX realloc to reallocate memory in the CPU memory.
| src_ptr | Pointer to source memory location. |
| dst_ptr | Pointer to destinatino memory location. |
| src_allocation | AllocationRecord of source. |
| dst_allocation | AllocationRecord of destination. |
| length | Number of bytes to transform. |
| util::runtime_error |
Reimplemented from umpire::op::MemoryOperation.
References umpire::ResourceManager::copy(), umpire::ResourceManager::deregisterAllocation(), umpire::ResourceManager::getInstance(), umpire::ResourceManager::registerAllocation(), umpire::util::AllocationRecord::size, umpire::util::AllocationRecord::strategy, and UMPIRE_ERROR.
|
virtualinherited |
Reimplemented in umpire::op::HipCopyOperation, umpire::op::CudaCopyOperation, and umpire::op::GenericReallocateOperation.
References umpire::op::MemoryOperation::transform(), UMPIRE_LOG, and umpire::util::message::Warning.
|
virtualinherited |
Apply val to the first length bytes of src_ptr.
| src_ptr | Pointer to source memory location. |
| src_allocation | AllocationRecord of source. |
| val | Value to apply. |
| length | Number of bytes to modify. |
| util::runtime_error |
Reimplemented in umpire::op::HipAdviseOperation, umpire::op::CudaAdviseOperation, umpire::op::SyclMemsetOperation, umpire::op::HipMemsetOperation, umpire::op::CudaMemsetOperation, umpire::op::HostMemsetOperation, umpire::op::SyclMemPrefetchOperation, umpire::op::OpenMPTargetMemsetOperation, and umpire::op::CudaMemPrefetchOperation.
References UMPIRE_ERROR.
Referenced by umpire::op::MemoryOperation::apply_async().
|
virtualinherited |
Reimplemented in umpire::op::HipMemsetOperation, umpire::op::CudaMemsetOperation, and umpire::op::CudaMemPrefetchOperation.
References umpire::op::MemoryOperation::apply(), UMPIRE_LOG, and umpire::util::message::Warning.