[Openmp-commits] [clang] [llvm] [mlir] [openmp] [OpenMP][offload] Cross-team reductions with variable number of teams (PR #195102)
Robert Imschweiler via Openmp-commits
openmp-commits at lists.llvm.org
Fri May 8 05:37:12 PDT 2026
================
@@ -58,6 +58,10 @@ struct ConfigurationEnvironmentTy {
int32_t MinTeams = -1;
int32_t MaxTeams = -1;
int32_t ReductionDataSize = 0;
+ // Reserved slot; new codegen writes 0 (plugin sizes the teams-reduction
+ // buffer from NumBlocks[0] at launch), but a non-zero value from older
+ // binaries is still honored as a compile-time upper bound on the number
+ // of teams.
----------------
ro-i wrote:
I completely removed that now, yeah. I was initially thinking of backwards compatibility, but then changed my mind / realized that it's not necessary. So this is dead code anyway.
https://github.com/llvm/llvm-project/pull/195102
More information about the Openmp-commits
mailing list