arXiv:2611.04331cs.PFNov 2026

Manuscript Offprint

arXiv:2611.04331

Warpline: Binary-Level Tracing and Unified Evidence for Agentic GPU Kernel Optimization

Junyu Yin, Vinod Grover, Keren Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 INTRODUCTION

Developing high-performance tensor-core GPU kernels requires managing increasingly complex execution schedules (Soi et al., 2026). Mechanisms such as warp specialization (Bauer et al., 2011; Chen et al., 2026), software pipelining (Huang et al., 2023), and asynchronous data movement and computation (NVIDIA, 2026c; Shah et al., 2024) enable greater overlap across warps and hardware units, but require coupled decisions about work partitioning, synchronization, buffering, and resource allocation. Coding agents (Anthropic, 2026; OpenAI, 2025) can help explore this design space (Ouyang et al., 2025; NVIDIA, 2026j), but need rich performance context and optimization guidance (Cheng et al., 2026; Gai et al., 2026). Without them, agents may waste their budget on changes that do not address the bottleneck (Ran et al., 2026). Hardware profilers (NVIDIA, 2026k;1) and intra-kernel tracers (Zhou et al., 2026; NVIDIA, 2026i; Huang & Wu, 2025) provide detailed but isolated views of kernel execution (Figure 1). Using these observations together in an automated optimization

loop presents three challenges.

Low-overhead, high-fidelity intra-kernel tracing. A useful trace should represent the kernel's uninstrumented execution. Yet every probe executes extra instructions to read the clock and store a record, and these instructions compete with the kernel for hardware resources. Probes inserted into source code or IR (Guan et al., 2025; Triton Developers, 2026a) also participate in compilation and can change register allocation and instruction scheduling. The resulting trace may therefore describe an altered implementation rather than the original kernel (Huang et al., 2026). Effective intra-kernel tracing must minimize recording overhead while preserving the original kernel's execution behavior.

Integrating isolated evidence. Intra-kernel tracers show which operations each warp executes and when, while hardware profilers report aggregate metrics and hardware activity over time. These measurements come from separate runs, so aligning them on a unified timeline requires comparable execution across runs. Tracing must therefore add little overhead and preserve the original kernel's behavior. Connecting the two views also requires understanding the program logic to associate hardware activity with specific phases of each warp's execution. These connections help agents distinguish different causes of low utilization and

¹George Mason University ²NVIDIA. Correspondence to: Keren Zhou kzhou6@gmu.edu.

Preprint.

Figure

Figure 1. WARPLINE versus standard practice on the Llama-3.1-8B MLP up-projection GEMM in Triton. (1) Tracing with Proton changes 75% of the original SASS instructions and adds 111% more, with 13.7% tracing overhead; WARPLINE changes only 1%, adds 24%, and incurs 1.2% overhead. (2) Hardware profiles, traces, and code expose resource activity, execution timing, and program logic separately; WARPLINE's unified timeline shows tensor-core utilization dips coinciding with MMA idling at each CTA switch, and its kernel summary provides an overview. (3) Standard practice can automate profiling but leaves instrumentation to experts; WARPLINE automates instrumentation as well as profiling, so the agent receives comprehensive evidence in every round.

choose the right optimization target.

Keeping the optimization loop automatic. As agents revise kernel implementations, performance evidence must remain both current and accessible. Source-level probes are tied to the implementation's details, so structural rewrites may require an agent to inspect the new code and reposition probes. The unified timeline contains millions of execution events with hardware activity sampled over time. An image cannot expose this event-level detail, while reading the entire trace table is inefficient. Diagnosing a slowdown requires inspecting specific operations, following their dependencies, and checking hardware activity over the relevant interval. A fully automatic workflow therefore requires both instrumentation that adapts to code changes and queryable access to the resulting evidence.

We present WARPLINE, a fully automated framework that provides comprehensive performance evidence for agentic optimization of tensor-core GPU kernels. WARPLINE traces kernels at the binary level. It combines static and dynamic binary analysis to identify semantic events and inserts probes without source annotations or recompilation. The probes keep the original instruction order, and their recording, register use, and scheduling are planned together to limit overhead. Working on the binary also lets it support multiple programming languages and observe compatible closed-source kernels. WARPLINE then connects the traced

events with hardware measurements and program logic in a unified timeline and a kernel summary. Our skill package (Agent Skills, 2026) guides a coding agent to inspect this evidence and implement optimizations at the source, IR, or PTX (NVIDIA, 2026n) level. An evaluator checks each candidate for correctness and performance, and every accepted kernel is traced again for the next round.

We evaluate our tracer on 35 kernels in Triton (Tillet et al., 2019), CuTe DSL (NVIDIA, 2026f), and CUDA C++ (NVIDIA, 2026d), plus three closed-source kernels, on NVIDIA B200 (NVIDIA, 2026b). Across the open-source kernels, it incurs 1.2% median tracing overhead and preserves a median 99.9% of the original instructions. On 10 SOL-ExecBench (Lin et al., 2026) problems, WARPLINE maintains a lead throughout optimization at lower cost. Its final kernels are 1.11× faster than a bare coding agent's and 1.25× faster than KDA's, in geometric mean. It also improves three production kernels by 1.22–1.58×. Case studies show how WARPLINE uncovers hidden bottlenecks and translates the findings into code changes.

This paper makes three contributions:

  • An automatic tracer that uses binary analysis to identify semantic events and inserts low-overhead probes while preserving execution behavior, supporting multiple programming frontends and closed-source kernels.

Figure

Figure 2. Overview of WARPLINE. Each box is numbered by the subsection and grey marks the existing hardware profiler. An accepted candidate becomes the next round's kernel binary.

  • A comprehensive evidence interface that combines intra-kernel events, hardware measurements, and program logic in a unified timeline and kernel summary, with a query API for targeted analysis.

  • An automated optimization harness that regenerates evidence as kernels evolve and uses a dedicated skill package to guide agents in interpreting evidence, editing source code, IR, or PTX, and evaluating candidates.

References (42)