Uncovering the Memory Hierarchy of Modern NVIDIA GPUs for Accurate Simulation
Ziwen Wang, Jiapeng Zhou, Changxi Liu, Dongsheng Wang, Yun Chen
Abstract
Emerging artificial intelligence workloads, particularly Large Language Models (LLMs), place unprecedented demands on GPU memory systems. Consequently, architectural innovations increasingly target the memory system to alleviate these bottlenecks. However, existing works still rely on outdated memory hierarchy models that fail to capture the complexities of modern hardware. This fidelity gap leads to inaccurate characterization and could misguide optimization strategies. To bridge this gap, we present GemAtlas, the first systematic reverse engineering of the memory hierarchy in modern NVIDIA GPUs. By developing fine-grained SASS-level benchmarking, we expose critical, previously undocumented micro-architectural details across different cache levels, including cache set associativity, slice-routing and set-indexing hash functions, replacement policies, coherence behavior, and interconnect topologies. We integrate these discovered micro-architecture details into the state-of-the-art GPU simulation framework. The final results demonstrate that GemAtlas reduces the mean absolute percentage error (MAPE) from 31.69% to 22.24% on average across four GPUs. Specifically, GemAtlas reduces the MAPE from 34.04% to 23.98% for real-world LLM operators.
Create a lesson
Related papers
Exploiting What NVIDIA Profilers Hide: Fast and Accurate Analytical GPU Performance Modeling
Shared title terminology · Ziwen Wang, Qi Luo, Kunlin Li et al.
Enabling Retraining-Free Accurate Inference in Analog Compute in Memory Accelerators
Shared title terminology · George Karfakis, Puneet Gupta
FoldSim: Scaling Cycle-Exact RTL Simulation with Hierarchical Folding and Static Scheduling
Shared title terminology · Chengxuan Wang, Nikhil Rout, Yang-gon Kim et al.
Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators
Shared title terminology · Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi et al.
BOOMerang: Autonomous Translation from RTL to Microarchitectural Simulators and Back
Shared title terminology · Ferran Hermida-Rivera, Jack Toubes, Angela Cui et al.
RE-CAM: Readout-Enhanced Content-Addressable Memory for Quantitative Similarity Search
Shared title terminology · Yi-Chun Liao, Dongyoung Lee, Jiazheng Chen et al.