Metraipolis › archive › dc_9e3b79a4bdb1

Xtrace: High-Fidelity GPU Intra-Kernel Tracing via Binary-Level Instruction Splicing — arXiv:2609.28769

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.28769
License (as archived)
CC0-1.0
Archived
2026-10-08T04:51:03.304Z
SHA-256 of the archived text
6ac4085374f4beb5bec0ae45e316ea9b324f9b200a556d6775e4aca4893c1539
Stable URL of this page
https://metraipolis.com/documento/dc_9e3b79a4bdb1

How to cite

Xtrace: High-Fidelity GPU Intra-Kernel Tracing via Binary-Level Instruction Splicing — arXiv:2609.28769 — arXiv (en), https://arxiv.org/abs/2609.28769 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9e3b79a4bdb1 (Metraipolis archive dc_9e3b79a4bdb1, sha256 6ac4085374f4beb5bec0ae45e316ea9b324f9b200a556d6775e4aca4893c1539)
BibTeX
@misc{dc9e3b79a4bdb1,
  title = {Xtrace: High-Fidelity GPU Intra-Kernel Tracing via Binary-Level Instruction Splicing — arXiv:2609.28769},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.28769},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9e3b79a4bdb1; sha256 6ac4085374f4beb5bec0ae45e316ea9b324f9b200a556d6775e4aca4893c1539},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.28769. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Modern GPU kernels fuse increasingly more work into a single kernel, and intra-kernel tracing has become the mainstream method to profile them. Tracing inserts probes into the kernel to record its runtime states, and the fidelity of the trace determines the efficiency of performance optimization. Unfortunately, existing tools insert probes before compilation. These tools interfere with the compiler's optimizations, so they trace a different binary from the one the GPU executes. They also add significant runtime overhead. Xtrace is the first GPU kernel tracing system with near-zero compile-time interference and minimized runtime overhead. Xtrace inserts probes directly into the compiled kernel binary. It reuses only the registers that hold dead values at the insertion address and resolves all hazards with the compiler's hazard tables. It further schedules the instruction order, register allocation, and control bits to minimize the runtime overhead the probe introduces. Xtrace supports 19 NVIDIA and AMD GPU architectures, and is publicly available for use at this https URL . We evaluate Xtrace on major production large language model (LLM) kernels against the state-of-the-art tracers Neutrino and IKET from NVIDIA. On H100, B300, and MI300X GPUs, Xtrace preserves 94-98% of the instructions of the kernel, while existing tools preserve only 8-48%. Xtrace adds only 0.9-2.8% overhead, while existing tools add 3.8-75.6%. Xtrace guides a coding agent to reach the same FlashAttention-3 performance with 3.9x fewer iterations than existing traces do. Thanks to our binary-level instrumentation, Xtrace also traces the faster closed-source cuDNN kernel, which guides the agent to lift the open-source FlashAttention-4 by 5.2-13.3% in throughput.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-25 in cs.AR).
Categorie arXiv: Hardware Architecture (cs.AR).
Pagina del lavoro: https://arxiv.org/abs/2609.28769 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T04:28:37.289Z dalla pagina https://arxiv.org/catchup/cs.AR/2026-09-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).