MLKAPS: Machine Learning and Adaptive Sampling for HPC Kernel Auto-tuning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jam, Mathys, Petit, Eric, Castro, Pablo de Oliveira, Defour, David, Henry, Greg, Jalby, William
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910779627798528
author Jam, Mathys
Petit, Eric
Castro, Pablo de Oliveira
Defour, David
Henry, Greg
Jalby, William
author_facet Jam, Mathys
Petit, Eric
Castro, Pablo de Oliveira
Defour, David
Henry, Greg
Jalby, William
contents Many High-Performance Computing (HPC) libraries rely on decision trees to select the best kernel hyperparameters at runtime,depending on the input and environment. However, finding optimized configurations for each input and environment is challengingand requires significant manual effort and computational resources. This paper presents MLKAPS, a tool that automates this task usingmachine learning and adaptive sampling techniques. MLKAPS generates decision trees that tune HPC kernels' design parameters toachieve efficient performance for any user input. MLKAPS scales to large input and design spaces, outperforming similar state-of-the-artauto-tuning tools in tuning time and mean speedup. We demonstrate the benefits of MLKAPS on the highly optimized Intel MKLdgetrf LU kernel and show that MLKAPS finds blindspots in the manual tuning of HPC experts. It improves over 85% of the inputswith a geomean speedup of x1.30. On the Intel MKL dgeqrf QR kernel, MLKAPS improves performance on 85% of the inputs with ageomean speedup of x1.18.
format Preprint
id arxiv_https___arxiv_org_abs_2501_05811
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MLKAPS: Machine Learning and Adaptive Sampling for HPC Kernel Auto-tuning
Jam, Mathys
Petit, Eric
Castro, Pablo de Oliveira
Defour, David
Henry, Greg
Jalby, William
Performance
Software Engineering
Many High-Performance Computing (HPC) libraries rely on decision trees to select the best kernel hyperparameters at runtime,depending on the input and environment. However, finding optimized configurations for each input and environment is challengingand requires significant manual effort and computational resources. This paper presents MLKAPS, a tool that automates this task usingmachine learning and adaptive sampling techniques. MLKAPS generates decision trees that tune HPC kernels' design parameters toachieve efficient performance for any user input. MLKAPS scales to large input and design spaces, outperforming similar state-of-the-artauto-tuning tools in tuning time and mean speedup. We demonstrate the benefits of MLKAPS on the highly optimized Intel MKLdgetrf LU kernel and show that MLKAPS finds blindspots in the manual tuning of HPC experts. It improves over 85% of the inputswith a geomean speedup of x1.30. On the Intel MKL dgeqrf QR kernel, MLKAPS improves performance on 85% of the inputs with ageomean speedup of x1.18.
title MLKAPS: Machine Learning and Adaptive Sampling for HPC Kernel Auto-tuning
topic Performance
Software Engineering
url https://arxiv.org/abs/2501.05811