Reconstructing Fine-grained Memory Reuse Structure in GPU Kernels
Yanbo Zhao, Yueming Hao, Zecheng Li, Mao Lin, Shuyin Jiao, Keren Zhou, Xu Liu, Jiajia Li
Key points
From the paper's conclusion- We introduce two abstractions for representing this structure: Topological Distance, which labels each dynamic memory access with the smallest execution scope (thread, warp, block, or grid) containing its most recent reuse, and PCDepGraph, which organizes these labels into a PC-level graph of the kernel's memory reuse structure.
Abstract
Optimizing GPU data movement requires knowing which instructions access the same data and across which execution scopes reuse occurs. Existing profilers can attribute memory behavior to individual instructions but do not expose the reuse relations among them, while aliasing, dynamic indexing, and runtime parameters prevent static analysis from establishing these relations in general. Cycle-level simulation can reconstruct such relations, but at costs prohibitive for production workloads. We introduce two abstractions for representing this structure: Topological Distance, which labels each dynamic memory access with the smallest execution scope (thread, warp, block, or grid) containing its most recent reuse, and PCDepGraph, which organizes these labels into a PC-level graph of the kernel's memory reuse structure. Defined over logical execution scopes rather than transient hardware state, the representation remains stable across runs and GPU targets while directly indicating the sharing scope that candidate optimization mechanisms must cover. Our tool, cuVein, reconstructs PCDepGraph directly from optimized binaries, without sampling, at generally under 10x overhead. Across HPC and AI workloads on NVIDIA RTX 4090 and H100, optimizations guided by PCDepGraph eliminate up to 90.18% of memory instructions and yield up to 2.84x kernel speedup; reuse-scope distributions remain consistent across platforms, supporting that the representation captures program structure rather than transient hardware behavior.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ForgeKernel: Self-Evolving Kernels Catching and Surpassing Experts and AgentsarXiv · 2026
- TailGuard-GDS: Tail-Safe Control of GPU Storage Data MovementarXiv · 2026
- Racer: Hunting GPU Kernel Bugs with Symbolic Equivalence CheckingarXiv · 2026
- Less is more: learning what to profile for GPU kernel optimizationarXiv · 2026
- Ember: Making Unified Virtual Memory Practical for Discrete-Memory GPUsarXiv · 2026
- Xtrace: High-Fidelity GPU Intra-Kernel Tracing via Binary-Level Instruction SplicingarXiv · 2026