Claude Code agents beat torch.compile on CUDA kernels: 2.5x fused GELU, 1.57x matmul via fp32-splitting trick

lmoroney · x · 2026-10-10

Chien Vu tested whether fresh Claude Code agents could write CUDA kernels that beat PyTorch on an NVIDIA DGX Spark, and the most useful part is the measurement methodology:

Advice: benchmark against torch.compile, time with CUDA events plus explicit synchronize, and test multiple tensor shapes before believing a speedup.

Related event: Claude Code Writes CUDA Kernels That Beat PyTorch in Tests(2 posts)→

Original post →

More from coding & agent

coding & agent channel →