[llvm] [libsycl] Implement fill & memset queue API (PR #217933)
Kseniya Tikhomirova via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 04:55:10 PDT 2026
================
@@ -560,6 +641,18 @@ class _LIBSYCL_EXPORT queue {
/// \return an event representing last kernel invocation.
event getLastEvent();
+ /// Submits a fill operation that replicates a pattern into USM accessible
+ /// on the device associated with the queue.
+ ///
+ /// \param Ptr is the pointer to memory to be filled.
+ /// \param Pattern is the pattern to be replicated.
+ /// \param PatternSize is the size of the pattern in bytes.
+ /// \param Count is the number of times the pattern is filled.
+ /// \param DepEvents is a vector of events that represent dependencies for the
+ /// operation.
+ event fillImpl(void *Ptr, const void *Pattern, std::size_t PatternSize,
----------------
KseniyaTikhomirova wrote:
if we will call impl->fill in public header - we will need to include queue_impl.hpp to this file since we can't call method of class without full declaration. We don't want to expose implementation-details classes here.
https://github.com/llvm/llvm-project/pull/217933
More information about the llvm-commits
mailing list