CursorWilson Lin, Sahil Modi, Yuan Zhang & Edward LinBenchmark
Speeding up GPU kernels by 38% with a multi-agent system
Summary
The post reports a three-week experiment in which a multi-agent system optimized 235 CUDA kernel problems generated from workloads spanning more than 124 production open-source models. Using SOL-ExecBench on 27 NVIDIA Blackwell 200 GPUs, the system used a planner to distribute and rebalance work, while autonomous workers benchmarked, debugged, and refined kernels without developer intervention. It ran separate CUDA C with inline PTX and CuTe DSL runs, reaching assembly-level optimization and learning a documented higher-level API. Against a single-agent optimized PyTorch baseline, it outperformed 149 of 235 problems, achieving a 1.38x geometric mean ratio, while 45 solutions exceeded 2x. The highlighted cases included an 84% geomean gain over a human FlashInfer baseline for paged-prefill attention, a 39% gain for NVFP4 MoE linear, and a GEMM reaching 86% of a tuned cuBLAS baseline; median SOL was 0.56, leaving room for improvement.
Context
The experiment evaluated whether a long-running, multi-agent system could solve open-ended GPU kernel optimization problems beyond the manual, operation-by-operation tuning typically used by engineers. Kernel optimization provided measurable performance objectives without requiring a known target solution.
Approach / What changed
NVIDIA used SOL-ExecBench to generate and benchmark 235 real-world problems from more than 124 production open-source models. A planner agent distributed and rebalanced work among autonomous workers, which learned to invoke the benchmarking pipeline for iterative testing, debugging, and optimization. Separate runs used CUDA C with inline PTX and CuTe DSL.
Takeaways
SOL-ExecBench evaluated solutions against software baselines and theoretical hardware limits on 27 NVIDIA Blackwell 200 GPUs, and invalidated results using tactics such as caching that exceeded what a B200 could support.
For BF16 grouped-query attention with paged prefill, the system used hardware-specific memory and math instructions, persistent kernels, and input-size hyper-optimization to reach a 0.9722 SOL score and an 84% geomean speedup over FlashInfer.
The system’s median SOL score was 0.56 despite the overall 38% geomean speedup, and the post says additional GPU compute could enable deeper exploration and further optimization.
Source and freshness
- Source
- cursor.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.