[llvm] [offload] Add properties parameter to olLaunchKernel (PR #184343)
Ćukasz Plewa via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 09:50:26 PST 2026
================
@@ -57,3 +89,32 @@ def olCalculateOptimalOccupancy : Function {
Return<"OL_ERRC_UNSUPPORTED", ["The backend cannot provide this information"]>,
];
}
+
+def olGetKernelMaxCooperativeGroupCount : Function {
+ let desc = "Query the maximum number of work groups that can be launched "
+ "cooperatively for a kernel.";
+ let details =
+ ["This function returns the maximum number of work groups that can "
+ "participate in a cooperative launch for the given kernel.",
+ "The maximum count depends on the work group size and dynamic shared "
+ "memory usage.",
+ ];
+ let params = [Param<"ol_device_handle_t", "Device",
+ "device intended to run the kernel", PARAM_IN>,
+ Param<"ol_symbol_handle_t", "Kernel", "handle of the kernel",
+ PARAM_IN>,
+ Param<"uint32_t", "WorkDim",
+ "number of work dimensions (1, 2, or 3)", PARAM_IN>,
+ Param<"const size_t*", "LocalWorkSize",
+ "local work group size for each dimension", PARAM_IN>,
+ Param<"size_t", "DynamicSharedMemorySize",
+ "dynamic shared memory size in bytes", PARAM_IN>,
----------------
lplewa wrote:
done
https://github.com/llvm/llvm-project/pull/184343
More information about the llvm-commits
mailing list