The tiling is ten lines and the theory is a working-set calculation. The interesting part is that the obvious benchmark does not measure what it appears to, because the library underneath is already tiled, and knowing which effect your numbers contain is the skill being tested.
Write a tiled matrix multiply and explain the cache effect. Then say honestly what your benchmark actually measured.
The tiling is ten lines and the theory is a working-set calculation. The interesting part is that the obvious benchmark does not measure what it appears to, because the library underneath is already tiled, and knowing which effect your numbers contain is the skill being tested.
Updated Sep 2026 · Grounded in real AI infrastructure interview loops and written to a senior-engineer editorial bar, with every number worked and every diagram hand-built.
The concepts behind this question
Ranked by how closely each one overlaps this question's topic, so the first card is the thing to read if the answer above moved too fast.
Scored on the working-set arithmetic and the reuse factor, on writing correct tiled code, and on recognising that a numpy benchmark measures dispatch overhead rather than cache locality because BLAS is already blocked.
No comments yet — be the first to share your approach.
