6.5.6 · D3 · HinglishAdvanced & Emerging Architectures

Worked examplesDomain-specific accelerators

2,827 words13 min read↑ Read in English

6.5.6 · D3 · Hardware › Advanced & Emerging Architectures › Domain-specific accelerators

Yeh page drill ground hai. Parent note ne ideas banaye the (Roofline model, Systolic arrays, energy-per-op). Yahan hum un ideas ko har us situation se guzarte hain jo exam ya real chip throw kar sakti hai — inequality ka har sign, zero/degenerate cases, limits, ek word problem, aur ek nasty twist.

Kisi bhi example se pehle, hum tools aur unke symbols pe agree karte hain taaki kuch bhi undefined na rahe.

Neeche ki figure exactly yahi picture draw karti hai: blue line hai , yellow dashed line hai rising memory ceiling , red dashed line hai flat compute ceiling , aur green dot ridge ko mark karta hai jahan woh cross karte hain. Isse dhyan mein rakho — neeche ka har roofline example is curve par placed ek point hai.

Figure — Domain-specific accelerators

Scenario matrix

Har DSA numeric question inhi cells mein se ek hai. Last column us example ka naam deta hai jo use nail karta hai.

# Case class Jis twist ko yeh test karta hai Example
A Memory-bound () extra MACs waste ho jaate hain Ex 1
B Compute-bound () zyada bandwidth waste ho jaati hai Ex 2
C Balanced (, boundary) exact ridge point Ex 3
D Degenerate: (no reuse) streaming, zero-reuse limit Ex 4
E Degenerate: (infinite reuse) aap saturate karte ho Ex 4
F Energy-per-op comparison ops/joule, GHz nahi Ex 5
G Systolic reuse & utilisation non-square tiles, edge fill/drain waste Ex 6
H Word problem (real deploy) bottleneck dhundho, phir act karo Ex 7
I Exam twist: precision change moves INT8 bytes halve karta hai → double hota hai Ex 8
J Heterogeneous / Amdahl limit serial part total speedup cap karta hai Ex 9

Worked examples

Figure — Domain-specific accelerators

Recall Har example kaun sa cell hai?

Ex1 memory-bound (A) ::: ridge ke left, Ex2 compute-bound (B) ::: ridge ke right, Ex3 balanced (C) ::: ridge par, dono ceilings equal Ex4 limits (D,E) ::: gives ; clamps to Ex5 energy (F) ::: energies divide karo, clocks nahi → Ex6 systolic (G) ::: peak sustained; fill/drain tax Ex7 word problem (H) ::: har stage diagnose karo, memory-bound wala fix karo Ex8 precision twist (I) ::: kam bytes → zyada free Ex9 Amdahl (J) ::: serial part speedup cap karta hai par