将GotoBLAS2中的并行矩阵乘法映射到用于深度学习的AMD Versal ACAP上
Mapping Parallel Matrix Multiplication in GotoBLAS2 to the AMD Versal ACAP for Deep Learning
AI总结:
本文研究在配备多AIE的AMD Versal ACAP上移植GotoBLAS2的GEMM优化技术,提出混合精度微内核与多AIE并行设计,实验证明其具备高并行可扩展性,满足深度学习自适应精度推理需求。
摘要:
本文研究为配备VC1902片上系统和多个人工智能引擎(AIE)的Versal自适应计算加速平台(ACAP)设计并行通用矩阵乘法(GEMM)。我们旨在将CPU上GEMM高性能实现的标准优化技术移植到Versal ACAP。具体而言:1)解决Versal ACA多级内存层次结构的灵活利用;2)深入探讨AIE片中向量单元的高效使用,提出一种面向混合精度计算的架构专用微内核,以满足深度学习对自适应精度推理的强烈需求;3)引入一种跨越多个AIE片的GEMM并行设计,提升计算吞吐量。我们进行了实验分析,使用多达32个AI引擎,证明了该方案的高并行可扩展性。
英文摘要:
This paper investigates the design of parallel general matrix multiplication (GEMM) for a Versal Adaptive Compute Accelerated Platform (ACAP) equipped with a VC1902 system-on-chip and multiple Artificial Intelligence Engines (AIEs). Our efforts aim to port standard optimization techniques applied in the high-performance realization of GEMM on CPUs to the Versal ACAP. In particular, 1) we address the flexible exploitation of the Versal ACA multi-level memory hierarchy; 2) we delve into the efficient use of the vector units in the AIE tiles, proposing an architecture-specific micro-kernel for mixed precision arithmetic to address the strong demand for adaptive-precision inference in deep learning; and 3) we introduce a parallel design for GEMM that spans multiple AIE tiles, enhancing the computational throughput. We conduct experimental profiling, with up to 32 AI Engines, that demonstrates the high parallel scalability of the solution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。