30464

cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution

Jinwu Chen, Qidie Wu, Bin Li, Lin Ma, Xin Si, Yang Hu, Shouyi Yin, Jun Yang
Southeast University, Nanjing, China
arXiv:2512.16465 [cs.AI], (18 Dec 2025)

@misc{chen2025cupilotstrategycoordinatedmultiagentframework,

   title={cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution},

   author={Jinwu Chen and Qidie Wu and Bin Li and Lin Ma and Xin Si and Yang Hu and Shouyi Yin and Jun Yang},

   year={2025},

   eprint={2512.16465},

   archivePrefix={arXiv},

   primaryClass={cs.AI},

   url={https://arxiv.org/abs/2512.16465}

}

Optimizing CUDA kernels is a challenging and labor-intensive task, given the need for hardware-software co-design expertise and the proprietary nature of high-performance kernel libraries. While recent large language models (LLMs) combined with evolutionary algorithms show promise in automatic kernel optimization, existing approaches often fall short in performance due to their suboptimal agent designs and mismatched evolution representations. This work identifies these mismatches and proposes cuPilot, a strategy-coordinated multi-agent framework that introduces strategy as an intermediate semantic representation for kernel evolution. Key contributions include a strategy-coordinated evolution algorithm, roofline-guided prompting, and strategy-level population initialization. Experimental results show that the generated kernels by cuPilot achieve an average speed up of 3.09 over PyTorch on a benchmark of 100 kernels. On the GEMM tasks, cuPilot showcases sophisticated optimizations and achieves high utilization of critical hardware units. The generated kernels are open-sourced.
No votes yet.
Please wait...

You must be logged in to post a comment.

* * *

* * *

HGPU group © 2010-2025 hgpu.org

All rights belong to the respective authors

Contact us: