Manuscript Offprint
arXiv:2610.20673HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills
HPCA Agent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills
Yakup Koray Budanaz*, Lorenzo Paleari*, Marcin Copik*, Alexandru Calotoiu*, Timo Schneider*, Benjamin Chen Ming Choong†, Shriram Chandran*, Lars Hulsbergen*, Levi Widmer*, Torsten Hoefler*
*Department of Computer Science, ETH Zurich, Switzerland
{yakupkoray.budanaz, lorenzo.paleari, marcin.copik, alexandru.calotoiu, timo.schneider, shriram.chandran, lars.hulsbergen, levi.widmer, torsten.hoefler}@inf.ethz.ch
†Institute of High Performance Computing (IHPC), A*STAR, Singapore
benjamin.choong@ihpc.a-star.edu.sg
Abstract—Coding agents are increasingly used to optimize code, but existing benchmarks fix one accelerator, programming model or harness, so they cannot isolate what each component contributes or show whether added skills and tools repay their cost. We present HPCA Agent-Bench with 689 kernels in three tracks: loop-level optimization challenges, kernels extracted from HPC codes, and machine-learning models. The framework specifies each kernel once in NumPy, derives C and Fortran references, accepts submissions through a common C ABI or Python interface, and runs them on CPUs or GPUs, on one or multiple nodes. An external judge checks correctness on hidden fuzzed inputs and times each submission, closing paths agents use to exploit the testing system. We introduce two metrics for reporting results: intervention efficacy measures an intervention, such as adding a tool, through paired runs on speedup, success rate and cost, and weighted token cost reports input, cached-input and output tokens under explicit weights. Agents reach up to speedup over automatic parallelizers, and their optimizations transfer to another machine: 93–99% of answers without device-specific code remain correct, and per-kernel speedups keep a rank correlation of . Across 40 matched setups, interventions significantly change speedup only twice but token cost by up to . Because token weighting decides whether a saving is significant, we state the weights and release every token count as a standard for cost reporting. We provide the first comprehensive, broad and hardened benchmark for the sound evaluation of agentic optimization, with transparent cost metrics.
Index Terms—coding agents, code optimization, benchmarking, high-performance computing, large language models
The benchmarks used to evaluate these agents are narrow and their measurements are contested. Existing benchmarks target one device [8–10], support a restricted set of languages or programming models [11, 12], or cover only one domain, such as ML models, BLAS routines, or Python libraries [11, 13–15]. None spans low-level and parallelism challenges, production HPC code, and ML models (Table I). Reported speedups are often unreliable: a re-evaluation of four benchmarks found that only 6.11% of implementations labeled as performant were significantly faster than their canonical implementations when re-timed over 30 runs [16], replayed reference patches lose their speedup on other machines [17], and agents exploit evaluation loopholes [18] and overfit to exposed tests and static inputs [19, 20] (§V).
HPCA Agent-Bench closes these gaps. An experiment fixes the kernel and the agent's model, language, device, harness, skills and tools; an intervention changes exactly one of them, and we compare speedup and token cost with the unchanged setup ( ). The 689 kernels form three tracks (Table V): loop-level reasoning, isolating classical compiler transformations; scientific computing, with microkernels and proxy applications from production codes and benchmark suites, organized by the thirteen Berkeley dwarfs [27]; and machine learning, with deep-learning operators and models. We contribute the following:
(1) A benchmarking framework for coding agents on kernel optimization with controlled interventions: an external judge grades correctness on hidden fuzzed inputs and times every submission, so agents cannot hard-code answers or report their own times; a speedup counts only when it is statistically significant; a result cache hidden from agents makes grading fast; and runs use fixed container images with isolated execution ( , Appendix B). The framework is released under https://github.com/spcl/HPCA Agent-Bench.
(2) Two metrics: an intervention-efficacy score that attributes changes in success, speedup and token cost to one intervention, and a weighted token cost over input,
| Benchmark | Low-level / Parallelism Reasoning | HPC Proxy-Apps | Language-Agnostic (Shared ABI) | Multi-Node | CPU | GPU | Baselines |
|---|---|---|---|---|---|---|---|
| HPCAgent-Bench (this work) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | U, F |
| ParEval [12] | ✕ | ✕ | ✓* | ✓ | ✓ | ✓ | U |
| AlgoTune [15] | ✕ | ✕ | ✕ | ✕ | ✓ | ✕ | F |
| KernelBench [11] | ✕ | ✕ | ✓* | ✕ | ✕ | ✓ | F |
| TritonBench [8] | ✕ | ✕ | ✕ | ✕ | ✕ | ✓ | E, F |
| MultiKernelBench [21] | ✕ | ✕ | ✓* | ✕ | ✕ | ✓ | F |
| robust-kbench [18] | ✕ | ✕ | ✕ | ✕ | ✕ | ✓ | F |
| PCEBench [10] | ✕ | ✕ | ✕ | ✕ | ✓ | ✕ | U |
| SWE-Perf [14] | ✕ | ✕ | ✕ | ✕ | ✓ | ✕ | U, E |
| SWE-efficiency [22] | ✕ | ✕ | ✓* | ✕ | ✓ | ✕ | U, E |
| GSO [20] | ✓ | ✕ | ✓* | ✕ | ✓ | ✕ | U, E |
| KernelGenBench [13] | ✕ | ✕ | ✕ | ✕ | ✕ | ✓ | E, F |
| CUDAHercules [23] | ✕ | ✓ | ✕ | ✕ | ✕ | ✓ | E, F |
| PerfCodeBench [24] | ✕ | ✕ | ✕ | ✕ | ✓ | ✓ | U, E |
| FormulaCode [25] | ✕ | ✕ | ✕ | ✕ | ✓ | ✕ | U, E |
| CommBench [26] | ✓ | ✕ | ✕ | ✓ | ✕ | ✓ | E |
| PTXBench [9] | ✓ | ✕ | ✕ | ✕ | ✕ | ✓ | F |
TABLE I. Capabilities of agentic code-optimization benchmarks (definitions in Appendix A). *: several languages, no shared ABI. Baselines: U sequential, F library-optimizd, E expert-written.
cached-input and output tokens that covers the cost conventions of prior work (§III).
(3) A corpus of 689 kernels that combines HPC proxy applications, loop-level reasoning challenges, and ML models, unified under one ABI for both CPU and GPU execution (Table I).
(4) An evaluation of the framework across eight interventions, three open-weight models, two devices and a second machine (§IV).
II. DESIGN
The rest of this section follows Figure 1. From each kernel's NumPy specification the framework generates the C and Fortran references, the language bindings and the prompt. An episode has one prompt, and its answer is one artifact: a shared library exporting the kernel's C-ABI symbol, a source file, or a Python binding. Containers run under any runtime compliant with the Open Container Initiative (OCI), Docker by default (Appendix B).
A. What a run declares
Per kernel: Each kernel comes with a manifest, a YAML file that lists its size parameters, its input and output arrays, and its difficulty level, plus optional tuning knobs. Per run: A run's config.yaml selects the kernels and fixes the language mode (e.g., C or any), the submission mode (§II-B), the floating-point precision, the array residency (host or device) and the optimizer: an LLM agent with its harness, skills and tools, or a framework such as Pluto. Residency sets the timing boundary. A device run receives device pointers, so host-device transfers stay outside the timed sample, and the judge synchronizes before it records a runtime (Appendix B).
Scaling. The framework supports strong- and weak-scaling experiments over the number of processing elements (PEs) , on one node or several. Weak scaling grows the manifest's declared sizes with so each PE keeps the base work, while strong scaling keeps total work constant (Appendix E).
B. Inputs, secrecy, and verification
Inputs. Each input draw takes the kernel's sizes from its declared range under the manifest's constraints and cycles the array contents through uniform, normal and lognormal distributions, sizes and contents both drawn from one seed: the secret score seed for the score tool and the secret submission seed for the final grade. A kernel defined only on constrained inputs (such as one requiring positive-definite matrices) declares a value domain or a custom initialize function.
Fuzzing and secrecy. Correctness is evaluated on fuzzed inputs generated from two independent secret seeds. The /score tool evaluates a candidate using inputs generated from the secret score seed, while /submit evaluates the answer using inputs from the secret submission seed. This prevents the agent from optimizing specifically for the inputs it has already observed.
Submission modes. A run fixes how often an agent may call each route: open-submission (unlimited scores and submissions), single-submission (unlimited scores, one submission) or blind (no scores, one submission). We recommend single-submission for comparing optimizers.
Numerical agreement. Correctness is all-or-nothing. Integer and boolean outputs must match exactly; a floating-point output must satisfy elementwise, with rtol and atol fixed per precision. An optimization may reorder a sum and change its rounding, so atol is raised to at least : for a sum of terms into one output element ( for elementwise kernels), independent signed rounding errors grow as with high probability, not [28],

