[Mlir-commits] [clang] [llvm] [mlir] [OpenMP] Reserve the main thread's warp for generic mode kernels (PR #218790)

Dhruva Chakrabarti llvmlistbot at llvm.org
Thu Aug 27 12:47:54 PDT 2026


================
@@ -8582,6 +8596,17 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createTargetInit(
     }
   }
 
+  // Generic mode runs the main thread on a warp of its own, past thread_limit.
+  bool NeedsMainThreadWarp =
----------------
dhruvachak wrote:

Why not check against OMP_TGT_EXEC_MODE_GENERIC directly? For example, are we adding the extra warp for BARE-mode here, why?

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


More information about the Mlir-commits mailing list