面向 Versal ACAP 架构的 GEMM 能量与性能优化
Optimizing GEMM for Energy and Performance on Versal ACAP Architectures
AI总结:
本文针对 Versal ACAP 上 GEMM 映射的能量与性能权衡问题,提出一个基于约 6000 次板载实验训练的机器学习模型来指导设计空间探索的自动化框架,在 VCK190 上实现了吞吐量和能量效率的显著提升。
摘要:
通用矩阵乘法(GEMM)是众多科学工作负载、信号处理以及尤其是深度学习中的基础运算。它常常成为性能和能量效率的瓶颈,特别是在资源与功耗约束严格的边缘环境中。AMD 的 Versal ACAP 提供了异构组件(AIE、PL、PS),能够应对这些挑战,但将 GEMM 映射到这些组件上十分复杂,且此前的工作大多忽视了能量与性能之间的权衡。在本文中,我们提出了一个面向 Versal ACAP 的自动化框架,该框架能够生成针对性能或能量效率进行优化的 GEMM 映射。与先前的分析方法不同,我们的方法利用一个机器学习(ML)模型来指导设计空间探索,该模型基于约 6000 次不同 GEMM 映射的板载实验训练而成,从而产生更高效的设计。在 Versal VCK190 上的评估表明,与最先进的框架相比,吞吐量的几何平均提升为 1.23 倍(最高可达 2.5 倍),能量效率的几何平均提升为 1.25 倍(最高可达 2.7 倍)。
英文摘要:
General Matrix Multiplication (GEMM) is a fundamental operation in many scientific workloads, signal processing, and particularly deep learning. It is often a bottleneck for performance and energy efficiency, especially in edge environments with tight resource and power constraints. AMD's Versal ACAP offers heterogeneous components (AIEs, PL, PS) that can address these challenges, but mapping GEMM across them is complex, with prior works largely overlooking energy-performance trade-offs. In this paper, we propose an automated framework for Versal ACAP that generates GEMM mappings optimized for either performance or energy efficiency. Unlike prior analytical approaches, our method leverages a Machine Learning (ML) model, trained on approximately 6000 on-board experiments of different GEMM mappings, to guide Design Space Exploration, yielding more efficient designs. Evaluation on the Versal VCK190 shows geomean improvements of 1.23x (up to 2.5x) in throughput and 1.25x (up to 2.7x) in energy efficiency over state-of-the-art frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。