UMPIRE
Umpire: resource management and provision
umpire::op::SyclMemPrefetchOperation Class Reference

#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/op/SyclMemPrefetchOperation.hpp>

Inheritance diagram for umpire::op::SyclMemPrefetchOperation:

Public Member Functions

void apply (void *src_ptr, umpire::util::AllocationRecord *src_allocation, int value, std::size_t length)
 Apply val to the first length bytes of src_ptr. More...
 
virtual void transform (void *src_ptr, void **dst_ptr, util::AllocationRecord *src_allocation, util::AllocationRecord *dst_allocation, std::size_t length)
 Transform length bytes of memory from src_ptr to dst_ptr. More...
 
virtual camp::resources::EventProxy< camp::resources::Resourcetransform_async (void *src_ptr, void **dst_ptr, util::AllocationRecord *src_allocation, util::AllocationRecord *dst_allocation, std::size_t length, camp::resources::Resource &ctx)
 
virtual camp::resources::EventProxy< camp::resources::Resourceapply_async (void *src_ptr, util::AllocationRecord *src_allocation, int val, std::size_t length, camp::resources::Resource &ctx)
 

Member Function Documentation

◆ apply()

void umpire::op::SyclMemPrefetchOperation::apply ( void *  src_ptr,
umpire::util::AllocationRecord src_allocation,
int  val,
std::size_t  length 
)
virtual

Apply val to the first length bytes of src_ptr.

Parameters
src_ptrPointer to source memory location.
src_allocationAllocationRecord of source.
valValue to apply.
lengthNumber of bytes to modify.
Exceptions
util::runtime_error

Reimplemented from umpire::op::MemoryOperation.

References umpire::strategy::AllocationStrategy::getTraits(), umpire::MemoryResourceTraits::id, umpire::util::AllocationRecord::strategy, and UMPIRE_ERROR.

◆ transform()

void umpire::op::MemoryOperation::transform ( void *  src_ptr,
void **  dst_ptr,
util::AllocationRecord src_allocation,
util::AllocationRecord dst_allocation,
std::size_t  length 
)
virtualinherited

Transform length bytes of memory from src_ptr to dst_ptr.

Parameters
src_ptrPointer to source memory location.
dst_ptrPointer to destinatino memory location.
src_allocationAllocationRecord of source.
dst_allocationAllocationRecord of destination.
lengthNumber of bytes to transform.
Exceptions
util::runtime_error

Reimplemented in umpire::op::SyclCopyToOperation, umpire::op::SyclCopyFromOperation, umpire::op::SyclCopyOperation, umpire::op::OpenMPTargetCopyOperation, umpire::op::NumaMoveOperation, umpire::op::HostCopyOperation, umpire::op::HipCopyOperation, umpire::op::CudaCopyOperation, umpire::op::HostReallocateOperation, and umpire::op::GenericReallocateOperation.

References UMPIRE_ERROR.

Referenced by umpire::op::MemoryOperation::transform_async().

◆ transform_async()

camp::resources::EventProxy< camp::resources::Resource > umpire::op::MemoryOperation::transform_async ( void *  src_ptr,
void **  dst_ptr,
util::AllocationRecord src_allocation,
util::AllocationRecord dst_allocation,
std::size_t  length,
camp::resources::Resource ctx 
)
virtualinherited

◆ apply_async()

camp::resources::EventProxy< camp::resources::Resource > umpire::op::MemoryOperation::apply_async ( void *  src_ptr,
util::AllocationRecord src_allocation,
int  val,
std::size_t  length,
camp::resources::Resource ctx 
)
virtualinherited