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

机器学习驱动的现代多核系统上BLAS Level 3运行时优化

Machine-Learning-Driven Runtime Optimization of BLAS Level 3 on Modern Multi-Core Systems

The Chinese University of Hong Kong(香港中文大学);The University of Melbourne(墨尔本大学)

Yufan Xia, Giuseppe Maria Junior Barca

AI总结:

本文提出利用机器学习为BLAS Level 3操作预测最佳线程数,扩展ADSALA库,在Intel和AMD平台上相对最大线程数实现1.5至3.0倍加速,验证了该方法的有效性与通用性。

摘要:

BLAS Level 3操作对于科学计算至关重要,但在现代多核系统上为多线程实现寻找最佳线程数具有挑战性。我们提出了对架构与数据结构感知线性代数(ADSALA)库的扩展,该扩展利用机器学习来优化所有BLAS Level 3操作的运行时。我们的方法根据矩阵维度和系统架构预测每个操作的最佳线程数。我们在两个分别配备Intel和AMD处理器的高性能计算平台上测试了该方法,并使用MKL和BLIS作为基线BLAS实现。与使用最大线程数相比,我们在所有操作上实现了1.5到3.0倍的加速。我们还分析了不同BLAS操作的运行时模式,并解释了加速的来源。我们的工作证明了ADSALA方法在现代多核系统上优化BLAS例程的有效性和通用性。

英文摘要:

BLAS Level 3 operations are essential for scientific computing, but finding the optimal number of threads for multi-threaded implementations on modern multi-core systems is challenging. We present an extension to the Architecture and Data-Structure Aware Linear Algebra (ADSALA) library that uses machine learning to optimize the runtime of all BLAS Level 3 operations. Our method predicts the best number of threads for each operation based on the matrix dimensions and the system architecture. We test our method on two HPC platforms with Intel and AMD processors, using MKL and BLIS as baseline BLAS implementations. We achieve speedups of 1.5 to 3.0 for all operations, compared to using the maximum number of threads. We also analyze the runtime patterns of different BLAS operations and explain the sources of speedup. Our work shows the effectiveness and generality of the ADSALA approach for optimizing BLAS routines on modern multi-core systems.

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

↑