[llvm] [offload] Add properties parameter to olLaunchKernel (PR #184343)
Kevin Sala Penades via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 14:47:06 PST 2026
================
@@ -1058,6 +1092,25 @@ Error olLaunchKernel_impl(ol_queue_handle_t Queue, ol_device_handle_t Device,
LaunchArgs.ThreadLimit[2] = LaunchSizeArgs->GroupSize.z;
LaunchArgs.DynCGroupMem = LaunchSizeArgs->DynSharedMemory;
+ while (Properties && Properties->type != OL_KERNEL_LAUNCH_PROP_TYPE_NONE) {
+ switch (Properties->type) {
+ case OL_KERNEL_LAUNCH_PROP_TYPE_SIZE:
+ LaunchArgs.ArgSizes = const_cast<int64_t *>(
+ reinterpret_cast<const int64_t *>(Properties->data));
----------------
kevinsala wrote:
You're reading an `int64_t` here but your tablegen file says `size_t`.
https://github.com/llvm/llvm-project/pull/184343
More information about the llvm-commits
mailing list