Fig. 1. Overview of HPCAgent-Bench. Selectors, fields of the run's configuration, fix the optimizer, the tasks and the agent with its skills and tools. The orchestrator, the part of the framework that schedules episodes, runs one agent per task. The agents can check speedup and validity of candidates with the judge.
where is the machine epsilon of the precision the sum accumulates in [29] (Appendix B).
C. Corpus sources
The corpus holds the three tracks (Table V). Loop-Level Reasoning (LLR) challenges descend from the Test Suite for Vectorizing Compilers, TSVC-2 [30, 31], modernized and extended with adversarial variants. Scientific Computing (SC) kernels are extracted from production codes in weather and climate [32–34], electronic structure [35–38], plasma physics and fusion energy [39, 40], computational seismology [41, 42] and molecular dynamics [43, 44], and from HPC proxy applications and benchmark suites [45–48]; we organize them by the thirteen Berkeley dwarfs [27]. Machine Learning (ML) models range from deep-learning primitives to full networks, mainly adapted from KernelBench [11]. No existing benchmark provides comparable breadth across kernel types and application domains (Table I, Table VI).
III. SCORING
Speedup score. An answer to task is graded for correctness on a broad set of fuzzed inputs and timed against its baseline on inputs that differ in size and, where the kernel has control-flow flags, in flag setting. A task is solved if every graded input is correct. On each input, the baseline and the answer run once as a warmup and then times, so an answer cannot hardcode or overfit to one input (IV-B). On input , the speedup is the baseline's median runtime divided by the answer's. It is credited if a one-sided Mann–Whitney test in the direction of the medians gives , with , so a confirmed slowdown is credited below 1; it is 1 otherwise. The task score is , the geometric mean of its speedups ,
has no ceiling. An unsolved task has no score. A benchmark run over tasks with solved set reports the success rate and the speedup score . We compare runtimes with a rank test because they are rarely normal, and a rank test assumes no distribution [49]. Appendix B gives the timing protocol.
Scaling score. A scaling experiment runs an answer on P PEs and scores its parallel efficiency against , the runtime of the task's baseline on one PE at the base problem (e.g., PyTorch on one GPU for the ML models), where is the answer's runtime on P PEs:
where is the grown problem's work in units of the base problem's (P for exact growth). is thus the speedup over the baseline divided by P: 1 matches ideal scaling of the baseline, and above 1 the answer beats the baseline per PE. We anchor at the baseline, not at the answer's own single-PE run , since slow code scales well. A PE count enters only if both runs are correct.
Intervention efficacy score. An intervention adds something to an agent’s setup or removes it, such as a skill, a tool or a new prompt framing. We run the agent without it (before) and with it (after) on the same kernels K, and let be the kernels both runs solve. Three ratios measure the effect: the success ratio compares the success rates R, the speedup ratio compares the scores over , and the cost ratio compares the token costs over . Each is 1 for no effect and above 1 for an improvement:
uses only B, since an unsolved kernel has no speedup. keeps every kernel, since a failed task still spends tokens. Alongside we report g and l, the numbers of kernels solved only after and only before the intervention.
| Experiment | Kernels | Languages (device) | Models | Tokens | Agent time |
|---|---|---|---|---|---|
| LLR-Focus40 | 40 LLR (Focus40) | C, Fortran (CPU); HIP, Triton, OpenMP target offloading (GPU) | Q, K, O | 12M | 4 h |
| LLR-Focus40 Blind | the same 40 | C, Fortran (CPU); HIP (GPU; Q, O) | Q, K, O | 12M | 4 h |
| Git-SciComp | 10 SC (5 in SciComp35) | C (CPU) | Q, K, O | 60M | 20 h |
| SciComp35 | 35 SC | C (CPU) | Q, K, O | 60M | 20 h |
| Harness20 | 14 SC, 6 LLR | C (CPU) | Q, O | 12M | 4 h |
| MLScale | 19 distributed ML models | HIP with RCCL (1–16 GPUs, 4 nodes) | Q, K, O | 24M | 6 h |
TABLE II. Experiments. Focus40: the 40-kernel LLR focus set; Q, K, O: Qwen3.8-27B, Kimi-K2.7, OSS-120B. Tokens and agent time are per-episode limits; an episode stopped by either is rerun once with 2–4× the limit (Appendix A); exceptions in Table XIII.
Token cost. Prior work accounts for token cost in incompatible ways (§V); we represent these conventions with a single weighted sum. From the agent's transcript we read three components: input , the prompt tokens not in the previous request; cached input , the prompt tokens that were, all assumed served from the cache; and output , thinking tokens included. A weight vector gives the cost
We use three weightings: billed, (our default), which charges cached input at a tenth of the input rate, as major providers do [50, 51]; effective, , which counts every context token once; and total, , which charges every prompt in full on every turn.
IV. EVALUATION
A benchmark for agentic optimization should be valid, portable, controlled, general and transparent. We evaluate HPCAgent-Bench against these five properties from the view of a user who wants to measure what an agent can optimize. Validity: can a reported speedup be trusted (§IV-B)? Portability: does it hold on another machine (§IV-C)? Control: does a change to the agent's setup change what it achieves (§IV-D)? Generality: does the benchmark extend past single-device kernels, to accelerators and distributed computing (§IV-E)? Transparency: can a result be traced to the code behind it (§IV-F)?
A. Experimental setup
Setups. Single-node grades run on one AMD Instinct MI300A APU; MLScale uses 16 GPUs on four nodes. LLR-Focus40, Git-SciComp and Harness20 run open-submission; SciComp35 and MLScale, single-submission. A setup fixes model (Qwen3.8-27B, Kimi-K2.7, OSS-120B), language, device, skill packets and harness (Claude Code by default). Cost uses the billed weights . We report geometric means with 95% log-t intervals and call an effect significant at Benjamini–Hochberg within each panel (§III, Appendix E); baselines are in Appendix A.
Noise across runs. Repeated runs of the same agent, model and prompt return different programs. We ran three kernels 20 times per model at sampling temperature 0 and at the default 1 (Figure 2). On kmp at temperature 1, Qwen3.8-27B submits four implementations (Table III): the textbook KMP loop (failure links followed one symbol at a time), a branch-free automaton (one table read per symbol), a multi-symbol lookup (one read per 8–16 symbols) and bit-packed AVX-512 matching (64 symbols per word, counted with popcount); five of its runs also split the text across threads. Its speedups span 0.51–100×, while OSS-120B stops at the branch-free automaton in 13 of 20 runs. Temperature 0 narrows the spread to 1.8–11×, since only two of its runs use threads, but does not remove it. One run of one kernel is thus a single sample of the agent, so a benchmark must average over enough kernels or enough repetitions: our main experiments use forty loop-level and thirty-five scientific-computing kernels, and this study repeats three kernels.

Fig. 2. Twenty independent runs per model of three kernels under one setup, at sampling temperature 0 and at the default temperature 1. Rows: speedup of each run's graded submission (box: median and quartiles; whiskers: minimum to maximum), billed token cost per run, and tasks completed.
| Implemented optimization | Qwen3.8-27B | OSS-120B | ||
|---|---|---|---|---|
| Runs | Median | Runs | Median | |
| Textbook KMP | 5 | 6 | ||
| Brute-force compare + threads | 0 | - | 1 | |
| Branch-free automaton | 3 | 13 | ||
| Multi-symbol lookup | 4 | 0 | - | |
| Multi-symbol lookup + threads | 4 | 0 | - | |
| Bit-packed SIMD | 3 | 0 | - | |
| Bit-packed SIMD + threads | 1 | 0 | - | |
TABLE III. kmp at temperature 1: the optimization each of the 20 final submissions per model implements, and its median speedup over the best of Numba and C. + threads: the scan is split across OpenMP or pthread workers.
B. Validity: speedups you can trust i) LLR CPU
ii) LLR GPU
iii) Perf. Toolkit

Fig. 3. What the agent is given: (i) the Language skill packet and the CPF on the CPU, with Pluto; (ii) the Language skill packet on the GPU, with PPCG; (iii) the performance toolkit (SciComp35, single-submission). 95% log-t intervals; Benjamini–Hochberg within each panel, q < 0.05.
for i in [K:N]: a[i] = 0.75*a[i-K] + b[i]*c[i] (a) Baseline
if K == 0: # independent doall i in [0:N]: a[i] = 0.75*a[i]+b[i]c[i] else: # K chains doall r in [0:K]: @scan(a, 0.75) for i in [r+K:N:K]: a[i] = 0.75a[i-K]+b[i]*c[i] (b) Reference answer
Fig. 4. Runtime-distance recurrence: baseline and reference answer. doall: parallel loop; @scan: the loop is a scan.
A valid benchmark reports speedups an agent cannot inflate, and HPCA Agent-Bench is hardened by design to detect cheating. Timed repetitions cycle through multiple seeded input draws, so a result cached from the previous call fails the check, and the final grade draws its inputs from a separate secret submission seed, not the secret score seed that the score tool uses. The score tool returns only a speedup, never the program's output. The sandbox exposes only the device a task targets. A roofline and an implausibility bound flag speedups the hardware cannot deliver, and a static source check flags code that sleeps, reads timers, does file I/O or loads code at run time (e.g., through dlopen). Flagged answers go to manual inspection (54 of 10,633 graded answers); we discuss what it found below. Each guard is needed: when we softened the protocol, agents used the opening. With fixed inputs, for example, a Qwen3.8-27B answer for TSVC s311 scores by caching its result keyed on the input pointer and a few sampled elements; on new input draws its speedup is . The cases below show two more attempts and the guard that stopped each.
Accessing a GPU in CPU tests. With the GPU visible to CPU tests, two C programs dlopened the HIP runtime, loaded an embedded code object for the MI300A GPU target, and ran it on the input arrays; on MI300A the CPU and GPU share one HBM pool, so the GPU reads the host's buffers without a copy. The device check flagged both. Without this check, GPU code submitted to a CPU experiment would count as a CPU speedup.
Reading the graded inputs through the timer.
versioned_distance_update (Figure 4a) updates from , so the loop splits into independent chains, each a linear recurrence; the judge times one binary at several values of and a secret size LEN_1D. needs no ordering, is one chain parallel only by a scan, and large fills the machine with multiple scan chains. Kimi-K2.7's answer runs the chains in parallel with a tiled scan inside each (Figure 4b) and reaches . One Qwen3.8-27B episode tried to learn and the size: since the score tool returns only a speedup, it sent code that sleeps for a time computed from them, to read both from the reported speedup. The probes gained nothing: the final grade uses a second secret seed. The episode's final answer scored about . The attempt required understanding that decides the loop's structure and that running time could carry hidden values out.
C. Portability: optimizations across machines
A portable result holds on hardware the agent never saw. Every final LLR answer is graded again on a second machine; here a GH200 (72 Grace cores, one H100; HIP through its CUDA backend) against the Numba baseline timed there i) Git vs. Kernel

ii) Harness20
iii) LLR Blind
OpenHands mini-SWE-agent
Qwen3.8-27B
Git Reformulation
Terse
Control
OSS-120B
AutoKernel
mini-SWE-agent
*, + Significant: Speedup, Cost
Kimi-K2.7
OpenHands
Blind Submission
Fig. 5. How the agent is run: (i) the kernel posed as a git repository (Git-SciComp); (ii) harnesses against Claude Code (Harness20); (iii) blind against open-submission (LLR). As Figure 3.
| Skipped | Correct | Gain | ||
|---|---|---|---|---|
| C | 29% | 99% | 0.96 | 1.61× |
| Fortran | 0% | 93% | 0.92 | 1.40× |
| HIP | 25% | 95% | 0.84 | 1.16× |
| Triton | 4% | 98% | 0.95 | 1.09× |
TABLE IV. GH200 against MI300A.
Skipped: answers with device-specific code; Correct: share of the rest correct on GH200; : Spearman rank correlation of per-kernel speedups; Gain: change of the geometric-mean speedup.
(Table IV). Agents specialize to the device they are given: 29% of the C answers use x86 intrinsics and 25% of the HIP answers AMD-only features, and we skip these as not portable. The rest keep their standing: 93–99% stay correct, per-kernel speedups rank alike (Spearman rank correlation ), and C gains 1.6× because the answers scale to 72 cores better than Numba does. The best answer on MI300A is also the best on GH200 for 42% of kernels and languages, and reaches at least 90% of the best GH200 speedup for 82% (median 99%): tuning on one machine rarely costs much on the other.
D. Control: one intervention at a time
A controlled comparison changes one part of the setup and keeps the rest fixed. HPCAgent-Bench provides eight such interventions (Table XII), including skill packets and harnesses; for example, Terse keeps every agent message brief, and the CPF intervention rewrites the input code into a maximally parallel form [52]. Below, we report what each changes in success, speed and cost.
Skill packets rarely change speed. The Language skill packet shows no significant speedup change after correction on either device (Figure 3, i–ii) or in blind setups, except OSS-120B in C ( ); on the GPU it raises OSS-120B's cost on HIP and on OpenMP target offloading ( , 0.51), and Qwen3.8-27B's on OpenMP target offloading ( ). The performance toolkit changes neither speedup nor cost on the 35 SC kernels (Figure 3, iii).
The CPF helps the smaller models. With the CPF as its source (Figure 3, i), Qwen3.8-27B spends half the billed tokens ( ) at an unchanged speedup and OSS-120B gains speed ( ) at an unchanged cost ( ), while Kimi-K2.7, the largest model, shows no change. Terse, which asks the agent to keep every message brief, changes neither speedup nor billed cost significantly in any of its five setups, but solves 2–5 fewer kernels in each (Figures 3 and 5).
Feedback decides success and speed. Withdrawing the score tool (blind, Figure 5, iii) lowers the speedup significantly in 3 of 8 setups (Kimi-K2.7 in C , OSS-120B in C and in Fortran ) and leaves the rest within noise (). Fewer kernels pass: on HIP, Qwen3.8-27B solves 31 instead of 39 and OSS-120B 29 instead of 39, and on the CPU up to nine fewer (Qwen3.8-27B in Fortran).
Give the agent the kernel, not the repository. Posing a kernel as a git repository with an issue, the SWE-bench format, changes nothing measurable (Figure 5, i; kernels in Table IX): every setup solves all ten kernels, speedup ratios are against the bare kernel, none significant, and cost shows no significant change (). HPCAgent-Bench therefore poses a task in a minimal form: one prompt, one input (the kernel's source and the framework's driver that times it) and one requested output, the optimized source.
Harnesses on equal terms. A harness is one more intervention, so HPCAgent-Bench compares harnesses on equal terms: same model, kernels, budget and judge. On Harness20, no harness changes the speedup (Figure 5, ii),

