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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chu, Ruifan, Wang, Anbang, Bai, Xiuxiu, Liu, Shuai, Dong, Xiaoshe
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915696167878656
author Chu, Ruifan
Wang, Anbang
Bai, Xiuxiu
Liu, Shuai
Dong, Xiaoshe
author_facet Chu, Ruifan
Wang, Anbang
Bai, Xiuxiu
Liu, Shuai
Dong, Xiaoshe
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_22147
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs
Chu, Ruifan
Wang, Anbang
Bai, Xiuxiu
Liu, Shuai
Dong, Xiaoshe
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
Performance
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.
title GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
Performance
url https://arxiv.org/abs/2512.22147