Warpline: Binary-Level Tracing and Unified Evidence for Agentic GPU Kernel Optimization
Junyu Yin, Vinod Grover, Keren Zhou
Abstract
LLM agents are becoming GPU kernel engineers, but they still tune kernels without seeing where the time goes. Hardware profilers report how busy each unit was, not where each warp's time went; intra-kernel tracers can show it, but only with hand-placed probes and a recompilation that alters the very kernel being measured. We present Warpline, which gives agents this view automatically while leaving the kernel essentially unchanged. Warpline analyzes the binary to decide which events to record and inserts probes into the binary itself without recompilation or any manual step. It then aligns the trace with hardware profiling data on one unified timeline. Because it needs only the binary, it can regenerate this evidence for every new version of the kernel at whatever level the agent edits it (source, IR, or PTX), closing the optimization loop without human intervention. On NVIDIA B200, across 35 kernels in Triton, CuTe DSL, and CUDA C++, Warpline adds a median overhead of 1.2% and leaves a median 99.9% of executed instructions unchanged, whereas existing tracers have median overheads of 1.6% to 13.2% and leave only 4.6% to 32.7% unchanged. Warpline also traces closed-source kernels, which these tracers cannot. On 10 SOL-ExecBench problems, agents using Warpline spend less time and fewer model requests than a bare coding agent and NVIDIA's Kernel Design Agents (KDA), yet lead both after every round in geometric mean and reach a 7.69× geometric-mean speedup, against 6.94× and 6.13×. Two case studies further demonstrate that Warpline reveals hidden bottlenecks and provides actionable optimization insights.
Create a lesson
Related papers
SysPilot: Cross-Library Performance Autotuning via Library Performance Contracts
Yineng Yan, Haowei Chen, Christopher J. Rossbach
Memory-Access Profiling for Early Multicore Interference Awareness in Embedded Systems
Jean-Baptiste Lefoul, Ahmad Shahnejat Bushehri, Alaric Chan Lock et al.
Easy Multi-Precision Acceleration via Vectorization
Chansup Byun, Piotr Luszczek, Jeremy Kepner et al.
Software Design Patterns for Latency Measurements with eBPF in SDN Environments
Pedro Lucas M. S. Rosa, Bruno L. Dalmazo, Leticia S. Machado et al.
Trustworthiness as a Measurement Structure for Task Conformance in 6G Service Chains
Bin Han, Xintong Ling, Muxia Sun et al.
The Unreported Variable:Collector Selectivity in Data Placement Evaluation
Nannan Zhao, Jiameng Zhang, Taoyu Zhong et al.