[llvm] [Offload] Add olKernelMaxGroupSize (PR #142950)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 06:07:42 PDT 2025
================
@@ -24,6 +24,19 @@ def : Function {
let returns = [];
}
+def : Function {
+ let name = "olKernelMaxGroupSize";
+ let desc = "Get the maximum block size needed to achieve maximum occupancy.";
+ let details = [];
+ let params = [
+ Param<"ol_kernel_handle_t", "Kernel", "handle of the kernel", PARAM_IN>,
+ Param<"ol_device_handle_t", "Device", "device intended to run the kernel", PARAM_IN>,
----------------
jhuber6 wrote:
Well, a kernel implies that it's been successfully loaded onto the device, so it should have a device. Might be reasonable to add it as an argument to the main one. That or we could revisit the other question and add some metadata associated with the kernel.
https://github.com/llvm/llvm-project/pull/142950
More information about the llvm-commits
mailing list