Contact

For longer notes, email works best.
For quick messages, find me on X.

back

High-Performance Code Generation Using LLMs: Tensor Reduction

Investigation of LLM capabilities in automating high-performance CUDA kernel generation for tensor reduction on NVIDIA A100 GPUs.

May 10, 2025
ai
Code & testing LLMs · CUDA · GPU · Code Generation · A100
The problem
Can LLMs write GPU code as fast as hand-tuned code?
What we did
Compared hand-tuned and LLM-written CUDA code for summing an array on an A100 GPU.
What we found
On 1 and 2 billion numbers, the best LLM code took 2.1× as long as hand-tuned.
The limit
We tested one task on one GPU, not other workloads or hardware.

Code shared on request

This project is university work, so I can’t post its code publicly. I’m happy to share it, though. Just send me a short email.

Write an email