计算机科学 > 分布式、并行与集群计算
[提交于 2026年11月29日]
标题:Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $2.0\times$ of the bound and Opus 5.5 reaches $1.6\times$, while the best open-weight model, Kimi K3, reaches only $0.32\times$. 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.
提交历史
来自:Lingqi Zhang[v1] 2026年11月29日 星期日 01:34:14 UTC (1,699 KB)