04 — Results
ResearchBench, on eight MI350X GPUs.
18/60Mode 0, out of the box
3.3×improvement
59/60Mode 1, Repo2ROCm
The misses out of the box are the usual research-code failures plus ROCm-specific ones: CUDA-only dependencies, the wrong container, hard-coded CUDA checks, silent CPU fallback, stale APIs, and small source bugs. The single Mode 1 miss, DiffusionVeteran, also fails out of the box. It is not a regression from a working baseline.
Host: eight AMD Instinct MI350X GPUs (gfx950, 270.6 GB HBM3E), ROCm Runtime 1.18. Backbone: Claude Sonnet 4, capped at 100 turns. A typical run uses about 719K tokens (median 608K) and 18–20 minutes. Repeating three repositories five times each, all 15 of 15 runs matched the original verification outcome.
Same model. Higher fidelity.
Binary “it ran” is too coarse. Agents often get a green run by replacing FlashAttention with SDPA, disabling a GPU module, or shrinking the workload. The Portability Fidelity Score charges for that. On a ten-repository diagnostic set chosen before any scores were known, every agent used Claude Sonnet 4, the same revision, hardware, budget, and public ROCm docs.
Repo2ROCm77.3
Claude Code61.4
Mini-SWE-Agent58.7
Cursor Agent40.3
PFS = Ran × (15 + 35 Fpath + 20 Awork + 20 Aenv + 10 Dproc)
Ran is 1 only when the run produced runnable evidence. Path fidelity grades each accelerator-critical component as preserved, degraded, or disabled. The ordering holds under equal component weights and when any single component is removed. This comparison is diagnostic, not a score over all 60 repositories.
Mode 2 is a case study, not the main claim.
Paper result reproduced
TurboQuant
After a verified ROCm environment, the quantization command’s compression, similarity, and match rate all landed inside the stated tolerance.
Not reproduced
dKV-Cache
Mode 1 succeeded: the intended workload ran on AMD GPUs. The reported hardware-sensitive speedup did not fall within tolerance, so Mode 2 refused the claim.
One of two preliminary cases matched. Missing datasets, gated checkpoints, and incomplete evaluation scripts still block result-level checks even when the code runs. Causal memory, ablated on 20 GPU-dependent repositories, moved the functional-run rate from 15/20 to 18/20 and gave a 1.16× speedup on repositories both settings finished.
05 — What every run ships
An audit bundle, not a chat log.
- Dockerfile
- The ROCm environment the planner selected and the executor built.
- Unified diff
- Source changes against the original repository, including kernel ports.
- Command logs
- What ran inside the sandbox and what ran outside it.
- Verification
ROCM_ENV_VERIFIED, or a Mode 2 metric report with a match or a mismatch.
- Plan and trajectory
- The static plan and the step-by-step agent trace used for audit and distillation.
- Code
- System, benchmark artifacts, and reproduction instructions on GitHub.
github.com/Gaurav7888/Repo2ROCm