arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.08872cs.PLcs.DBcs.LG
收藏

AMULET:自适应矩阵乘法类任务

AMULET: Adaptive Matrix-Multiplication-Like Tasks

Columbia University(哥伦比亚大学);Oracle Labs(甲骨文实验室)

Junyoung Kim, Kenneth Ross, Eric Sedlar, Lukas Stadler

AI总结:

本文提出Amulet框架,通过扩展开源编译器识别和优化矩阵乘法类任务,结合数据库与编译器优化技术生成定制快速代码,在大型矩阵上性能接近手调库且支持更广计算类。

摘要:

数据科学和机器学习应用中的许多有用任务可以写成矩阵乘法的简单变体。然而,用户在执行此类任务时面临困难,因为现有的矩阵/向量库仅支持为每个独特硬件平台手动调优的有限类计算。用户可以将任务编写为简单的嵌套循环,但当前的编译器不够先进,无法为以这种方式编写的任务生成快速代码。为了解决这些问题,我们扩展了一个开源编译器,以识别和优化这些矩阵乘法类任务。我们的框架名为Amulet,结合数据库风格和编译器优化技术,生成针对其执行环境定制的快速代码。我们通过实验表明,与现有编译器相比,Amulet在各种矩阵乘法类任务上实现了加速。对于大型矩阵,Amulet通常在手动调优的矩阵乘法库的15%性能范围内,同时处理更广泛的计算类。

英文摘要:

Many useful tasks in data science and machine learning applications can be written as simple variations of matrix multiplication. However, users have difficulty performing such tasks as existing matrix/vector libraries support only a limited class of computations hand-tuned for each unique hardware platform. Users can alternatively write the task as a simple nested loop but current compilers are not sophisticated enough to generate fast code for the task written in this way. To address these issues, we extend an open-source compiler to recognize and optimize these matrix multiplication-like tasks. Our framework, called Amulet, uses both database-style and compiler optimization techniques to generate fast code tailored to its execution environment. We show through experiments that Amulet achieves speedups on a variety of matrix multiplication-like tasks compared to existing compilers. For large matrices Amulet typically performs within 15% of hand-tuned matrix multiplication libraries, while handling a much broader class of computations.

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

↑