MLKAPS:面向 HPC 内核自动调优的机器学习与自适应采样
MLKAPS: Machine Learning and Adaptive Sampling for HPC Kernel Auto-tuning
AI总结:
本文提出 MLKAPS,结合机器学习与自适应采样自动生成决策树以调优 HPC 内核参数,并在 Intel MKL LU/QR 内核上显著缩短调优时间、提升性能。
摘要:
许多高性能计算(HPC)库依赖决策树在运行时根据输入和环境选择最佳内核超参数。然而,为每种输入和环境寻找优化配置具有挑战性,需要大量人工工作和计算资源。本文提出 MLKAPS,这是一种利用机器学习和自适应采样技术自动化该任务的工具。MLKAPS 生成用于调优 HPC 内核设计参数的决策树,从而针对任意用户输入实现高效性能。MLKAPS 可扩展到大型输入空间和设计空间,在调优时间和平均加速比方面优于同类最先进自动调优工具。我们在高度优化的 Intel MKL dgetrf LU 内核上展示了 MLKAPS 的优势,并表明 MLKAPS 能发现 HPC 专家手动调优中的盲点。它在超过 85% 的输入上实现改进,几何平均加速比为 x1.30。在 Intel MKL dgeqrf QR 内核上,MLKAPS 在 85% 的输入上提升了性能,几何平均加速比为 x1.18。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。