[llvm-branch-commits] [llvm] [libsycl] add single_task (PR #188797)
Alexey Bader via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 8 15:09:57 PDT 2026
================
@@ -16,6 +16,33 @@ _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.");
+ size_t GlobalSize[3] = {1, 1, 1};
+ if (Range.MGlobalSize) {
+ for (uint32_t I = 0; I < Range.MDims; I++) {
+ GlobalSize[I] = static_cast<uint32_t>(Range.MGlobalSize[I]);
----------------
bader wrote:
Why do we cast `size_t` to `unit32_t`? We still store to `size_t` variables.
https://github.com/llvm/llvm-project/pull/188797
More information about the llvm-branch-commits
mailing list