[llvm] [offload] Add properties parameter to olLaunchKernel (PR #184343)

Kevin Sala Penades via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 15:06:54 PST 2026


================
@@ -370,6 +370,15 @@ struct GenericKernelTy {
   virtual Expected<uint64_t> maxGroupSize(GenericDeviceTy &GenericDevice,
                                           uint64_t DynamicMemSize) const = 0;
 
+  /// Get the maximum number of work groups that can be launched cooperatively.
+  virtual Expected<uint32_t>
+  getMaxCooperativeGroupCount(GenericDeviceTy &GenericDevice, uint32_t WorkDim,
+                              const size_t *LocalWorkSize,
+                              size_t DynamicSharedMemorySize) const {
+    return Plugin::error(error::ErrorCode::UNSUPPORTED,
+                         "Cooperative launch not supported");
----------------
kevinsala wrote:

the error string should start with lowercase

https://github.com/llvm/llvm-project/pull/184343


More information about the llvm-commits mailing list