[Openmp-commits] [openmp] [OpenMP][libomptarget][RFC] extend libomptarget with mechanism to execute fill memory on the target (PR #73801)
Johannes Doerfert via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 29 08:55:38 PST 2023
================
@@ -775,6 +775,12 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
void *DstPtr, int64_t Size,
AsyncInfoWrapperTy &AsyncInfoWrapper) = 0;
+ /// Fill memory on the target device (aka memset).
+ Error fillMemory(void *Ptr, int32_t Val, uint64_t NumValues,
+ __tgt_async_info *AsyncInfo);
+ virtual Error fillMemoryImpl(void *Ptr, int32_t Val, uint64_t NumValue,
+ AsyncInfoWrapperTy &AsyncInfo) = 0;
----------------
jdoerfert wrote:
Consistency, NumValues vs NumValue, AsyncInfo is the `__tgt_async_info` type, AsyncInfoWrapper is a `AsyncInfoWrapperTy` type.
https://github.com/llvm/llvm-project/pull/73801
More information about the Openmp-commits
mailing list