Reducing Communication with Local Work

A worker can combine data locally before sending partial results when the chosen summary preserves all needed information.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two counts
  2. Keep sufficient state
  3. Combine compatible partial results before sending
  4. Preserve whatever the reader still needs

Trace two counts

Sending one count from each partition uses fewer messages than sending each matching record. A consumer requesting the actual records has a different output requirement. See output size bounds.

Keep sufficient state

To combine means correctly, send sums and counts. Associative summary design explains why a local mean alone may be insufficient.[1]

Combine compatible partial results before sending

Four workers count successes across disjoint chunks. Each can send one pair containing the total count and the successful count. The receiver can add matching parts to compute an overall rate. See combining group rates.

Worker A sends (success 3, total 4)
Worker B sends (success 2, total 6)
Combined fraction 5/10 = 0.5
Equal averaging of rates gives a different value

Preserve whatever the reader still needs

Per-item audits need additional data beyond aggregate counts. Include chunk identity for retries and replay. Test unequal chunks and one empty chunk.

References

  1. OpenMP Architecture Review Board, OpenMP API Specifications ↩