|
UMPIRE
Umpire: resource management and provision
|
Memset on NVIDIA device memory. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/op/CudaMemsetOperation.hpp>

Public Member Functions | |
| void | apply (void *src_ptr, util::AllocationRecord *ptr, int value, std::size_t length) |
| Apply val to the first length bytes of src_ptr. More... | |
| camp::resources::EventProxy< camp::resources::Resource > | apply_async (void *src_ptr, util::AllocationRecord *ptr, int value, std::size_t length, camp::resources::Resource &ctx) |
| 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::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) |
Memset on NVIDIA device memory.
|
virtual |
Apply val to the first length bytes of src_ptr.
Uses cudaMemset to set first length bytes of src_ptr to value.
| 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 from umpire::op::MemoryOperation.
References umpire::error(), and UMPIRE_ERROR.
|
virtual |
Reimplemented from umpire::op::MemoryOperation.
References umpire::error(), umpire::platform_to_string(), and UMPIRE_ERROR.
|
virtualinherited |
Transform length bytes of memory from src_ptr to dst_ptr.
| 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 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().
|
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.