[Openmp-commits] [openmp] [libomptarget][OpenMP] Initial implementation of omp_target_memset() and omp_target_memset_async() (PR #68706)

Michael Klemm via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 10 07:18:58 PDT 2023


================
@@ -312,6 +312,7 @@ int omp_target_memcpy_rect(void *Dst, const void *Src, size_t ElementSize,
                            const size_t *DstDimensions,
                            const size_t *SrcDimensions, int DstDevice,
                            int SrcDevice);
+void *omp_target_memset(void *Ptr, int C, size_t N, int DeviceNum);
----------------
mjklemm wrote:

I can do that.  I have "borrowed" the argument names from the `memset` interface: `void *memset(void *s, int c, size_t n);`, but I'm OK with being a bit more verbose and use more elaborate names.

https://github.com/llvm/llvm-project/pull/68706


More information about the Openmp-commits mailing list