Reproduce “Dissecting GPU Memory Hierarchy through Microbenchmarking” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xinxin Mei, Xiaowen Chu

Researchers from Hong Kong Baptist University employed a fine-grained microbenchmarking technique to characterize the opaque memory hierarchies of NVIDIA's Fermi, Kepler, and Maxwell GPUs. The study uncovered unique cache structures, replacement policies, and memory mapping schemes, demonstrating Maxwell's substantial improvements in shared memory bank conflict handling with latencies as low as 90 cycles for 32-way conflicts.

Key insights

  • Modern GPU caches significantly deviate from classical set-associative LRU models, featuring non-LRU replacement policies, unequal cache sets, and complex, non-conventional memory address mapping.
  • NVIDIA GPUs employ a hardware pre-fetching mechanism from DRAM to the L2 data cache, consistently pre-fetching approximately two-thirds of the L2 cache size sequentially.
  • The study illuminates NVIDIA's architectural evolution, showing a shift from Kepler's focus on raw compute and bandwidth to Maxwell's more balanced, energy-efficient design, particularly regarding shared memory utilization.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.