[clang] [llvm] OpenMP offload 'simd' directive (PR #91261)
Johannes Doerfert via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 16:33:59 PDT 2024
================
@@ -287,7 +303,7 @@ __kmpc_parallel_51(IdentTy *ident, int32_t, int32_t if_expr,
// Set to true for workers participating in the parallel region.
uint32_t TId = mapping::getThreadIdInBlock();
- bool ThreadIsActive = TId < state::getEffectivePTeamSize();
+ bool ThreadIsActive = TId < state::getEffectivePTeamSize()*mapping::getSimdLen();
----------------
jdoerfert wrote:
We likely need a new helper for this. Otherwise people need to know they have to multiple these values.
https://github.com/llvm/llvm-project/pull/91261
More information about the cfe-commits
mailing list