GPUs P
-- Ideal Scaling of the PyTorch Baseline
PyTorch Distributed (n=19)
Qwen3.8-27B, No Skill Packet (n=15)
Qwen3.8-27B, RCCL Hints (n=5)
OSS-120B, No Skill Packet (n=14)
OSS-120B, RCCL Hints (n=3)
Kimi-K2.7, No Skill Packet (n=16)
Fig. 6. Speedup over PyTorch on one GPU for 1–16 GPUs on four nodes, per model and as the geometric mean over each series' solved models. Dashed: PyTorch with ideal scaling.

Fig. 7. Cost ratio under each weighting w (above : cheaper), 95% log-t intervals.
while OpenHands [53] cuts Qwen3.8-27B's billed tokens and mini-SWE-agent cuts OSS-120B's . Optimization-specific add-ons change how an agent spends tokens more than what it achieves: AutoKernel [54], an add-on to Claude Code, triples OSS-120B's score calls (5.4 vs. 1.8 per task) and raises its cost , while its speedup stays within noise.
Cost anyone can recompute. We release every token component and state the weighting; the weighting alone changes a cost effect up to threefold (Figure 7). OpenHands saves Qwen3.8-27B nothing by effective cost ( ) but by total cost, because extra turns resend cached context that only some weightings charge. We do not report dollar cost: list prices differ across providers and change over time, while token counts do not.
E. Generality: accelerators and distributed computing
A general benchmark runs the same kernels in several languages and on several devices, and extends past single-node HPC. On the same kernels, we grade C and Fortran on the CPU, HIP, Triton and OpenMP target offloading on the GPU, and distributed HIP over RCCL on up to 16 GPUs across four nodes, with Pluto and PPCG as compiler comparators. Lower-level GPU code beats directives: HIP answers are faster than OpenMP target offloading answers for every model (speedup over the CPU Numba baseline: 54.5 vs. 38.7× for Qwen3.8-27B, 55.6 vs. 32.3× for Kimi-K2.7, 21.6 vs. 16.6× for OSS-120B) at similar solved counts (37–40). Pluto solves 32 of 40 kernels at 1.55× over Numba and PPCG 16 at 9.2×; on the kernels each compiles, agents are 2.9–4.2× faster than Pluto and 1.8–3.4× faster than PPCG.
Multi-node ML. The ML track asks for distributed models over RCCL (Appendix E) and grades each answer on 1 to 16 GPUs across four nodes, weak and strong, against PyTorch on one GPU and PyTorch's own distributed version (Figure 6); few benchmarks time agents across nodes at all. Agents write distributed code that scales: over the models each solved, Qwen3.8-27B reaches single-GPU PyTorch on 16 GPUs and Kimi-K2.7 , above PyTorch distributed at , while OSS-120B stays below . On the MoE router (top-1 routing with expert capacity), for example, Qwen3.8-27B fuses softmax, argmax and the capacity count into one pass and runs faster than PyTorch on 16 GPUs.
F. Transparency: inspectable answers
A transparent benchmark lets a reader check each speedup against the code behind it. The judge stores every candidate and answer, and the stored histories show that agents do not jump to a fast answer: they refine one in small edits over several candidates.
From parallel search to reading the generator. ext_break_capture returns the first and its index (Figure 8a). The early exit makes the baseline serial; a parallel answer searches chunks concurrently and keeps the smallest index found (b). The input generator, which the agent is given, keeps every element below K except one, planted at a random position in . An agent that reads the generator for i in [0:N]: if a[i] > K: return i, a[i] return -1, -1
(a) Baseline
@reduce(min, first) doall i in [0:N]: if a[i] > K: first = min(first, i)
(b) Parallel
first a[i] > K, band first
i = first_above(a, K, 0.4N, 0.7N) if i < 0: # none: whole array i = first_above(a, K, 0, N)
(c) Band first
Fig. 8. ext_break_capture: the baseline, a parallel answer and the band-first answer. @reduce: the loop is a reduction.
can scan that window first and fall back to the whole array (c), which skips the first 40% of the array and is correct on every input the generator produces. Seven of the nine multicandidate episodes that end window-first begin with a plain parallel search and add the window only in their second to fourth candidate (of two to nine). Across setups, the final answer scans the window first in 7 of 12 for Qwen3.8-27B, 5 of 9 for Kimi-K2.7 and none of 15 for OSS-120B.
V. RELATED WORK
Scope. Agentic code-optimization benchmarks cover GPU kernels [8, 9, 11, 21], on which agents are also trained with reinforcement learning [55], parallel and HPC codes [10, 12, 26], and function- or environment-level tasks [15, 56–58]. Repository-level benchmarks follow SWE-bench [59], which poses GitHub issues in large Python repositories; SWE-Perf, SWE-efficiency and GSO apply this format to performance [14, 20, 22]. Each fixes one programming model, task granularity or hardware target (Table I), and few are maintained after release: of the sixteen benchmarks we survey, five publish versioned releases, eight a Hugging Face dataset.
Measurement. Re-timing four benchmarks over 30 runs shows that few implementations labeled as performant are significantly faster than their references [16], and agents exploit evaluation loopholes [18] and overfit to exposed tests [19, 20]. A replay audit finds that reference patches keep their signal on only 39 of 102 GSO and 11 of 140 SWE-Perf tasks [17]. Several benchmarks expose tests, the reference implementation or its interface during optimization [11, 13, 20], and timing ranges from best-of-turn [9] to instruction counts [57]. KernelGenBench guards against evasion with a syntax-tree scan, a no-op replay of the Triton kernel and, on NVIDIA only, a profiler check [13].
Cost. Many report no model cost [8, 11, 14, 20] or cap it per task [15, 22]. The rest report dollars, at list or hosting prices [25, 60–63] or from billing logs [64], and they weight cached input differently: at the provider's cache rate [65], or 1:2:12 against input and output [66]. Costs from different papers therefore cannot be compared.
VI. Conclusion
Coding agents consistently optimize performance-critical code across a wide range of settings: from loop kernels on CPUs to scientific codes and distributed ML models on GPUs, open-weight models beat automatic parallelizers by up to and write distributed code that scales to multiple nodes. Measuring this reliably takes a benchmark with five properties. It is valid: the judge times new input draws from secret seeds, returns only a speedup, and flags suspicious answers for inspection (54 of 10,633 graded answers), preventing agents from finding tricks. It is portable: each kernel is specified once and runs on every supported platform, and 93–99% of answers without device-specific code stay correct on a second machine. It is controllable: testing a new skill packet, tool or harness is one change to the setup with everything else fixed, and paired statistics report its effect. Of 40 such comparisons, only two change speedup significantly, while making optimization up to cheaper. It is general: the same judge grades CPU, GPU and multi-node code, so an agent is compared on all three. It is transparent: every tested and submitted program is stored, while released observations regenerate every figure, number and cost estimate. Repeated runs of one agent submit different programs, with speedups on one kernel spanning two orders of magnitude, so a result needs enough kernels or enough repetitions. Together, these properties let HPCAgent-Bench answer the practical question behind any new model, tool or skill packet: does it make the agent a better or cheaper optimizer? For the interventions we tested, mostly the latter. HPCAgent-Bench makes the next test one command. HPCAgent-Bench makes agentic optimization measurable end to end: across kernels, architectures, interventions and distributed systems.
AI use statement
In this work, we used generative AI tools to implement methods: as a coding assistant for the benchmark framework, the judge, and the pipeline that extracts the measurements from the judge databases and runs the analysis. We have not used generative AI tools to generate synthetic data, to develop theoretical models or conceptual frameworks, to formulate or prove mathematical claims, to propose or refine hypotheses, to design the research methodology or experiments, to clean or reformat datasets, or to interpret results; translation and qualitative or thematic data analysis are not applicable to this work. Additionally, we used generative AI tools to create and edit code and scientific figures, to search for and summarize related work, to draft parts of the paper from the authors' results and outlines, and to edit it for readability.
The authors reviewed all AI-assisted work. Every cited paper was checked against its source. The authors revised and approved every sentence, and checked every number and claim against the measurement databases. AI-assisted code passed the repository's test suite and the authors' review before any measurement used it. Every number in the paper is computed by the released scripts from the benchmark's own runs, and one command regenerates every figure and table from the released data (Appendix E). We take responsibility for the final content.
of this work, including text, claims and artifacts produced with the aid of generative AI.
Reproducibility statement
HPCAgent-Bench is released under https://github.com/spcl/HPCAgent-Bench. All material is released as one anonymized Zenodo zip (https://doi.org/10.5281/zenodo.22974128) with two folders: hpcagent-bench/, the benchmark at the release tagged paper-experiments, and reproducibility/, the analysis pipeline with every judge observation, the submitted sources of the case studies and every version of the skill packets. From reproducibility/, one command (. /run_all.sh) regenerates every figure, table and number from the released observations without a GPU or model access and checks each output against a recorded checksum; one command per experiment reruns it end to end on a Slurm cluster (Appendix E). Section II and Appendix B specify the protocol: inputs from two secret seeds, timing that cycles through seeded input draws, and the tolerances for numerical agreement. Section III and Appendix E define the metrics and their statistics. Appendix A lists the kernels of every experiment; Table II and Appendix A give the setups, budgets, serving stack and model versions; and Appendix E gives the distributed data layouts. Because the input, cached-input and output tokens of every task are released, any cost can be recomputed under another weighting.
ACKNOWLEDGMENT
This work received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement PSAP No. 101002047 and DGPT No. 101334478). The authors also thank the Swiss National Supercomputing Center (CSCS) for supporting this project.
REFERENCES
[1] J. Ragan-Kelley, C. Barnes, A. Adams, S. Paris, F. Durand, and S. Amarasinghe, “Halide: A language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines,” in Proceedings of the 34th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), 2013, pp. 519–530. [Online]. Available: https://doi.org/10.1145/2491956.2462176
[2] T. Chen, T. Moreau, Z. Jiang, L. Zheng, E. Yan, H. Shen, M. Cowan, L. Wang, Y. Hu, L. Ceze, C. Guestrin, and A. Krishnamurthy, “TVM: An automated End-to-End optimizing compiler for deep learning,” in 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18). Carlsbad, CA: USENIX Association, Oct. 2018, pp. 578–594. [Online]. Available: https://www.usenix.org/conference/osdi18/presentation/chen
[3] T. Ben-Nun, J. de Fine Licht, A. N. Ziogas, T. Schneider, and T. Hoefler, “Stateful dataflow multigraphs: A data-centric model for performance
portability on heterogeneous architectures," in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC), 2019, pp. 1–14. [Online]. Available: https://doi.org/10.1145/3295500.3356173
[4] L. Dagum and R. Menon, “OpenMP: an industry standard API for shared-memory programming,” IEEE Computational Science and Engineering, vol. 5, no. 1, pp. 46–55, 1998.
[5] C. R. Trott, D. Lebrun-Grandié, D. Arndt, J. Ciesko, V. Dang, N. Ellingwood, R. Gayatri, E. Harvey, D. S. Hollman, D. Ibanez, N. Liber, J. Madsen, J. Miles, D. Poliakoff, A. Powell, S. Rajamanickam, M. Simberg, D. Sunderland, B. Turcksin, and J. Wilke, “Kokkos 3: Programming model extensions for the exascale era,” IEEE Transactions on Parallel and Distributed Systems, vol. 33, no. 4, pp. 805–817, 2022. [Online]. Available: https://doi.org/10.1109/TPDS.2021.3097283
[6] A. Shypula, A. Madaan, Y. Zeng, U. Alon, J. Gardner, Y. Yang, M. Hashemi, G. Neubig, P. Ranganathan, O. Bastani, and A. Yazdanbakhsh, “Learning performance-improving code edits,” in International Conference on Learning Representations, B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, Eds., vol. 2024, 2024, pp. 47277–47301. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2024/file/ce65173b994cf7c925c71b482ee14a8d-Paper-Conference.pdf
[7] A. Novikov, N. Vū, M. Eisenberger, E. Dupont, P.-S. Huang, A. Z. Wagner, S. Shirobokov, B. Kozlovskii, F. J. R. Ruiz, A. Mehrabian, M. P. Kumar, A. See, S. Chaudhuri, G. Holland, A. Davies, S. Nowozin, P. Kohli, and M. Balog, “AlphaEvolve: A coding agent for scientific and algorithmic discovery,” arXiv preprint arXiv:2506.13131, 2025. [Online]. Available: https://arxiv.org/abs/2506.13131
[8] J. Li, S. Li, Z. Gao, Q. Shi, Y. Li, Z. Wang, J. Huang, H. Wang, J. Wang, X. Han, Z. Liu, and M. Sun, "TritonBench: Benchmarking large language model capabilities for generating Triton operators," in Findings of the Association for Computational Linguistics: ACL 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar, Eds. Vienna, Austria: Association for Computational Linguistics, Jul. 2025, pp. 23 053–23 066. [Online]. Available: https://aclanthology.org/2025.findings-acl.1183/
[9] G. Zhang, Y. Dong, C. Fan, Z. Zeng, Y. Yuan, S. Zhu, and K. Olukotun, “PTXBench: Benchmark and adapt LLMs for GPU kernel optimization with architecture-specific PTX,” 2026. [Online]. Available: https://arxiv.org/abs/2608.17379
[10] L. Chen, N. Ahmed, M. Capotă, T. Willke, N. Hasabnis, and A. Jannesari, “PCEBench: A multi-dimensional benchmark for evaluating large language models in parallel code generation,” in 2025 IEEE International Parallel and Distributed Processing Symposium (IPDPS). IEEE, 2025, pp. 546–557.
[11] A. Ouyang, S. Guo, S. Arora, A. L. Zhang, W. Hu, C. Re, and A. Mirhoseini, “KernelBench: Can LLMs write efficient GPU kernels?” in Proceedings of the 42nd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, A. Singh, M. Fazel, D. Hsu, S. Lacoste-Julien, F. Berkenkamp, T. Maharaj, K. Wagstaff, and J. Zhu, Eds., vol. 267. PMLR, 13–19 Jul 2025, pp. 47356–47415. [Online]. Available: https://proceedings.mlr.press/v267/ouyang25a.html
[12] D. Nichols, J. H. Davis, Z. Xie, A. Rajaram, and A. Bhatele, “Can large language models write parallel code?” in Proceedings of the 33rd International Symposium on High-Performance Parallel and Distributed Computing, ser. HPDC '24. New York, NY, USA: Association for Computing Machinery, 2024, pp. 281–294. [Online]. Available: https://doi.org/10.1145/3625549.3658689
[13] P. Zang, J. Tao, J. Zhang, Y. Yuan, W. Zhang, G. Liu, and Y. Lin, “KernelGenBench: Can LLMs and agents write efficient kernels across operator sources and hardware platforms?” 2026. [Online]. Available: https://arxiv.org/abs/2607.27231
[14] X. He, Q. Liu, M. Du, L. Yan, Z. Fan, Y. Huang, Y. Zheng, Z. Yuan, and Z. Ma, “SWE-Perf: Can language models optimize code performance on real-world repositories?” in Proceedings of the 43rd International Conference on Machine Learning (ICML 2026), 2026. [Online]. Available: https://arxiv.org/abs/2507.12415
[15] O. Press, B. Amos, H. Zhao, Y. Wu, S. Ainsworth, D. Krupke, P. Kidger, T. Sajed, B. Stellato, J. Park, N. Bosch, E. Meril, A. Steppi, A. Zharmagambetov, F. Zhang, D. Pérez-Piñeiro, A. Mercurio, N. Zhan, T. Abramovich, K. Lieret, H. Zhang, S. Huang, M. Bethge, and O. Press, “AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?” in Advances in Neural Information Processing Systems, D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, Eds., vol. 38, Main Conference. Curran Associates, Inc., 2025, pp. 118982–119027. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2025/file/9a648e8e1014c2427156dcb5465cd488-Paper-Datasets_and_Benchmarks_Track.pdf
[16] N. M. Le, Y. Xu, Z. Wang, and T.-H. Chen, “Rethinking code performance benchmarks for LLMs,” 2026. [Online]. Available: https://arxiv.org/abs/2607.07619
[17] Z. Chen, Z. Sun, Y. Shi, D. Lo, and L. Jiang, "Are performance-optimization benchmarks reliably measuring coding agents?" 2026. [Online]. Available: https://arxiv.org/abs/2607.01211
[18] R. T. Lange, Q. Sun, A. Prasad, M. Faldor, Y. Tang, and D. Ha, “Towards robust agentic CUDA kernel benchmarking, verification, and optimization,” 2025. [Online]. Available: https://arxiv.org/abs/2509.14279
[19] Y. Zhang, P. Yu, J. Wang, M. Fan, J. Reed, A. Mirhoseini, and W. Su, “KernelBench-Verified: Do LLM-generated
kernels actually beat PyTorch?" 2026. [Online]. Available: https://arxiv.org/abs/2607.16241
[20] M. Shetty, N. Jain, J. Liu, V. Kethanaboyina, K. Sen, and I. Stoica, “GSO: Challenging software optimization tasks for evaluating SWE-Agents,” in Advances in Neural Information Processing Systems, D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, Eds., vol. 38, Main Conference. Curran Associates, Inc., 2025. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2025/file/ddd98389004161943e646322a16348c3-Paper-Datasets_and_Benchmarks_Track.pdf
[21] Z. Wen, Y. Zhang, Z. Li, Z. Liu, L. Xie, and T. Zhang, "MultiKernelBench: A multi-platform benchmark for kernel generation," 2025. [Online]. Available: https://arxiv.org/abs/2507.17773
[22] J. J. Ma, M. Hashemi, A. Yazdanbakhsh, K. Swersky, O. Press, E. Li, V. J. Reddi, and P. Ranganathan, "SWE-efficiency: Can language models optimize real-world repositories on real workloads?" in Proceedings of the 43rd International Conference on Machine Learning (ICML 2026), 2026. [Online]. Available: https://arxiv.org/abs/2511.06090
[23] S. Li, Z. Zhang, G. Sun, Y. Luo, W. Chen, Y. Wang, M. Hong, and C. Ding, “CUDAHercules: Benchmarking hardware-aware expert-level CUDA optimization for LLMs,” 2026. [Online]. Available: https://arxiv.org/abs/2605.08467
[24] H. Jing, W. Hu, S. Chen, H. Shi, H. Yang, S. Zhang, H. Li, and Y. Song, “PerfCodeBench: Benchmarking LLMs for system-level high-performance code optimization,” 2026. [Online]. Available: https://arxiv.org/abs/2605.15222
[25] A. Sehgal, J. Hou, A. Sarkar, I. Mantripragada, S. Chaudhuri, J. J. Sun, and Y. Yue, “FormulaCode: Evaluating agentic optimization on large codebases,” in Proceedings of the 43rd International Conference on Machine Learning (ICML 2026), 2026. [Online]. Available: https://arxiv.org/abs/2603.16011
[26] S. Ma, Y. Li, Y. Zhang, H. Xie, D. Chen, S. Ji, Z. Mao, C. Ji, A. Prashanth, W. Yang, Y. Wang, C. Cui, P. Y. Lin, I. Stoica, and Y. Zhou, “CommBench: Can LLMs write correct and efficient GPU communication code?” 2026. [Online]. Available: https://arxiv.org/abs/2608.04450
[27] K. Asanović, R. Bodik, B. C. Catanzaro, J. J. Gebis, P. Husbands, K. Keutzer, D. A. Patterson, W. L. Plishker, J. Shalf, S. W. Williams, and K. A. Yelick, “The landscape of parallel computing research: A view from Berkeley,” EECS Department, University of California, Berkeley, Tech. Rep. UCB/EECS-2006-183, Dec. 2006. [Online]. Available: https://digicoll.lib.berkeley.edu/record/138857
[28] N. J. Higham and T. Mary, “A new approach to probabilistic rounding error analysis,” SIAM Journal on Scientific Computing, vol. 41, no. 5, pp. A2815–A2835, 2019.
[29] P. Blanchard, N. J. Higham, F. Lopez, T. Mary, and S. Pranesh, “Mixed precision block fused multiply-add: Error analysis and application to GPU tensor cores,” SIAM
Journal on Scientific Computing, vol. 42, no. 3, pp. C124–C141, 2020.
[30] D. Callahan, J. J. Dongarra, and D. Levine, “Vectorizing compilers: A test suite and results,” in Proceedings of the 1988 ACM/IEEE Conference on Supercomputing (Supercomputing '88), 1988, pp. 98–105. [Online]. Available: https://doi.org/10.1109/SUPERC.1988.44642
[31] S. Maleki, Y. Gao, M. J. Garzarán, T. Wong, and D. A. Padua, “An evaluation of vectorizing compilers,” in 2011 International Conference on Parallel Architectures and Compilation Techniques (PACT 2011). IEEE Computer Society, 2011, pp. 372–382. [Online]. Available: https://doi.org/10.1109/PACT.2011.68
[32] G. Zängl, D. Reinert, P. Rípodas, and M. Baldauf, “The ICON (ICOSahedral non-hydrostatic) modelling framework of DWD and MPI-M: Description of the non-hydrostatic dynamical core,” Quarterly Journal of the Royal Meteorological Society, vol. 141, no. 687, pp. 563–579, 2015.
[33] W. M. Putman and S.-J. Lin, “Finite-volume transport on various cubed-sphere grids,” Journal of Computational Physics, vol. 227, no. 1, pp. 55–78, 2007. [Online]. Available: https://doi.org/10.1016/j.jcp.2007.07.022
[34] A. Afanasyev, M. Bianco, L. Mosimann, C. Osuna, F. Thaler, H. Vogt, O. Fuhrer, J. VandeVondele, and T. C. Schulthess, “GridTools: A framework for portable weather and climate applications,” SoftwareX, vol. 15, p. 100707, 2021. [Online]. Available: https://doi.org/10.1016/j.softx.2021.100707
[35] P. Giannozzi, S. Baroni, N. Bonini, M. Calandra, R. Car, C. Cavazzoni, D. Ceresoli, G. L. Chiarotti, M. Cococcioni, I. Dabo, A. Dal Corso, S. de Gironcoli, S. Fabris, G. Fratesi, R. Gebauer, U. Gerstmann, C. Gougoussis, A. Kokalj, M. Lazzeri, L. Martin-Samos, N. Marzari, F. Mauri, R. Mazzarello, S. Paolini, A. Pasquarello, L. Paulatto, C. Sbraccia, S. Scandolo, G. Sclauzero, A. P. Seitsonen, A. Smogunov, P. Umari, and R. M. Wentzcovitch, “QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials,” Journal of Physics: Condensed Matter, vol. 21, no. 39, p. 395502, 2009. [Online]. Available: https://doi.org/10.1088/0953-8984/21/39/395502
[36] U. Borštnik, J. VandeVondele, V. Weber, and J. Hutter, "Sparse matrix multiplication: The distributed block-compressed sparse row library," Parallel Computing, vol. 40, no. 5–6, pp. 47–58, 2014. [Online]. Available: https://doi.org/10.1016/j.parco.2014.03.012
[37] L.-W. Wang, B. Lee, H. Shan, Z. Zhao, J. Meza, E. Strohmaier, and D. H. Bailey, “Linearly scaling 3D fragment method for large-scale electronic structure calculations,” in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC). IEEE, 2008, pp. 1–10. [Online]. Available: https://doi.org/10.1109/SC.2008.5218327
[38] M. Luisier, A. Schenk, W. Fichtner, and G. Klimeck,
“Atomistic simulation of nanowires in the tight-binding formalism: From boundary conditions to strain calculations,” Physical Review B, vol. 74, no. 20, p. 205323, 2006. [Online]. Available: https://doi.org/10.1103/PhysRevB.74.205323
[39] A. Myers, A. Almgren, L. D. Amorim, J. Bell, L. Fedeli, L. Ge, K. Gott, D. P. Grote, M. Hogan, A. Huebl, R. Jambunathan, R. Lehe, C. Ng, M. Rowan, O. Shapoval, M. Thévenet, J.-L. Vay, H. Vincenti, E. Yang, N. Zaïm, W. Zhang, Y. Zhao, and E. Zoni, "Porting WarpX to GPU-accelerated platforms," Parallel Computing, vol. 108, p. 102833, 2021. [Online]. Available: https://doi.org/10.1016/j.parco.2021.102833
[40] B. D. Dudson, M. V. Umansky, X. Q. Xu, P. B. Snyder, and H. R. Wilson, “BOUT++: A framework for parallel plasma fluid simulations,” Computer Physics Communications, vol. 180, no. 9, pp. 1467–1480, 2009. [Online]. Available: https://doi.org/10.1016/j.cpc.2009.03.008
[41] C. Uphoff and M. Bader, “Yet another tensor toolbox for discontinuous Galerkin methods and other applications,” ACM Transactions on Mathematical Software, vol. 46, no. 4, pp. 34:1–34:40, 2020. [Online]. Available: https://doi.org/10.1145/3406835
[42] N. A. Petersson and B. Sjögreen, “Wave propagation in anisotropic elastic materials and curvilinear coordinates using a summation-by-parts finite difference method,” Journal of Computational Physics, vol. 299, pp. 820–841, 2015. [Online]. Available: https://doi.org/10.1016/j.jcp.2015.07.023
[43] A. P. Thompson, H. M. Aktulga, R. Berger, D. S. Bolintineanu, W. M. Brown, P. S. Crozier, P. J. in 't Veld, A. Kohlmeyer, S. G. Moore, T. D. Nguyen, R. Shan, M. J. Stevens, J. Tranchida, C. Trott, and S. J. Plimpton, "LAMMPS – a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales," Computer Physics Communications, vol. 271, p. 108171, 2022. [Online]. Available: https://doi.org/10.1016/j.cpc.2021.108171
[44] S. Päll and B. Hess, “A flexible algorithm for calculating pair interactions on SIMD architectures,” Computer Physics Communications, vol. 184, no. 12, pp. 2641–2650, 2013. [Online]. Available: https://doi.org/10.1016/j.cpc.2013.06.003
[45] J. R. Tramm, A. R. Siegel, T. Islam, and M. Schulz, "XSBench – the development and verification of a performance abstraction for Monte Carlo reactor analysis," in PHYSOR 2014 – The Role of Reactor Physics toward a Sustainable Future, Kyoto, Japan, 2014, code at https://github.com/ANL-CESAR/XSBench. [Online]. Available: https://www.mcs.anl.gov/papers/P5064-0114.pdf
[46] I. Karlin, J. Keasler, and R. Neely, “LULESH 2.0 updates and changes,” Lawrence Livermore National Laboratory, Tech. Rep. LLNL-TR-641973, 2013. [Online]. Available: https://www.osti.gov/biblio/1090032
[47] S. Che, M. Boyer, J. Meng, D. Tarjan, J. W. Sheaffer,
S.-H. Lee, and K. Skadron, “Rodinia: A benchmark suite for heterogeneous computing,” in 2009 IEEE International Symposium on Workload Characterization (IISWC). IEEE, 2009, pp. 44–54. [Online]. Available: https://doi.org/10.1109/IISWC.2009.5306797
[48] A. N. Ziogas, T. Ben-Nun, T. Schneider, and T. Hoefler, “NPBench: A benchmarking suite for high-performance NumPy,” in Proceedings of the 35th ACM International Conference on Supercomputing (ICS), 2021, pp. 63–74. [Online]. Available: https://doi.org/10.1145/3447818.3460360
[49] T. Hoefler and R. Belli, “Scientific benchmarking of parallel computing systems: twelve ways to tell the masses when reporting performance results,” in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC'15), 2015, pp. 73:1–73:12.
[50] Anthropic, “Prompt caching,” https://platform.claude.com/docs/en/docs/build-with-claude/prompt-caching, 2026, accessed 2026-09-24.
[51] OpenAI, “Prompt caching,” https://developers.openai.com/api/docs/guides/prompt-caching, 2026, accessed 2026-09-24.
[52] Y. K. Budanaz, P. Mazumder, A. Calotoiu, and T. Hoefler, “The canonical parallel form as a substrate for parallelizing compilers and agentic optimizers,” 2026. [Online]. Available: https://arxiv.org/abs/2609.28724
[53] X. Wang, B. Li, Y. Song, F. F. Xu, X. Tang, M. Zhuge, J. Pan, Y. Song, B. Li, J. Singh, H. Tran, F. Li, R. Ma, M. Zheng, B. Qian, D. Shao, N. Muennighoff, Y. Zhang, B. Hui, J. Lin, R. Brennan, H. Peng, H. Ji, and G. Neubig, “OpenHands: An open platform for AI software developers as generalist agents,” in International Conference on Learning Representations, Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu, Eds., vol. 2025, 2025, pp. 65 882–65 919. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2025/file/a4b6ad6b48850c0c331d1259fc66a69c-Paper-Conference.pdf
[54] J. Jaber and O. Jaber, “AutoKernel: Autonomous GPU kernel optimization via iterative agent-driven search,” 2026. [Online]. Available: https://arxiv.org/abs/2603.21331
[55] W. Dai, H. Wu, Q. Yu, H.-a. Gao, J. Li, C. Jiang, W. Lou, Y. Song, H. Yu, J. Chen, W.-Y. Ma, Y.-Q. Zhang, J. Liu, M. Wang, X. Liu, and H. Zhou, “CUDA agent: Large-scale agentic RL for high-performance CUDA kernel generation,” arXiv preprint arXiv:2602.24286, 2026. [Online]. Available: https://arxiv.org/abs/2602.24286
[56] D. Huang, Y. Qing, W. Shang, H. Cui, and J. Zhang, “Effibench: Benchmarking the efficiency of automatically generated code,” in Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, Eds., vol. 37. Curran Associates, Inc., 2024, pp. 11506–11544. [Online].
[57] J. Liu, S. Xie, J. Wang, Y. Wei, Y. Ding, and L. Zhang, "Evaluating language models for efficient code generation," in First Conference on Language Modeling (COLM), 2024. [Online]. Available: https://arxiv.org/abs/2408.06450
[58] C. Cummins, B. Wasti, J. Guo, B. Cui, J. Ansel, S. Gomez, S. Jain, J. Liu, O. Teytaud, B. Steiner, Y. Tian, and H. Leather, “CompilerGym: Robust, performant compiler optimization environments for AI research,” in Proceedings of the 20th IEEE/ACM International Symposium on Code Generation and Optimization (CGO 2022), 2022, pp. 92–105. [Online]. Available: https://doi.org/10.1109/CGO53902.2022.9741258
[59] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “SWE-bench: Can language models resolve real-world github issues?” in International Conference on Learning Representations, B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, Eds., vol. 2024, 2024, pp. 54 107–54 157. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2024/file/edac78c3e300629acfe6cbe9ca88fb84-Paper-Conference.pdf
[60] J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “SWE-agent: Agent-computer interfaces enable automated software engineering,” in Advances in Neural Information Processing Systems 37 (NeurIPS 2024), vol. 37, 2024, pp. 50 528–50 652.
[61] S. Kapoor, B. Stroebl, P. Kirgis, N. Nadgir, Z. Siegel, B. Wei, T. Xue, Z. Chen, F. Chen, S. Utpala, F. Ndzomga, D. Oruganty, S. Luskin, K. Liu, B. Yu, A. Arora, D. Hahm, H. Trivedi, H. Sun, J. Lee, T. Jin, Y. Mai, Y. Zhou, Y. Zhu, R. Bommasani, D. Kang, D. Song, P. Henderson, Y. Su, P. Liang, and A. Narayanan, “Holistic agent leaderboard: The missing infrastructure for AI agent evaluation,” in International Conference on Learning Representations, C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, Eds., vol. 2026, 2026, pp. 98 778–98 849. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2026/file/a0928f924a344aaebbb7f6cd8d56e34c-Paper-Conference.pdf
[62] M. H. Erol, B. El, M. Suzgun, M. Yuksekgonul, and J. Y. Zou, “Cost-of-Pass: An economic framework for evaluating language models,” in International Conference on Learning Representations, C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, Eds., vol. 2026, 2026, pp. 34 103–34 127. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2026/file/399d54cce01e782192b3d7ecbe607a96-Paper-Conference.pdf
[63] Z. Fan, K. Vasilevski, D. Lin, B. Chen, Y. Chen, Z. Zhong, J. M. Zhang, P. He, and A. E. Hassan, “SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness
Under Resource Constraints," 2025. [Online]. Available: https://arxiv.org/abs/2509.09853
[64] M. Zheng, K. Han, B. Li, H. Xu, Y. Tian, W. He, H. Zhou, J. Guo, H. Hu, L. Ma, C. Xu, G. Dai, L. Xia, Y. Wei, Y. Wang, and Y. Wang, "Claw-SWE-Bench: A Benchmark for Evaluating OpenClaw-style Agent Harnesses on Coding Tasks," 2026. [Online]. Available: https://arxiv.org/abs/2606.12344
[65] Y. Wang, L. Cheng, Y. Zuo, S. Zeng, B. He, C. Jiang, J. Yang, Y. Wang, K. Zhao, W. Huang, K. Tian, Z. Yuan, J. Zhong, W. Wang, N. Ding, B. Zhou, and K. Zhang, "NatureBench: Can coding agents match the published SOTA of nature-family papers?" 2026. [Online]. Available: https://arxiv.org/abs/2606.24530
[66] Z. Yu and L. Yang, “Evolving Ensemble of Agents,” 2026. [Online]. Available: https://arxiv.org/abs/2605.09018
[67] N. Vetsch, A. Maeder, V. Maillou, A. Winka, J. Cao, G. Kwasniewski, L. Deuschle, T. Hoefler, A. N. Ziogas, and M. Luisier, “Ab-initio quantum transport with the GW approximation, 42,240 atoms, and sustained exascale performance,” in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, ser. SC ’25. ACM, Nov. 2025, pp. 1–13.
[68] B. Sjögreen and N. A. Petersson, “A fourth order accurate finite difference scheme for the elastic wave equation in second order formulation,” Journal of Scientific Computing, vol. 52, no. 1, pp. 17–48, 2012.
[69] W. Joubert, D. Weighill, D. Kainer, S. Climer, A. Justice, K. Fagnan, and D. Jacobson, “Attacking the opioid epidemic: Determining the epistatic and pleiotropic genetic architectures for chronic pain and opioid addiction,” in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC). IEEE, 2018, pp. 717–730. [Online]. Available: https://doi.org/10.1109/SC.2018.00060
[70] L. Zheng, L. Yin, Z. Xie, C. Sun, J. Huang, C. H. Yu, S. Cao, C. Kozyrakis, I. Stoica, J. E. Gonzalez, C. Barrett, and Y. Sheng, “SGLang: Efficient execution of structured language model programs,” in Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, Eds., vol. 37. Curran Associates, Inc., 2024, pp. 62 557–62 583. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2024/file/724be4472168f31ba1c9ac630f15dec8-Paper-Conference.pdf
[71] S. Blackford and J. Dongarra, “Installation guide for LAPACK,” University of Tennessee, LAPACK Working Note 41 UT-CS-92-151, 1999, version 3.0, first issued March 1992. [Online]. Available: https://www.netlib.org/lapack/lawnspdf/lawn41.pdf
[72] A. Grama, A. Gupta, and V. Kumar, “Isoefficiency: measuring the scalability of parallel algorithms and architectures,” IEEE Parallel & Distributed Technology: Systems & Applications, vol. 1, no. 3, pp. 12–21, Aug.
- [Online]. Available: http://dx.doi.org/10.1109/88.242438
[73] M. A. Heroux, J. Dongarra, and P. Luszczek, "HPCG benchmark technical specification," Sandia National Laboratories, Tech. Rep. SAND2013-8752, 2013. [Online]. Available: https://www.osti.gov/biblio/1113870
[74] L. S. Blackford, J. Choi, A. Cleary, E. D'Azevedo, J. Demmel, I. Dhillon, J. Dongarra, S. Hammarling, G. Henry, A. Petitet, K. Stanley, D. Walker, and R. C. Whaley, ScaLAPACK Users' Guide. Philadelphia, PA: Society for Industrial and Applied Mathematics, 1997.
[75] K. Zhu, M. Jacob, C. Ma, Y. Pan, S. Wang, A. Krishnamurthy, and B. Kasikci, “TraceLab: Characterizing Coding Agent Workloads for LLM Serving,” 2026. [Online]. Available: https://arxiv.org/abs/2606.30560
[76] E. Lumer, F. Nizar, A. Jangiti, K. Frank, A. Gulati, M. Phadate, and V. K. Subbiah, “Don’t Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks,” 2026. [Online]. Available: https://arxiv.org/abs/2601.06007
APPENDIX
Tables V and VI give the corpus and the applications of its SC kernels, Tables VII to XI the kernels of each experiment in §IV. An extraction takes a single-node compute hotspot and excludes MPI halo exchanges and collectives.
Cells of Table I come from each benchmark’s paper and, where released, its repository. Low-level / parallelism reasoning: tasks built around a low-level optimization or parallelization decision the grade rewards. HPC proxy-apps: multi-kernel code of hundreds to thousands of lines extracted from non-ML production scientific applications, not single operators. Language-agnostic: one problem accepts several languages behind a shared interface. Multi-node: a timed run can span several nodes.
Public release (checked September 2026): five benchmarks publish versioned GitHub releases (GSO, ParEval, SWE-efficiency, KernelGenBench, FormulaCode) and eight a Hugging Face dataset (KernelBench, GSO, AlgoTune, SWE-efficiency, SWE-Perf, TritonBench, FormulaCode, PTXBench).
A. Platform and baselines
Platform. A node holds four MI300A APUs. SGLang [70] serves Qwen3.8-27B (FP8) and Kimi-K2.7 with 262,144-token contexts, vLLM 0.23.0 (0.27.1 under mini-SWE-agent) serves OSS-120B with 131,072.
Baselines. Baselines are Numba for LLR kernels and the fastest of autoparallelized C, sequential C and parallel Numba for SC kernels; Pluto (CPU) and PPCG (HIP) are drawn beside the agents on the LLR track as comparators, not baselines, and the ML track's baseline is PyTorch on one GPU.
LLR-Focus40. GPU answers, arrays device-resident, are timed against the CPU Numba build.
LLR-Focus40 Blind. The same kernels with one submission and no score tool. Figure 5 (iii) pairs each blind setup (C and
| Track | Dwarf / group | L1 | L2 | L3 | Kernels |
|---|---|---|---|---|---|
| LLR | TSVC-2 | 130 | 20 | 0 | 150 |
| outside TSVC-2 (see caption) | 82 | 16 | 0 | 98 | |
| subtotal | 212 | 36 | 0 | 248 | |
| SC | dense_linear_algebra | 11 | 29 | 4 | 44 |
| structured_grids | 11 | 10 | 20 | 41 | |
| sparse_linear_algebra | 1 | 11 | 13 | 25 | |
| map_reduce | 2 | 6 | 6 | 14 | |
| spectral_methods | 0 | 2 | 9 | 11 | |
| n_body_methods | 0 | 2 | 7 | 9 | |
| unstructured_grids | 6 | 0 | 3 | 9 | |
| dynamic_programming | 0 | 5 | 0 | 5 | |
| graphTraversal | 0 | 4 | 0 | 4 | |
| finite_state_machine | 0 | 3 | 0 | 3 | |
| backtrack_branch_bound | 0 | 0 | 2 | 2 | |
| combinational_logic | 0 | 2 | 0 | 2 | |
| graphical_models | 0 | 2 | 0 | 2 | |
| subtotal | 31 | 76 | 64 | 171 | |
| ML | KernelBench | 100 | 100 | 50 | 250 |
| outside KernelBench (see caption) | 6 | 9 | 5 | 20 | |
| subtotal | 106 | 109 | 55 | 270 | |
| Total | 349 | 221 | 119 | 689 |
TABLE V. Corpus at the release freeze: 689 kernels by track, category and level (L1: one primitive; L2: fused, composite or data-dependent; L3: application scale). Beyond TSVC-2, the LLR track adds 74 TSVC-2.5 extensions and 24 adversarial and canonicalization kernels; beyond KernelBench, the ML track adds ten MLScale, five NPBench, three sparse-attention and two Terminal-Bench kernels.
| Source | Dwarf | Extracted kernel(s) | n |
|---|---|---|---|
| ECMWF IFS (dwarf-p-cloudsc) | Structured grid, Dense LA | cloud-microphysics column, tendency initialization, liquid/ice fraction, small-cloud tidy, per-column LU solve | 5 |
| ICON [32] | Structured / unstructured grid | velocity tendencies, half-level edge nest, gather, scatter, zekinh gather, zekinh scatter, zekinh gather-scatter | 7 |
| LS3DF [37] | Dense LA, Map-reduce, Spectral | Kleinman–Bylander projection, Rayleigh–Ritz rotation, patch density, LDA XC potential, SCF stencil | 5 |
| Rodinia 3.1 [47] | Structured grid, N-body, Unstructured grid, Dense LA, Spectral, Dynamic prog., Map-reduce, Graph traversal | HotSpot (2-D, 3-D and upstream), SRAD, lavaMD, unstructured Euler flux, Gaussian elimination, dwt2d, PathFinder, Needleman–Wunsch, k-means, BFS | 12 |
| OMEN / QuaTrEx [38, 67] | Sparse LA, Dense LA | RGF recursion, contour integral, scattering self-energies | 3 |
| BOUT++ [40] | Structured grid | Arakawa bracket, Hasegawa–Wakatani RHS, ELM-PB | 3 |
| WarpX [39] | N-body | Esirkepov current deposition, Boris push, field gather | 3 |
| DBCSR [36] / CP2K | Sparse LA, Structured grid | block SpGEMM, TRS4 purification, grid integrate | 3 |
| Quantum ESPRESSO [35] | Spectral, Dense LA | vexx exact exchange, block-Davidson eigensolver, vloc_psi_k local potential, addusxx_g and newdxx_g augmentation | 5 |
| SeisSol [41] | Dense LA | batched small GEMM, rank-3 tensor contraction | 2 |
| LAMMPS / ExaMiniMD [43] | N-body | ExaMiniMD LJ force, LJ pair force over a full neighbor list | 2 |
| FV3 (PyFV3) [33] | Structured grid | PPM horizontal transport, xppm flux | 2 |
| Halide apps [1] / GridTools [34] | Structured grid, Map-reduce | Harris corner, histogram equalization, hdiff, vadv | 4 |
| GROMACS [44] | N-body | Nbnxm 4×4 cluster-pair nonbonded | 1 |
| XSBench (OpenMC proxy) [45] | Map-reduce | unionized-grid cross-section lookup | 1 |
| LULESH [46] | Unstructured grid | full Lagrange-leapfrog hydro cycle | 1 |
| miniFE | Sparse LA | CSR matvec and CG vector kernels | 1 |
| SW4lite / SW4 [42, 68] | Structured grid | rhs4sg Cartesian elastic RHS | 1 |
| CoMet [69] | Dense LA | 2-bit-encoded comparison GEMM | 1 |
| GraphAIBench | Graph traversal | triangle count | 1 |
| SpBench | Sparse LA | hash SpGEMM | 1 |
TABLE VI. Application and proxy-application sources of 64 of the 689 released kernels, with the hotspots taken from each and their count n. The kernels drawn from TSVC-2, KernelBench and PolyBench are counted in Table V and not repeated here.
Fortran for all three models, HIP for Qwen3.8-27B and OSS-120B) with its open-submission LLR-Focus40 setup.
Git-SciComp. A generated repository holds one naive starting file, a Makefile and a performance issue; the committed starting file is graded. Kernels whose NumPy reference calls BLAS are excluded, as against their C baseline a speedup would measure library linking.
Harness20. Twenty kernels (Table X) in C on the CPU, one
| Kernel | Source | Computes | L | Kernel | Source | Computes | L |
|---|---|---|---|---|---|---|---|
| Loop-carried dependencies | Reductions and scans | ||||||
| s115 | TSVC-2 | 1 | s311 | TSVC-2 | 1 | ||
| s119 | TSVC-2 | 1 | s3111 | TSVC-2 | 1 | ||
| s1244 | TSVC-2 | 1 | s3112 | TSVC-2 | prefix sum | 1 | |
| s252 | TSVC-2 | through a carried temporary | 1 | s316 | TSVC-2 | 1 | |
| s255 | TSVC-2 | 1 | s319 | TSVC-2 | 1 | ||
| s323 | TSVC-2 | 1 | s3110 | TSVC-2 | 2 | ||
| ext_war_unit | TSVC-2.5 | 1 | s318 | TSVC-2 | 2 | ||
| versioned_distance_update | TSVC-2.5 | 2 | argmax_with_index | TSVC-2.5 | 2 | ||
| Loop interchange and distribution | quasi_affine_reduce_odd | TSVC-2.5 | 1 | ||||
| s1232 | TSVC-2 | 1 | scan_affine_decay | TSVC-2.5 | 2 | ||
| s231 | TSVC-2 | 1 | Indirect addressing and packing | ||||
| s2233 | TSVC-2 | two inner loops | 1 | s4112 | TSVC-2 | 1 | |
| s233 | TSVC-2 | two inner loops | 2 | vag | TSVC-2 | 1 | |
| s235 | TSVC-2 | 2 | scatter_accum_dup | TSVC-2.5 | 2 | ||
| s2275 | TSVC-2 | 1 | segment_reduce_ragged | TSVC-2.5 | per CSR segment | 2 | |
| s152 | TSVC-2 | 2 | compact_threshold_pack | TSVC-2.5 | pack where , and count | 2 | |
| Control flow | Fusion and elementwise | ||||||
| s2710 | TSVC-2 | nested branches on and on invariant conditions | 1 | fuse_diamond | TSVC-2.5 | in four loops | 2 |
| s275 | TSVC-2 | if : | 2 | fuse_move_ifs | TSVC-2.5 | 2 | |
| ext_break_capture | TSVC-2.5 | first with , and (varies s332) | 2 | fuse_stencil_through_transient | TSVC-2.5 | then | 2 |
| Wavefronts | vpvtss | TSVC-2 | 1 | ||||
| wf_diff_skew | TSVC-2.5 | 1 | vtvtv | TSVC-2 | 1 | ||
| wf_triangular | TSVC-2.5 | 1 | |||||
TABLE VII. The forty kernels of LLR-Focus40 by the loop pattern they test, with source and level (L): 26 TSVC-2 loops [31] (prefix tsvc_2_dropped) and 14 TSVC-2.5 kernels, the benchmark's extension of TSVC-2. In TSVC-2, -e are 1-D, -cc 2-D and ip an index array; and are run-time scalars.
episode per kernel. Claude Code is the control; the treatments are mini-SWE-agent, OpenHands and AutoKernel, an add-on to Claude Code, on Qwen3.8-27B and OSS-120B.
MLScale. Nineteen bf16 ML models (Table XI) in single-submission mode, graded under strong and weak scaling (Appendix E). Figure 6 shows four of them (MoE Router, SDPA, All-to-All and Vocab Softmax) and the geometric mean over the models each series solved. For Kimi-K2.7 the figure shows the setup without skill packets.
Budgets. Table II gives the base budget per episode. An episode hitting its token or wall-time limit without an answer is rerun and scored once with 2–4× the tokens and up to 4× the wall time.
B. Second platform: GH200
We regrade the LLR answers on a GH200 cluster: one GH200 module per grade (72 Grace cores, one H100), 72 threads per grade, and the parallel Numba baseline re-timed on the same module. HIP builds through HIP's CUDA backend (ROCm 7.2.4 headers with HIP_PLATFORM_NVIDIA). An answer is skipped as not portable, never graded as wrong, when it fails an aarch64 syntax probe with an x86-only construct (intrinsics headers, __mm*, _builtin_ia32*, target attributes), builds only with AMD-only HIP features (rocPRIM or hipCUB, mask-less shuffles, AMD inline assembly, more than 48 KB static shared memory), or uses AMD-specific Triton options, cache hints or runtime calls.
| Kernel | Source | L | Kernel | Source | L |
|---|---|---|---|---|---|
| velocity_tendencies | ICON | 3 | ls3df_scf | LS3DF | 3 |
| vloc_psi_k_acc | Quantum ESPRESSO | 3 | jacobi_2d | PolyBench/C, NPBench | 2 |
| cp2k_grid_integrate | CP2K | 3 | rayleigh_ritz_rotation | LS3DF | 3 |
| cp2k_density_matrix_trs4 | CP2K | 3 | fft_1d | new | 2 |
| vexx_k | Quantum ESPRESSO | 3 | channel_flow | CFD Python, NPBench | 3 |
| fv3_xppm | FV3 | 3 | dwt2d | Rodinia | 2 |
| bout_elm_pb | BOUT++ | 3 | examinimd | ExaMiniMD | 3 |
| lavamd | Rodinia | 3 | nussinov | PolyBench/C, NPBench | 2 |
| warpx_esirkepov_deposition | WarpX | 3 | amg_setup | hypre, PyAMG | 3 |
| gromacs_nbnxm | GROMACS | 3 | seissol_tensor_contraction | SeisSol | 2 |
| bicgstab | new | 2 | cegterg | Quantum ESPRESSO | 3 |
| sw4_rhs4sg | SW4lite | 3 | gemm | PolyBench/C, NPBench | 1 |
| gem | OpenDwarfs | 2 | quatrex_rgf | QuaTrEx | 3 |
| fv3_dycore | FV3 | 3 | seidel_2d | PolyBench/C, NPBench | 1 |
| warpx_boris_push | WarpX | 2 | cloudsc | ECMWF IFS, NPBench | 3 |
| minife | miniFE | 3 | seissol_batched_gemm | SeisSol | 1 |
| fdtd_2d | PolyBench/C, NPBench | 2 | lulesh | LULESH | 3 |
| heat_3d | PolyBench/C, NPBench | 2 |
TABLE VIII. The 35 SC kernels of SciComp35 with their level (L). Source is the code or suite a kernel is ported from, via NPBench where named second; new marks a kernel written for this benchmark. Baseline: a vendored upstream parallel Fortran implementation.

