nvalchemi.distributed.Scope#
- class nvalchemi.distributed.Scope(*values)[source]#
Which rows a per-system reduction sums, and whether it crosses ranks.
Passed to
system_sum().- OWNED#
Sum this rank’s owned rows only, then all-reduce across the mesh to the true global per-system total (replicated on every rank). The default for an energy-like readout.
- LOCAL#
Sum this rank’s owned rows into a per-rank partial with no cross-rank all-reduce; the framework’s output consolidation finishes the global sum. Used where the consolidation step owns the reduction (e.g. a per-graph virial).