[llvm] [offload] Add properties parameter to olLaunchKernel (PR #184343)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 10:00:58 PST 2026
================
@@ -1032,10 +1038,39 @@ Error olCalculateOptimalOccupancy_impl(ol_device_handle_t Device,
return Error::success();
}
+Error olGetKernelMaxCooperativeGroupCount_impl(
+ ol_device_handle_t Device, ol_symbol_handle_t Kernel,
+ const ol_kernel_launch_size_args_t *LaunchSizeArgs,
+ uint32_t *MaxGroupCount) {
+ if (Kernel->Kind != OL_SYMBOL_KIND_KERNEL)
+ return createOffloadError(ErrorCode::SYMBOL_KIND,
+ "provided symbol is not a kernel");
+
+ auto *DeviceImpl = Device->Device;
----------------
jhuber6 wrote:
I prefer explicit types in cases like this.
https://github.com/llvm/llvm-project/pull/184343
More information about the llvm-commits
mailing list