Fig. 9. Per-kernel speedup over Numba on the LLR track, the answers of Figure 3. Geometric means over solved kernels for Qwen3.8-27B, Kimi-K2.7 and OSS-120B: CPU 5.3, 7.5, 4.9×; OpenMP target offloading 38.7, 32.3, 16.6×; HIP 54.5, 55.6, 21.6×.
| Kernel | Source | L |
|---|---|---|
| fv3_dycore | see Table VIII | 3 |
| lda_xc_potential | LS3DF | 3 |
| warpx_boris_push | see Table VIII | 2 |
| fdtd_2d | see Table VIII | 2 |
| heat_3d | see Table VIII | 2 |
| jacobi_2d | see Table VIII | 2 |
| addusxx_g | Quantum ESPRESSO | 2 |
| kmp | new | 2 |
| dfa | new | 2 |
| edge_laplacian | SciPy | 1 |
TABLE IX. The ten kernels of Git-SciComp, by level: five shared with SciComp35 and five used only here. Sources: LS3DF [37] and Quantum ESPRESSO [35]; new marks a kernel written for this benchmark.
Table IV gives the share skipped and the results per language.
C. Secrecy, timing and evasion
Secrecy. Two secret seeds fix the sampling: the secret score seed draws the inputs the score tool uses, and the secret submission seed draws the inputs of the final grade; and an image check asserts that no agent image holds either seed. Agents run unprivileged in private user, mount and PID namespaces and see only their workspace, the kernel and read-only prompt and skill files.
Timed inputs. Timed repetitions cycle through seeded input draws, in one order for both sides; the warmup takes the first draw, so a result cached from the previous call fails the re-check.
Measurement. One thread per physical core and one GPU per grading process; the judge's clock stops after it synchronizes the timed code's device and OpenMP runtimes.
Crediting. A one-sided Mann–Whitney test [49] at in the direction of the medians credits confirmed speedups and confirmed slowdowns alike, and an input it does not confirm is credited ; it sets 215 of 8,764 correct timed inputs to . The score tool runs the same code on one input and reports the fastest of five repetitions.
Plausibility. An input is suspect, and left out of , if its median speedup exceeds (host) or (device), its time is below declared bytes over twice the 5.3 TB/s HBM peak, or a device check fires; an answer whose inputs are all suspect is credited . Section IV-B describes the evasions
| Kernel | Source | L | Kernel | Source | L |
|---|---|---|---|---|---|
| SC | warpx_boris_push | see Table VIII | 2 | ||
| bicgstab | see Table VIII | 2 | gemm | see Table VIII | 1 |
| bout_hasegawa_wakatani | BOUT++ | 2 | seidel_2d | see Table VIII | 1 |
| dwt2d | see Table VIII | 2 | seissol_batched_gemm | see Table VIII | 1 |
| fdtd_2d | see Table VIII | 2 | LLR | ||
| fft_1d | see Table VIII | 2 | s235 | see Table VII | 2 |
| gem | see Table VIII | 2 | argmax_with_index | see Table VII | 2 |
| heat_3d | see Table VIII | 2 | scan_affine_decay | see Table VII | 2 |
| jacobi_2d | see Table VIII | 2 | segment_reduce_ragged | see Table VII | 2 |
| nussinov | see Table VIII | 2 | compact_threshold_pack | see Table VII | 2 |
| seissol_tensor_contraction | see Table VIII | 2 | fuse_stencil_through_transient | see Table VII | 2 |
TABLE X. The twenty kernels of Harness20: fourteen SC kernels (thirteen from SciComp35, plus bout_hasegawa_wakatani from BOUT++ [40]) and six level-2 kernels from LLR-Focus40; 17 at level 2 and 3 at level 1.
| Kernel | Source | Computes | Split | L | |
|---|---|---|---|---|---|
| dist_all_to_all_transpose | new | transpose of a row-split matrix, one all-to-all | rows | 1 | 1 |
| dist_causal_attention | new | causal attentionsoftmax() | sequence | 2 | 1 |
| dist_cross_entropy | KernelBench | per-row cross-entropy loss | classes | 1 | 1 |
| dist_layer_norm | KernelBench | layer normalization over the trailing dimensions | features | 1 | 1 |
| dist_matmul_large_k | KernelBench | with a large inner dimension | 1 | 1 | |
| dist_rmsnorm | new | RMS normalization over the hidden dimension | hidden | 1 | 1 |
| dist_sdpa | KernelBench | non-causal attention softmax() | sequence | 2 | 1 |
| dist_softmax | KernelBench | row softmax | row length | 1 | 1 |
| dist_split_kv_decode | new | one-token decode attention over a long key-value cache | KV length | 1 | 1 |
| dist_sync_batchnorm | new | training-mode batch normalization, per-channel statistics | batch | 1 | 1 |
| dist_vocab_embedding | new | token embedding lookup from a vocabulary-split table | tokens | 1 | 1 |
| dist_adamw_zero | new | one AdamW step with global gradient-norm clipping | parameters | 1 | 2 |
| dist_contrastive_loss | new | per-row contrastive (InfoNCE) loss against every other row | batch | 2 | 2 |
| dist_conv2d_halo | new | convolution with bias | height | 1 | 2 |
| dist_gemm_add_relu | KernelBench | input features | 1 | 2 | |
| dist_gemm_gn_swish | KernelBench | GEMM, GroupNorm, Swish, multiply by a weight, Swish | output features | 1 | 2 |
| dist_matmul_gelu_softmax | KernelBench | row softmax of GELU() | output features | 1 | 2 |
| dist_moe_dispatch | new | top-2 mixture of experts: softmax gate, per expert, gate-weighted sum | tokens, experts | 1 | 2 |
| dist_moe_router | new | top-1 mixture-of-experts routing with expert capacity: softmax, argmax, capacity count | tokens | 1 | 2 |
TABLE XI. The nineteen bf16 models graded in MLScale, by level: eight distributed versions of KernelBench models [11] and eleven new models. Split is the dimension the manifest decomposes over GPUs, and the degree of the work in it (Appendix E). Figure 6 labels dist_moe_router, dist_sdpa, dist_all_to_all_transpose and dist_softmax as MoE Router, SDPA, All-to-All and Vocab Softmax.
| Intervention | Staged for the agent |
|---|---|
| Language skill packet | a skill packet: language, OpenMP and method pages for the setup’s language; a hints page |
| Performance Toolkit | a skill packet: profiling tools; divide-and-conquer, profiling and compiler optimization-report pages (plus ROCm profiler on AMD) |
| CPF | the kernel’s CPF [52] as starting source; a variant instead gives a CPF page and a tool returning the kernel’s CPF (Qwen3.8-27B and OSS-120B), reported only in the setups table |
| Git reformulation | the kernel as a git repository with an issue |
| Blind | no score tool, one submission |
| Terse | a page that keeps every agent message brief (Harness20, and C and HIP on LLR-Focus40) |
| Harness | mini-SWE-agent or OpenHands in place of Claude Code, or AutoKernel [54], an add-on to Claude Code (Harness20) |
| RCCL hints | a skill packet: a page on RCCL collectives (MLScale) |
TABLE XII. Interventions of §IV-D.
| Experiment | Dev. | Harness | Languages | Models | Control | Treatment | Budget |
|---|---|---|---|---|---|---|---|
| LLR-Focus40 | CPU | CC | C, Fortran | Q, K, O | no skill packet | Language skill packet | 12M, 4 h (K: 8 h) |
| LLR-Focus40 | GPU | CC | HIP, Triton, OpenMP target offloading | Q, K, O | no skill packet | Language skill packet | 12M, 4 h (K: 8 h; K HIP: 24M, 16 h) |
| LLR-Focus40 | CPU | CC | C | Q, O | no skill packet | CPF page and tool (variant) | 12M, 4 h |
| LLR-Focus40 | CPU | CC | C | Q, K, O | no skill packet | CPF as starting source | 12M, 4 h (K: 8 h) |
| LLR-Focus40 Blind | CPU | CC | C, Fortran | Q, K, O | open-submission | blind | 12M, 4–5 h (K: 5–8 h) |
| LLR-Focus40 Blind | GPU | CC | HIP | Q, O | open-submission | blind | 12M, 4–5 h |
| SciComp35 | CPU | CC | C | Q, K, O | no skill packet | Performance Toolkit | 60M, 20 h |
| Git-SciComp | CPU | CC | C | Q, K, O | bare kernel | git reformulation | 60M, 20 h |
| Harness20 | CPU | see text | C | Q, O | CC | mini-SWE-agent, OpenHands, AutoKernel | 12M, 4 h (Q mini-SWE-agent, OpenHands: 24M, 8 h) |
| Terse | both | CC | C, HIP | Q, O | no instruction | brief-message instruction (Harness20: Q, C; LLR-Focus40: C, HIP) | 12M, 4 h |
| MLScale | GPU | CC | HIP, RCCL | Q, K, O | no skill packet | RCCL hints (Q, O only) | 24M, 6 h |
TABLE XIII. Setups. Both setups of a pair share model, language, device and kernels and differ only in Treatment. Q: Qwen3.8-27B, K: Kimi-K2.7, O: OSS-120B. CC: Claude Code. Budget: tokens and wall time per episode.
these checks caught.
D. Correctness
Bands. NaN and positions must agree, and each output's atol (Table XIV) is raised to the reassociation floor
where is the accumulation precision's machine epsilon and the largest product of an input's size symbols absent from the written output shape ( for ). Kernels whose shapes do not fix use their largest input's element count; sequential scans declare their chain length. A configuration with is ungradeable, not incorrect.
Determinism. Two runs of one binary agree when their largest elementwise difference over times the first run's max-norm is below 30, LAPACK's test-ratio threshold [71].
E. Scoring rules
Efficacy statistics. The ratios of Equation equation 3 use per-kernel log changes, over and over :
with a two-sided paired t-test of ; no intervals below six pairs. The t interval assumes normal log-ratios across kernels; runtimes themselves are compared only by rank tests ( ). Solved counts are reported, not tested. Benjamini–Hochberg q<0.05 over the speedup and cost tests of one panel is marked.
Example. Illustrative speedups, X unsolved:
Solved kernels rise from 7 to 8 ( ; g=1, l=0); over the seven both solve, the geometric-mean speedup rises from 2.44 to 2.97 ( , interval [0.75, 1.98], paired t-test p=0.36).
Token counts. Engine cache counters are not used for Equation equation 4. Without a server count (killed process) the model's tokenizer counts the transcript, undercounting 2–4%. After compaction the rebuilt prompt counts as input.
Weak-scaling sizes. In Equation equation 2, P counts PEs, one MPI rank per PE. A manifest names the decomposed size symbols and the degree k of the work in them, (a GEMM partitioning one row axis has k = 1). Fixed work per PE needs , an integer m at :
so , as in isoefficiency [72], HPCG and LU-LESH [46, 73]. At other the symbols scale by , rounded, and is recorded. Table XV gives the work and the exact weak-scaling PE counts per motif.
Ownership. A kernel declares each array's layout: a ScaLA-PACK [74] block, cyclic or block-cyclic distribution over a process grid, or replication. The agent writes all communication; the drivers only scatter inputs and gather outputs, so the correctness check and timed region keep their single-node definitions.
MLScale. The grade measures on 1, 2, 4, 8 and 16 GPUs across four nodes, four GPUs per node and one rank per GPU; a point is the median over runs of the slowest GPU's time, and is the median of PyTorch (torch.compile) on one GPU at the base size. Input dimensions and per-GPU blocks are multiples of 64, the strong-scaling split dimension a multiple of 1024.
Where prior work states how it counts tokens, it sums every request's prompt, so in multi-turn agent sessions cached input dominates the count [66, 75] and varies with the serving engine's cache policy [70, 76].
The only release is one anonymized Zenodo zip (https://doi.org/10.5281/zenodo.22974128, 31 MB) with a
| fp64 | fp32 | fp16 | bf16 | fp8 (e4m3) | fp8 (e5m2) | |
|---|---|---|---|---|---|---|
| rtol | ||||||
| atol | 0.125 | 0.25 |
TABLE XIV. Validation bands by precision. Other formats: rtol = √ε clamped to [10, 0.25], atol = max(10 rtol, ε). Reduced formats accumulate in fp32 [29].
| Motif | Work | Weak | Strong decomposition |
|---|---|---|---|
| Dense LA / GEMM | 2D block-cyclic | ||
| 2D stencil | 1D / 2D block | ||
| 3D stencil | 3D block | ||
| SpMV / BFS / map-reduce | any () | row / graph partition | |
| Direct -body | particle / domain | ||
| FFT | strong only | slab / pencil transpose |
TABLE XV. Work, exact weak-scaling PE counts and strong-scaling decomposition per motif. No integer growth multiplies exactly by .
top-level README.md and two folders:
-
reproducibility/, the artifact repository: the pipeline scripts (download.sh, run_all.sh, stats.sh, fig*.sh, tab3.sh, lib/, tools/), the measurements, extracted in data/ and as data.tar.zst with one checksum per file in DATA_SHA256SUMS, the pooled answers in work/, every table and figure, the checksums of all outputs in SHA256SUMS, the submitted sources behind §IV-B and §IV-F (case-studies/) and every version of the skill packets (skill_histories/);
-
hpcagent-bench/, the benchmark at the release tagged paper-experiments: benchmark code, experiment scripts and container definitions, with DaCe pinned through the dace dependency group of pyproject.toml.
User names, paths, host names and commit ids are replaced by placeholders, which changes no number.
F. Regenerating every figure, table and number
This needs no GPU and no model access, only Linux with Python ≥ 3.12. From the unpacked zip:
cd reproducibility
python3 -m venv .venv & . .venv/bin/activate
pip install -e ../hpcagent-bench
./run_all.sh
The measurements ship extracted; DATA_
URL=file://$PWD/data.tar.zst ./download.sh
re-extracts them and fails unless every file matches DATA_
SHA256SUMS. run_all.sh pools every answer at its final grade, runs the paired tests of §III, redraws every figure and table with the benchmark's plotting library, and checks all 54 outputs against SHA256SUMS. It ends with OK: 54 files match SHA256SUMS, or sha256sum names each file that differs. Table XVI lists the script behind each output.
G. Rerunning an experiment
Platform. The experiments ran on a Slurm 25.05 cluster of MI300A nodes (four APUs per node, each 24 Zen 4 cores and 228 CDNA 3 compute units sharing 128 GB HBM3) with the Enroot container runtime; the GH200 regrade ran on GH200 nodes (four superchips per node, each 72 Neoverse V2 cores and one H100). The CPU experiments need CPU nodes only; the GPU experiments need AMD GPUs. All toolchains live in the images: ROCm 7.2.0 in the judge, agent and model-server images (SGLang for Qwen3.8-27B and Kimi-K2.7, vLLM for OSS-120B).
One-time setup. Two jobs of hpcagent-bench/containers/cluster/ce-images prepare the cluster (commands in its README.md): build_and_verify.sbatch builds the judge, agent and model-server images and checks each against the device, and inference/fetch_weights.sbatch downloads the model weights. The CPF setups also read their pre-rendered forms from HPCAGENT_BENCH_CPF_PRERENDER_DIR.
One command per experiment. Set SCRATCH to the directory that holds hpcagent-bench/ and its virtual environment. From hpcagent-bench/experiments/, the command of Table XVII reruns one experiment end to end, with the budgets of Table II; SUBMIT=0 prints the plan without submitting. It submits one Slurm job per setup, and each job starts the model server, the judge and the agents in the fixed images. Every job ends within its wall limit of at most 23 h, so graded results are back within a day when the cluster starts an experiment's jobs together.
Grading. Every submit script chains a grading job on each agent job (finalize_grade.sbatch), which applies the current grading rules, the ones behind every number in this paper. The final grade re-times each answer on inputs drawn from the secret submission seed (Appendix B); items a grading job does not reach within its wall time are planned again by the next one (regrade_rest.py). An answer whose final re-timing yields no valid measurement keeps its last valid grade, and an answer without a final grade keeps the grade the judge gave during the episode. Kernels a setup never ran are excluded from that setup; a kernel that ran and failed counts as unsolved, so it enters the success rate and the token cost but not . The multi-node scaling grade of the ML track is scheduled as its answers arrive.
From finished runs to figures. Each job writes its run directory to SCRATCH
| Script | Output | In the paper |
|---|---|---|
| stats.sh | pooled answers, paired-test tables (tables/*.csv) | every figure |
| fig2.sh | figures/efficacy_packets_and_scope.pdf | Figure 3 |
| fig3.sh | figures/scope_row.pdf | Figure 5 |
| fig4.sh | figures/cost_weighting.pdf | Figure 7 |
| fig5.sh | figures/ml_scaling.pdf | Figure 6 |
| fig8.sh | figures/cheating_per_kernel.pdf | Figure 9 |
| tab3.sh | tables/gh200-transfer-table.tex | Table IV |
TABLE XVI. Scripts of reproducibility; each runs after stats.sh.
| Experiment | Command (from experiments/) |
|---|---|
| LLR-Focus40, CPU | SUBMIT=1 ./submit-cpf-llr40.sh |
| LLR-Focus40, GPU | SUBMIT=1 ./submit-gpu-llr40.sh |
| LLR-Focus40 Blind | SUBMIT=1 ./submit-llrblind.sh |
| Git-SciComp | SUBMIT=1 ./submit-git-scicomp.sh |
| SciComp35 | SUBMIT=1 ./submit-scicomp-perf-playbook.sh |
| Harness20 | SUBMIT=1 ./submit-harness-focus20.sh |
| Terse (Harness20) | SUBMIT=1 ./submit-harness20-caveman.sh |
| MLScale | SUBMIT=1 PACKET= ./submit-mlscale.sh |
TABLE XVII. One command per experiment. Run again with PACKET=dist-rccl-amd for the RCCL-hint setups.
./download.sh --from-cluster rebuilds data/ from those directories; elsewhere, ./download.sh --from-cluster first mirrors them over ssh from the host set in tools/cluster.env (copied from tools/cluster.env.example). ./run_all.sh then redraws every figure, table and number from the new data, and its checksum check names the outputs that changed. Sampling makes single episodes differ between reruns; the paired intervals are the quantity we expect to reproduce.