[Openmp-commits] [llvm] [openmp] [OpenMP][offload] Size the grid of cross-team reductions by their size (PR #234190)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Thu Oct 29 08:47:16 PDT 2026
================
@@ -852,6 +852,65 @@ getDefaultNumBlocksGenericSPMD(const DeviceGeometryPropsTy &Props) {
return Props.NumComputeUnits * OMPX_GenericSPMDTeamsPerCU.get();
}
+/// Threshold for the reduction data size (in bytes) above which a cross-team
+/// reduction classifies as "large".
+static constexpr uint32_t LargeTeamsReductionBytes = 32;
----------------
jhuber6 wrote:
I don't know how the reductions are implemented, I'm assuming it's just based on the wider loads we have on the data center cards? Like https://godbolt.org/z/8Wx7Thxn5
https://github.com/llvm/llvm-project/pull/234190
More information about the Openmp-commits
mailing list