[llvm] [Offload] Add olGetKernelMaxGroupSize (PR #142950)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 04:57:51 PDT 2025
jhuber6 wrote:
> @jhuber6 I'm still trying to wrap my head around what you are looking for here. olGetKernelInfo or even having ol_kernel_handle_t be a non-opaque type makes sense for other queries, but the max group size depends on the local memory size (which as far as I can tell only the caller knows about).
>
> We could have a dedicated `olGetKernelLaunchInfo` (or similar) that accepts a kernel, device and local memory size and populates a provided struct with the work group size, but I don't know what information other than the max WG size such a struct could contain.
Mostly I'm just wary of having such a specific function when I feel like this should be something generic queried from a kernel. We should probably just go with what others like HSA do and make the kernel type a handle with an `info` function that can be used to get stuff like this, most importantly the address.
https://github.com/llvm/llvm-project/pull/142950
More information about the llvm-commits
mailing list