[clang] [llvm] OpenMP offload 'simd' directive (PR #91261)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 16:33:58 PDT 2024


================
@@ -184,7 +196,7 @@ __kmpc_parallel_51(IdentTy *ident, int32_t, int32_t if_expr,
   // set, but they do not have individual ThreadStates yet. If they ever
   // modify the ICVs beyond this point a ThreadStates will be allocated.
 
-  bool IsActiveParallelRegion = NumThreads > 1;
+  bool IsActiveParallelRegion = NumThreads*mapping::getSimdLen() > 1;
----------------
jdoerfert wrote:

Why is this multiplied with the simd len here?

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


More information about the cfe-commits mailing list