[llvm] [libsycl] add single_task (PR #192499)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 03:43:24 PDT 2026


================
@@ -10,11 +10,42 @@
 
 #include <detail/device_impl.hpp>
 #include <detail/event_impl.hpp>
+#include <detail/program_manager.hpp>
+
+#include <algorithm>
 
 _LIBSYCL_BEGIN_NAMESPACE_SYCL
 
 namespace detail {
 
+static void setKernelLaunchArgs(const detail::UnifiedRangeView &Range,
+                                ol_kernel_launch_size_args_t &ArgsToSet) {
+  assert(Range.MDims < 4 && "Invalid dimensions.");
----------------
KseniyaTikhomirova wrote:

yes and no.
UnifiedRangeView  is a struct with public members and available default ctor. I believe it may be more useful to set data expectation here where we use data. assert in ctor for struct has less guarantees.

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


More information about the llvm-commits mailing list