[llvm-branch-commits] [mlir] [OpenMP][MLIR] Add num_threads clause with dims modifier support (PR #171767)

Michael Klemm via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 18 06:46:12 PST 2025


================
@@ -5774,8 +5780,12 @@ initTargetDefaultAttrs(omp::TargetOp targetOp, Operation *capturedOp,
       threadLimit = teamsOp.getThreadLimit();
     }
 
-    if (auto parallelOp = castOrGetParentOfType<omp::ParallelOp>(capturedOp))
+    if (auto parallelOp = castOrGetParentOfType<omp::ParallelOp>(capturedOp)) {
+      // num_threads dims and values are not yet supported
+      assert(!parallelOp.hasNumThreadsDimsModifier() &&
+             "Lowering of num_threads with dims modifier is NYI.");
----------------
mjklemm wrote:

Same for 'NYI'.

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


More information about the llvm-branch-commits mailing list