[llvm] [libsycl] Implement fill & memset queue API (PR #217933)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 03:54:43 PDT 2026
================
@@ -413,6 +413,87 @@ class _LIBSYCL_EXPORT queue {
event memcpy(void *dest, const void *src, std::size_t numBytes,
const std::vector<event> &depEvents);
+ /// Submits a memset operation for USM accessible on the device associated
+ /// with the queue. Equivalent to a fill operation with an unsigned char
+ /// pattern.
+ ///
+ /// \param ptr is the pointer to memory to be set.
+ /// \param value is the value the memory should be filled with, interpreted
+ /// as an unsigned char.
+ /// \param numBytes is the number of bytes to set.
----------------
Robertkq wrote:
```suggestion
/// \param numBytes is the number of bytes to set.
/// \return an event that represents the status of the operation.
```
please add this to all of the exposed API
https://github.com/llvm/llvm-project/pull/217933
More information about the llvm-commits
mailing list