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

MG3MConv:面向SW26010处理器的多粒度矩阵乘法映射卷积算法

MG3MConv: Multi-Grained Matrix-Multiplication-Mapping Convolution Algorithm toward the SW26010 Processor

Zheng Wu

AI总结:

本文提出面向SW26010处理器的多粒度矩阵乘法映射卷积算法MG3MConv,通过线程块概念和四层次架构优化提升硬件效率,在多数场景下性能优于cuDNN,并在VGG网络上达到cuDNN的1.37倍、swDNN的1.96倍。

摘要:

作为人工智能应用的核心,卷积研究已成为高性能计算领域的热点。随着新兴SW26010处理器在人工智能领域的快速发展,该处理器上迫切需要高性能卷积算法。然而,目前SW26010上对卷积的支持仍处于初级阶段。现有研究虽然提供了足够的运行时峰值性能,但缺乏对各种卷积场景的适应性。为完善SW26010上的卷积算法,我们提出了一种名为MG3MConv的多粒度矩阵乘法映射卷积算法,该算法针对SW26010的架构特征设计。MG3MConv基于本文提出的线程块概念,支持卷积任务的多样化映射方案。所有面向架构的优化方法均从四个层次精心设计,以充分挖掘SW26010的硬件效率。实验表明,MG3MConv的硬件效率最高可达84.78%,是基于NVIDIA K80m GPU的cuDNN的1.75倍。此外,MG3MConv在大多数卷积场景中性能优于cuDNN。我们还使用六个代表性CNN作为实际案例,MG3MConv在VGG网络模型上的硬件效率最高达到67.04%,分别是cuDNN和swDNN的1.37倍和1.96倍。

英文摘要:

As the core of artificial intelligence applications, the research of convolution has become a hot topic in high performance computing. With the rapid development of the emerging SW26010 processor in artificial intelligence, there is an urgent need for high-performance convolution algorithms on the processor. However, the current support of convolution on SW26010 is still rudimentary. The only studies provide sufficient runtime peak performance but lack the adaptability to various convolution scenes. To perfect convolution algorithms on SW26010, we propose a multi-grained matrix-multiplication-mapping convolution algorithm called MG3MConv, which targets the architectural features of SW26010. MG3MConv supports diversified mapping schemes of convolution tasks based on the concept of the thread block proposed in this paper. All the architecture-oriented optimization methods are elaborately designed from four levels to fully exploit the hardware efficiency of SW26010. The experiments show that the hardware efficiency of MG3MConv can reach 84.78% in max, which is 1.75 times compared with that of cuDNN based on NVIDIA K80m GPU. Moreover, MG3MConv can overperform cuDNN in most convolution scenes. We also use six representative CNNs as real-world cases, and the hardware efficiency of MG3MConv reaches up to 67.04% on the VGG network model, which is 1.37 times and 1.96 times that of cuDNN and swDNN, respectively.

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

↑