[llvm] [Offload][OMPX] Add the runtime support for multi-dim grid and block (PR #118042)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 08:18:00 PST 2024


================
@@ -337,15 +338,15 @@ struct GenericKernelTy {
 
   /// Get the number of threads and blocks for the kernel based on the
   /// user-defined threads and block clauses.
-  uint32_t getNumThreads(GenericDeviceTy &GenericDevice,
-                         uint32_t ThreadLimitClause[3]) const;
+  void getNumThreads(GenericDeviceTy &GenericDevice,
+                     uint32_t ThreadLimitClause[3]) const;
----------------
jhuber6 wrote:

Shouldn't this take a `dim` argument and return that?

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


More information about the llvm-commits mailing list