在Ryzen AI NPUs各代之间平衡:GEMM性能优化
Striking the Balance: GEMM Performance Optimization Across Generations of Ryzen AI NPUs
AI总结:
本文提出了一种优化Ryzen AI NPUs各代GEMM性能的方法,通过端到端评估实现了XDNA和XDNA2在int8和bf16精度下的高性能表现。
摘要:
现代深度学习(DL)工作负载的高计算和内存需求已经导致了从云到边缘的专用硬件设备的发展,例如AMD的Ryzen AI XDNA NPUs。优化这些架构上的通用矩阵乘法(GEMM)算法对于提高DL工作负载性能至关重要。为此,本文提出了一种通用的系统性方法,用于优化当前两种NPU代际,即XDNA和XDNA2的GEMM工作负载。我们的实现利用了AMD NPUs的独特架构特性,并在系统层面解决了关键性能瓶颈。跨各种GEMM大小的端到端性能评估显示,对于8位整数(int8)精度,XDNA达到最高6.76 TOPS,XDNA2达到38.05 TOPS。同样,对于脑浮点(bf16)精度,我们的GEMM实现分别达到3.14 TOPS和14.71 TOPS。这项工作为在Ryzen AI NPUs上优化GEMM工作负载的关键性能方面提供了重要见解。
英文摘要:
The high computational and memory demands of modern deep learning (DL) workloads have led to the development of specialized hardware devices from cloud to edge, such as AMD's Ryzen AI XDNA NPUs. Optimizing general matrix multiplication (GEMM) algorithms for these architectures is critical for improving DL workload performance. To this end, this paper presents a common systematic methodology to optimize GEMM workloads across the two current NPU generations, namely XDNA and XDNA2. Our implementations exploit the unique architectural features of AMD's NPUs and address key performance bottlenecks at the system level. End-to-end performance evaluation across various GEMM sizes demonstrates state-of-the-art throughput of up to 6.76 TOPS (XDNA) and 38.05 TOPS (XDNA2) for 8-bit integer (int8) precision. Similarly, for brain floating-point (bf16) precision, our GEMM implementations attain up to 3.14 TOPS (XDNA) and 14.71 TOPS (XDNA2). This work provides significant insights into key performance aspects of optimizing GEMM workloads on Ryzen AI NPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。