6.5.6 · D3Advanced & Emerging Architectures

Worked examples — Domain-specific accelerators

2,599 words12 min readBack to topic

This page is the drill ground. The parent note built the ideas (the Roofline model, Systolic arrays, energy-per-op). Here we run those ideas through every kind of situation an exam or a real chip can throw at you — every sign of the inequality, the zero/degenerate cases, the limits, a word problem, and a nasty twist.

Before any example, we agree on the tools and their symbols so nothing sneaks in undefined.

The figure below draws exactly this picture: the blue line is , the yellow dashed line is the rising memory ceiling , the red dashed line is the flat compute ceiling , and the green dot marks the ridge where they cross. Keep it in mind — every roofline example below is a point placed on this curve.

Figure — Domain-specific accelerators

The scenario matrix

Every DSA numeric question is one of these cells. The last column names the example that nails it.

# Case class The twist it tests Example
A Memory-bound () extra MACs are wasted Ex 1
B Compute-bound () more bandwidth is wasted Ex 2
C Balanced (, boundary) the exact ridge point Ex 3
D Degenerate: (no reuse) streaming, zero-reuse limit Ex 4
E Degenerate: (infinite reuse) you saturate Ex 4
F Energy-per-op comparison ops/joule, not GHz Ex 5
G Systolic reuse & utilisation non-square tiles, edge fill/drain waste Ex 6
H Word problem (real deploy) pick the bottleneck, then act Ex 7
I Exam twist: precision change moves INT8 halves bytes → doubles Ex 8
J Heterogeneous / Amdahl limit serial part caps total speedup Ex 9

Worked examples

Figure — Domain-specific accelerators

Recall Which cell is each example?

Ex1 memory-bound (A) ::: left of ridge, Ex2 compute-bound (B) ::: right of ridge, Ex3 balanced (C) ::: on the ridge, both ceilings equal Ex4 limits (D,E) ::: gives ; clamps to Ex5 energy (F) ::: divide energies, not clocks → Ex6 systolic (G) ::: peak sustained; fill/drain tax Ex7 word problem (H) ::: diagnose each stage, fix the memory-bound one Ex8 precision twist (I) ::: fewer bytes → higher free Ex9 Amdahl (J) ::: serial part caps speedup at