arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.22147cs.DCcs.AIcs.LGcs.PF
收藏

GPU内核优化超越完整构建:一种带有性能反馈的LLM框架,使用最小可执行程序

GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs

School of Software Engineering, Xi'an Jiaotong University, China(软件工程学院,西安交通大学)

Ruifan Chu, Anbang Wang, Xiuxiu Bai, Shuai Liu, Xiaoshe Dong

AI总结:

该研究提出一种LLM框架,通过最小可执行程序实现无需完整构建的GPU内核优化,提升性能并降低开发成本。

摘要:

在高性能计算中,热点GPU内核是主要瓶颈,专家手动调优成本高且难以移植。大语言模型方法通常假设内核可以被编译和执行得廉价,这在大型应用中失效,因为完整构建和运行成本高昂。我们提出一个端到端的LLM框架,具有性能反馈,能够在不构建完整应用程序的情况下优化内核。从独立提取的热点内核中,它自动将代码完成为最小可执行程序(MEP),然后在不使用完整应用程序的情况下进行多轮迭代优化和评估。该框架集成了自动错误修复和性能模式继承,以修复故障,保持正确性,重用有效的分块/内存/同步策略,并减少搜索成本。优化后的变体重新整合回原始应用程序中进行验证。我们在NVIDIA GPU和海光深度计算单元(DCU)平台(AMD授权架构)上使用PolyBench、AMD APP SDK和大型超级计算机应用的热点内核进行评估。该方法在NVIDIA上的PolyBench平均加速率为5.05倍,在DCU上的PolyBench为7.77倍,在AMD APP SDK上为1.77倍,在三个热点内核上为1.25倍,超过了直接LLM优化。该方法不需要完整的源代码依赖,提供跨平台可移植性,并实现了实用、低成本的GPU内核优化。

英文摘要:

In high-performance computing, hotspot GPU kernels are primary bottlenecks, and expert manual tuning is costly and hard to port. Large language model methods often assume kernels can be compiled and executed cheaply, which fails in large applications where full builds and runs are expensive. We present an end-to-end LLM framework with performance feedback that optimizes kernels without building the full application. From independently extracted hotspot kernels, it automatically completes code into a Minimal Executable Program (MEP), then performs multi-round iterative optimization and evaluation outside the full application. The framework integrates Automatic Error Repair and Performance Pattern Inheritance to fix faults, preserve correctness, reuse effective tiling/memory/synchronization strategies, and reduce search cost. Optimized variants are reintegrated into the original application for validation. We evaluate on NVIDIA GPUs and the Haiguang Deep Computing Unit (DCU) platform (AMD-licensed architecture) using PolyBench, the AMD APP SDK, and hotspot kernels from large-scale supercomputing applications. The method achieves average speedups of 5.05x (PolyBench on NVIDIA), 7.77x (PolyBench on DCU), 1.77x (AMD APP SDK), and 1.25x on three hotspot kernels, surpassing direct LLM optimization. The approach requires no full-source dependencies, offers cross-platform portability, and enables practical, low-cost GPU kernel optimization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