SWE-GPU-Bench: Can Language Models Solve Real-World GPU Software Engineering Tasks?

Feng Chen, Binbin Liu, Wenhan Han, Yin Zheng

TL;DR

Writing a standalone CUDA kernel is one thing; landing a real pull request in a production GPU repository is another. SWE-GPU-Bench is a new benchmark of 417 real-world tasks drawn from 30 GPU repositories (like CUTLASS, Triton, and TensorFlow) that tests whether AI coding agents can navigate multi-language codebases, heterogeneous build systems, and actual GPU hardware. While frontier models now compile their code nearly 100% of the time, the best agents still only resolve 58.3% of tasks—proving that passing functional tests, not syntax or builds, is the new bottleneck.

What Problem Does This Paper Address?

Most existing GPU benchmarks (like KernelBench or TritonBench) ask a language model to write an isolated kernel or operator from scratch. In the real world, however, GPU software engineering happens inside massive, messy repositories. Updating a single kernel often requires coordinated edits across CUDA device code, C++ host wrappers, Python bindings, and CMake or Bazel build files—all compiled for specific GPU architectures like NVIDIA A100 or H100.

On the flip side, popular repository-level benchmarks like SWE-bench focus almost exclusively on CPU-bound Python projects. SWE-GPU-Bench bridges this gap by evaluating whether language models can handle end-to-end GPU software maintenance: bug fixes, feature implementations, and performance optimizations inside production codebases.

Overview of SWE-GPU-Bench evaluation

Methods

To build a benchmark that actually compiles and runs on real GPUs without manual babysitting, the authors designed an automated, five-stage construction pipeline:

  1. Repository & PR Collection: They gathered merged pull requests (PRs) from 30 actively maintained GPU repositories.
  2. Filtering: Deterministic rules and an LLM judge (GPT-5.2) filtered for self-contained PRs that modify tests alongside CUDA, C++, or GPU build files. Each PR's diff was split into a hidden test patch ($\Delta_{\text{test}}$) and a gold patch ($\Delta_{\text{gold}}$).
  3. Command Synthesis: An interactive coding agent inside an A100 or H100 GPU container inspected build scripts and CI workflows to synthesize task-specific setup commands ($S$), test commands ($T$), and—for performance tasks—benchmark commands ($P$).
  4. Clean Replay: Every task was verified in a clean, agent-free container. The test commands $T$ had to fail before applying the gold patch and pass afterward.
  5. Task Packaging: An LLM distilled a clean problem statement ($d$) without leaking file names or solution hints, which human reviewers then audited.

The authors evaluated frontier models in two settings: an Oracle setting (where the model is handed the exact files modified by the gold patch and generates edits in a single pass) and an Agent setting (where Codex CLI or OpenCode agents iteratively explore, edit, compile, and test inside a pre-configured GPU container).

Datasets

SWE-GPU-Bench consists of 417 tasks across 30 repositories, spanning CUDA libraries (e.g., NVIDIA/cccl at 21.8%, cutlass, raft), compilers (triton, tvm), ML frameworks (tensorflow, DeepSpeed), and inference engines (flashinfer, Megatron-LM).

  • Multi-language & Multi-file: Over half of the tasks (51.4%) require editing two or more languages, and over a quarter edit five or more files.
  • Task Types: Bug fixes make up 47.9% of the dataset, features account for 39.0%, and performance optimizations make up 13.2%.
  • Perf-Replay Subset: 39 of the performance tasks form Perf-Replay, which pairs functional correctness tests with benchmark commands ($P$) to measure actual runtime speedup over the base commit.
Figure 4: Composition of SWE-GPU-Bench, in percent of tasks. (a) Number of languages edited by the gold patch. (b) Distribution of task types, with the performance bar split into general-set and Perf-Replay tasks.

Key Insights and Ideas

  • Execution feedback beats knowing the answer's location: Every single model performed substantially better as an interactive agent than in the single-pass Oracle setting—even though the Oracle was handed the exact target files! For example, DeepSeek-V4.1-Flash more than doubled its resolution rate from 24.3% (Oracle) to 55.3% (Agent) once it could see compiler and test feedback.
  • The build bottleneck is largely solved: Earlier models struggled to even compile heterogeneous GPU projects (e.g., GPT-5.2 compiled only 48.3% of the time in Oracle mode). The latest frontier models—GPT-6-Astra, GPT-6.1-Sol, and DeepSeek-V4.1-Flash—hit 100.0% compilation accuracy, shifting the primary challenge from build/syntax errors to functional correctness.
  • Complexity still hurts: Across both settings, resolution rates drop sharply on feature and performance tasks compared to bug fixes, as well as on tasks that touch 5+ files or span multiple languages.
  • The "Correctness Gate" on performance tasks: On the Perf-Replay subset, agents frequently fail functional correctness tests before their speedups can even be measured.

Key Results

Under a single pass@1 evaluation on NVIDIA A100/H100 GPUs:

  • Top Agents: GPT-6-Astra (58.3%) and GPT-6.1-Sol (58.0%) in Codex CLI led the pack, followed by GPT-5.6-Sol (56.7%) and DeepSeek-V4.1-Flash in OpenCode (55.3%).
  • Top Oracles: GPT-6-Astra (49.2%), GPT-6.1-Sol (47.6%), and GPT-5.6-Sol (38.5%).
  • Perf-Replay: Passing the correctness gate proved brutal for the evaluated agents; GPT-5.1-Codex passed only 3/39 tasks (achieving a 3.3% mean speedup on those 3), while GPT-5-Codex and Kimi K2.5 passed 2/39, and DeepSeek-V3.2 passed 1/39 (compared to the gold patch's 6.4% mean speedup across all 39).

Limitations and Future Work

The authors note several honest limitations:

  • Pre-configured environments: Setup commands ($S$) are run before the agent starts, decoupling code maintenance from the messy reality of provisioning GPU toolchains from scratch.
  • Hardware scope: All tasks were validated on NVIDIA A100 and H100 GPUs; porting to newer architectures (like Blackwell) or non-NVIDIA accelerators requires re-validation.
  • Perf-Replay scale: With only 39 tasks and heterogeneous metrics, Perf-Replay offers preliminary observations rather than definitive cross-model speedup rankings.
  • Single-run evaluation: Models were evaluated with a single pass@1 run, and problem statements were LLM-distilled (though human-audited).

Summary updated

BibTeX
@inproceedings{chen2026swe,
  author = {Feng Chen and Binbin Liu and Wenhan Han and Yin Zheng},
  title = {{SWE-GPU-Bench: Can Language Models Solve Real-World GPU Software Engineering Tasks?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=X3uXN5CMBT},
}
Figure