arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.11488cs.DCcs.PF
收藏

将自动调优引入 HIP:AMD 与 Nvidia GPU 上调优影响与难度的分析

Bringing Auto-tuning to HIP: Analysis of Tuning Impact and Difficulty on AMD and Nvidia GPUs

Milo Lurati, Stijn Heldens, Alessio Sclocco, Ben van Werkhoven

AI总结:

本文通过扩展 Kernel Tuner 为 AMD HIP 引入自动调优器,在四块 GPU 上分析四个基准内核,发现自动调优在 AMD 上性能提升(10 倍)远超 Nvidia(2 倍),并强调针对 AMD 专门调优的必要性。

摘要:

许多研究聚焦于开发和改进面向 Nvidia 图形处理单元(GPU)的自动调优算法,但这些方法在 AMD 设备上的有效性和效率鲜有研究。本文旨在通过为 AMD 的 HIP 引入一个自动调优器来填补这一空白。我们通过扩展 Kernel Tuner(一个用于自动调优 GPU 程序的开源 Python 库)来实现这一点。我们在四块不同的 GPU(两块来自 Nvidia,两块来自 AMD)上分析了四个高度可调优的基准内核的性能影响和调优难度。我们的结果表明,与 Nvidia 相比,自动调优在 AMD 上对性能的影响显著更高(10 倍对比 2 倍)。此外,我们展示了为 Nvidia 调优的应用程序在 AMD 上无法达到最优性能,这强调了专门针对 AMD 进行自动调优以在这些 GPU 上实现高性能的重要性。

英文摘要:

Many studies have focused on developing and improving auto-tuning algorithms for Nvidia Graphics Processing Units (GPUs), but the effectiveness and efficiency of these approaches on AMD devices have hardly been studied. This paper aims to address this gap by introducing an auto-tuner for AMD's HIP. We do so by extending Kernel Tuner, an open-source Python library for auto-tuning GPU programs. We analyze the performance impact and tuning difficulty for four highly-tunable benchmark kernels on four different GPUs: two from Nvidia and two from AMD. Our results demonstrate that auto-tuning has a significantly higher impact on performance on AMD compared to Nvidia (10x vs 2x). Additionally, we show that applications tuned for Nvidia do not perform optimally on AMD, underscoring the importance of auto-tuning specifically for AMD to achieve high performance on these GPUs.

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

↑