Paper VIII visual guide · Visual 24 of 32 · A LAUNCH MODEL IS NOT A BANDWIDTH MODEL

Batch shapes, account for traffic

Traditional pp. 11, 12, 35 / Proposition 3.6, Theorem 3.8, Proposition 10.2.

Start reading

Resources & source

Original plate in the visual-guide PDF · Original atlas source

Skip contents and start reading

Six independent blocks have the displayed dimensions. When right-hand-side count, scalar type, accumulation type, and kernel contract also agree within each class, they can be grouped into three batches. That reduces the modeled launch count from six to three without changing their arithmetic.

Shape batches and declared memory traffic
Original drawing. Read the description below; expand the labels and data for selectable text.

Reading the drawing

Matrices of compatible shapes can share launches. The diagram keeps launch counts and data movement as separate costs in the stated model.

Drawing labels and data 46 labels

Read the original labels as selectable text. Tables preserve grid relationships; other short labels are grouped compactly.

  • 2\(\times\)2
Drawing grid 1 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2
Row 1\(1\)\(1\)
Row 2\(1\)\(1\)
  • task 1
  • 2\(\times\)3
Drawing grid 2 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2Column 3
Row 1\(1\)\(1\)\(1\)
Row 2\(1\)\(1\)\(1\)
  • task 2
  • 3\(\times\)2
Drawing grid 3 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2
Row 1\(1\)\(1\)
Row 2\(1\)\(1\)
Row 3\(1\)\(1\)
  • task 3
  • 2\(\times\)2
Drawing grid 4 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2
Row 1\(1\)\(1\)
Row 2\(1\)\(1\)
  • task 4
  • 3\(\times\)2
Drawing grid 5 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2
Row 1\(1\)\(1\)
Row 2\(1\)\(1\)
Row 3\(1\)\(1\)
  • task 5
  • 2\(\times\)3
Drawing grid 6 · rows top to bottom, columns left to right
Row / columnColumn 1Column 2Column 3
Row 1\(1\)\(1\)\(1\)
Row 2\(1\)\(1\)\(1\)
  • task 6
  • Three shape classes, six independent tasks.

Grouping does not remove arithmetic, data transfer, or shared-output dependencies.

Open the full-size drawing

Independence must be real

The batching statement assumes compatible backend support and independent block tasks. If several blocks accumulate into one target, the reduction or accumulation policy is additional work. Equal matrix dimensions alone do not remove that dependency. Different accumulation types also define different shape classes under the paper's convention.

Count the data separately

For three diagonal \(2\times2\) blocks, eight-byte scalars, and \(q\) right-hand sides, the stated one-pass model moves

\[ B_{\rm stream}=8\cdot3(4+2q+4q)=96+144q\text{ bytes}. \]

It gives 240 bytes at \(q=1\) and 672 bytes at \(q=4\). It deliberately assumes no reuse across edges. A cache-aware implementation may have another traffic model, but it must state one.

Given operation capacity \(P\) and bandwidth \(W\), \(T\ge\max(F/P,B/W)\) is a lower bound, not an achieved runtime. Launch overhead, imperfect overlap, and utilization can make the actual time much larger.

Read this as

Grouping can remove launches while leaving the same products and data movement. Arithmetic, traffic, and scheduling are related constraints, not one interchangeable cost.

Source and conversion record

The original atlas wording, equations, and drawing labels are retained. Drawings are views of the retained visual-guide PDF. Text descriptions and table headings are added reading aids. This conversion does not rebuild TeX, rerun the examples, audit proofs or compile Lean.

The revised crosswalk binds all 32 plates to the retained PDF. Manuscript links use stable source labels checked against the manuscript. The guide’s “Classical input 7.5” resolves to the manuscript’s “Standard fact 7.5” at the same label.

Conversion checks and source hashes

Notation in Paper VIII

Look up a symbol without leaving this chapter. Select text before opening help to search for it.

Search this work’s notation.

    Symbols can have different meanings in different passages. Read each result in its own context.

    Open the full notation index