AI Accelerator Design · All levels
Scratchpad vs Cache: Managed Locality Tradeoffs: Review Checklist
Review Checklist for Scratchpad vs Cache: Managed Locality Tradeoffs.
Review checklist
Review Checklist for Scratchpad vs Cache: Managed Locality Tradeoffs is anchored on Delivered throughput change and miss or spill overhead when moving a kernel between cache-managed and scratchpad-managed execution.. Convert measurements into mechanism-backed decisions with clear owner accountability.
Workload scope and SLA targets are explicit.
Environment metadata is locked and reproducible.
Mechanism classification is evidence-backed.
Owner, rollback trigger, and validation matrix are documented.
Owners signed: compiler/runtime architect, kernel performance engineer, hardware cache designer, serving systems owner.
AI accelerator deep dive
Memory hierarchy discipline sets the practical compute ceiling for AI accelerators.
Concept diagram
MEMORY HIERARCHY VIEW
register/SRAM -> shared buffers -> NoC -> HBM
locality quality decides how long compute stays fedMetric graph
MEMORY WALL SIGNALS
HBM near-saturation ███████████
NoC backpressure ███████
compute idle fraction █████Metrics and artifacts to collect
SRAM hit ratio
HBM utilization timeline
bank-conflict hotspots
NoC queue pressure
Mini case study
HBM channels saturated under burst traffic while compute occupancy dropped, proving a memory-bound regime.
Debug branches
Separate locality vs bandwidth limits
Quantify bank conflicts
Tune tiling before resizing compute arrays
Senior review question
Ask: which first-principles bottleneck class explains the symptom, and what artifact proves it reproducibly?
Key takeaways
Tie every accelerator claim to a reproducible workload slice and one primary metric trend.
Prefer bounded fixes with clear owner and rollback boundary over broad tuning bundles.
Common pitfalls
Optimizing synthetic kernels without production-shape validation.
Reading average latency while ignoring p95 and p99 behavior.
Declaring sparse or precision wins without fallback and quality evidence.
Review checklist explanation
Checklist quality determines whether teams close on proof or on optimism.
Minimum packet: metric trend (Delivered throughput change and miss or spill overhead when moving a kernel between cache-managed and scratchpad-managed execution.), artifact set (Kernel locality decision matrix comparing cache and scratchpad policy by operator class.), bottleneck class, owner fix, rollback trigger, and validation matrix.
If precision changes are involved, include quality guardrail evidence for each deployment slice.