What is Loop blocking?

An optimization that processes large arrays in small blocks that fit in the cache so loaded data is reused many times before eviction. Very effective for matrix multiplication.

Field: Memory Hierarchy

Loop blocking in the explanations

Questions that mention Loop blocking (2)

  1. What is the main purpose of loop blocking (tiling), used for example in matrix multiplication?
  2. Which misses are not reduced even by making a cache fully associative?

Related terms

Loop unrolling Fully associative cache Average memory access time Cache line Capacity miss Compulsory miss Conflict miss Direct-mapped cache LRU replacement Miss penalty

Back to the glossary