Reconstructing Fine-grained Memory Reuse Structure in GPU Kernels
Yanbo ZhaoYueming HaoZecheng LiMao LinShuyin JiaoKeren ZhouXu LiuJiajia Li
Yanbo Zhao
Yueming Hao
Zecheng Li
Mao Lin
Shuyin Jiao
Keren Zhou
Xu Liu
Jiajia Li
+8
Existing GPU profilers attribute memory behavior to individual instructions but do not expose the reuse relations among them, which cannot be established statically in general. The paper introduces 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, a PC-level graph organizing these labels into the kernel's memory reuse structure. Because it is defined over logical execution scopes rather than transient hardware state, the representation is stable across runs and GPU targets and directly indicates the sharing scope that optimizations must cover. The tool cuVein reconstructs PCDepGraph directly from optimized binaries without sampling, generally under 10x overhead; guided optimizations eliminate up to 90.18% of memory instructions and yield up to 2.84x kernel speedup, with consistent reuse-scope distributions across platforms.

arXiv ·
· November 10, 2026