cuda-oxide 0.4 vs CUDA C++ kernel writing costs measured in Claude Code
The author measured token costs and performance when using Claude Code to write GPU kernels in cuda-oxide versus CUDA C++ across 34 sessions. The author found that cuda-oxide kernels ran just as fast and cost about the same to write as C++, but incurred an extra reading and context learning fee ranging from 1.5× to 1.9× total session cost depending on the task. Both languages successfully produced complex FlashAttention-2 designs, though cuda-oxide sessions encountered two compiler bugs that have since been fixed in version 0.4. Open article →