Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs
Lingqi Zhang, Jens Domke, Chen Zhuang, Du Wu, Zhengyang Bai, Mohamed Wahib
Abstract
Coding agents are becoming a part of performance engineering. However, existing evaluations mostly report end-to-end speedups under fixed budgets rather than examining how agents optimize code. In this paper, we evaluate general coding agents on GPU high-performance computing (HPC) kernels. We build Omokage, a sandbox-based inspection framework: it isolates execution, hides ground truth, pairs deterministic verification with LLM-assisted bug reproduction, and analyzes the code and execution traces an agent leaves behind. On NVIDIA B300 GPUs, 28 models across Claude Code, Antigravity, Codex, and OpenCode port 30 PolyBench kernels from serial C to CUDA without a budget limit. We measure attainment against researcher-validated roofline bounds and verify floating-point solutions against a higher-precision reference and integer solutions exactly. Gemini 4 Neon reaches a geometric mean of of the bound and Opus 5.5 reaches , while the best open-weight model, Kimi K3, reaches only . Frontier models exceed the bound through unprompted reduced precision with accuracy recovery, temporal blocking, and algorithm changes. The three flagship models change the algorithm on up to five kernels each. At the time of our tests, Neon is stronger at algorithmic optimizations and Opus 5.5 at kernel optimizations for hardware features. Trace analysis shows that quantitative performance modeling and a hypothesize-implement-verify loop appear consistently together in the four large Claude models and Gemini 4 Neon. However, unlike traditional performance-engineering workflows, most models rarely use a profiler even when enabled, and using one makes kernels faster about as often as slower. Beyond ranking models, our framework and findings can help performance engineers, practitioners, and model developers understand where coding agents succeed and where they still fall short.
Create a lesson
Metadata
- Categories
- cs.DC, cs.LG
Related papers
Joule is FLOP: Optimizing Tensor-Core Kernels Beyond Latency Hiding at the GPU Power Wall
Shared title terminologycs.DCTaowen Liu, Zhiwen Mo, Hongxiang Fan et al.
Making Repeated Variational Circuit Optimization Efficient on GPUs
Shared title terminologycs.DCRunzhe Zhang, Jiaqi Liu, Anbang Wu et al.
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Shared title terminologycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
Robust Binary-Compressed Communication in Distributed Learning and the Optimality of SignSGD
Shared title terminologycs.DCHallison Paz, Arthur Danjou, El Mahdi El Mhamdi
Asymptotically Round- and Communication-Optimal Byzantine Broadcast under a Dishonest Majority from a New Extension Protocol
Shared title terminologycs.DCPierre Civit, Grigorii Emdin, Rachid Guerraoui
Preserving Optimizer Updates When Experts Move in MoE Training
Shared title terminologycs.DCYanming Lai, Yi Qin, Yongxin Hu et al.