arXiv:2608.21227cs.PFAug 2026

Manuscript Offprint

arXiv:2608.21227

Portable to Efficient: Auto-Tuning Hardware-Agnostic GPU Kernels in Julia

Floris-Jan Willemsen, Evelyne Ringoot, Alan Edelman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Conference: Workshop Proceedings of the 55th International Conference on Parallel Processing; September 28-October 01, 2026; Singapore, SingaporeWorkshop Proceedings of the 55th International Conference on Parallel Processing (ICPP Workshops ’26), September 28-October 01, 2026, Singapore, SingaporeDOI: 10.1145/3816891.3834891ISBN: 979-8-4007-2763-4/2026/09CCS: General and reference PerformanceCCS: Software and its engineering Software performanceCCS: Computing methodologies Parallel programming languages

© cc

Abstract.

Traditionally, GPU kernels have been developed and optimized within vendor-specific programming models to achieve high performance, resulting in software that is difficult to optimize and adapt across increasingly heterogeneous computing systems. Hardware-agnostic programming models offer a more sustainable approach to GPU software development by improving portability and maintainability, but achieving efficient execution across diverse architectures remains challenging. We address this challenge by integrating auto-tuning into hardware-agnostic GPU kernels written in Julia.

We rebuild the established Kernel Tuner auto-tuning framework with Julia support, enabling systematic exploration of kernel configurations for hardware-agnostic GPU kernels targeting NVIDIA, AMD, Intel, and Apple GPUs. We demonstrate this approach on hardware-agnostic singular value decomposition (SVD) as implemented in the NextLA.jl linear algebra library.

The results show that auto-tuning is essential for creating resource-efficient hardware-agnostic GPU kernels across a variety of hardware. Optimal configurations improve kernel performance by a factor of 3×\times to 7×\times compared to median parameter configurations, demonstrating the substantial impact of tuning on efficient hardware utilization. Moreover, auto-tuning enables hardware-agnostic kernels to surpass manually optimized implementations in efficiency while reducing developer effort. This is made widely accessible through the first auto-tuning framework for Julia, KernelTuner.jl, bringing portable yet resource-efficient GPU kernels within reach for a wide range of applications and devices.

Keywords:

Auto-tuning, Julia Language, GPU, HPC, Performance Optimization, Resource Efficiency, Dense Linear Algebra, Portability

References (34)