arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09688cs.AR
收藏

GAMA:在 AMD Versal 机器学习优化 AI Engine 上实现高性能 GEMM 加速

GAMA: High-Performance GEMM Acceleration on AMD Versal ML-Optimized AI Engines

Kaustubh Mhatre, Endri Taka, Aman Arora

AI总结:

本文提出 GAMA,通过自定义缓冲区与交错内核放置优化 AMD AIE2 的存储和布线,在单核、AIE 组及完整阵列上实现高效 GEMM 加速。

摘要:

通用矩阵-矩阵乘法(GEMM)是机器学习(ML)应用中的一项基础运算。我们首次在 AMD 第二代 AIE-ML(AIE2)架构上对 GEMM 工作负载进行全面性能加速,该架构专门针对 ML 应用进行了优化。与 AI-Engine(AIE1)相比,AIE2 提供了更高的计算吞吐量和更大的片上存储容量。我们提出了一种新颖设计,可最大化 AIE 存储利用率,在 AIE2 内采用自定义缓冲区放置,并在整个 AIE2 阵列上采用交错内核放置,从而显著减少存储停顿和布线拥塞等性能瓶颈;与 AMD 提供的默认编译器相比,实现了更高的性能和效率。我们在三个层级评估该设计的性能收益:单个 AIE、一组 AIE 以及完整 AIE 阵列。GAMA 达到了当前最优性能:对于 int8 精度的 GEMM 工作负载,最高可提供 165 TOPS(峰值的 85%);对于 bfloat16 精度的 GEMM 工作负载,最高可提供 83 TBFLOPS(峰值的 86%)。与当前最优的 AIE1 框架 AMA、MAXEVA、ARIES 和 CHARM 相比,我们的解决方案峰值吞吐量效率分别提高 8.7%、9%、39% 和 53.6%。

英文摘要:

General matrix-matrix multiplication (GEMM) is a fundamental operation in machine learning (ML) applications. We present the first comprehensive performance acceleration of GEMM workloads on AMD's second-generation AIE-ML (AIE2) architecture, which is specifically optimized for ML applications. Compared to AI-Engine (AIE1), AIE offers increased compute throughput and larger on-chip memory capacity. We propose a novel design that maximizes AIE memory utilization, incorporates custom buffer placement within the AIE2 and staggered kernel placement across the AIE2 array, significantly reducing performance bottlenecks such as memory stalls and routing congestion, resulting in improved performance and efficiency compared to the default compiler provided by AMD. We evaluate the performance benefits of our design at three levels: single AIE, pack of AIEs and the complete AIE array. GAMA achieves state-of-the-art performance, delivering up to 165 TOPS (85% of peak) for int8 precision and 83 TBFLOPS (86% of peak) for bfloat16 precision GEMM workloads. Our solution achieves 8.7%, 9%, 39% and 53.6% higher peak throughput efficiency compared to the state-of-the-art AIE1 frameworks AMA, MAXEVA, ARIES and CHARM, respectively.

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

↑