IAAT:一个面向小型GEMM的输入感知自适应调优框架
IAAT: A Input-Aware Adaptive Tuning framework for Small GEMM
摘要:
GEMM具有输入矩阵小的特点,在高性能计算、机器学习等领域得到了广泛的应用。虽然许多著名的BLAS库已经支持小型GEMM,但它们无法实现接近最佳的性能。这是因为包装操作的成本很高,并且不能忽视频繁的边界处理。本文提出了一种输入感知自适应调优框架(IAAT)的小型GEMM,以克服性能瓶颈,在国家的最先进的实现。IAAT由两个阶段组成,安装时阶段和运行时阶段。在运行时阶段,IAAT将矩阵平铺成块以减轻边界处理。该阶段利用输入感知自适应瓦片算法,并扮演运行时调优的角色。在安装阶段,IAAT自动生成数百个不同大小的内核,以消除打包操作。最后,IAAT根据块的大小调用不同的核函数完成小GEMM的计算。实验结果表明,IAAT在ARMv8平台上的性能优于其他BLAS库。
英文摘要:
GEMM with the small size of input matrices is becoming widely used in many fields like HPC and machine learning. Although many famous BLAS libraries already supported small GEMM, they cannot achieve near-optimal performance. This is because the costs of pack operations are high and frequent boundary processing cannot be neglected. This paper proposes an input-aware adaptive tuning framework(IAAT) for small GEMM to overcome the performance bottlenecks in state-of-the-art implementations. IAAT consists of two stages, the install-time stage and the run-time stage. In the run-time stage, IAAT tiles matrices into blocks to alleviate boundary processing. This stage utilizes an input-aware adaptive tile algorithm and plays the role of runtime tuning. In the install-time stage, IAAT auto-generates hundreds of kernels of different sizes to remove pack operations. Finally, IAAT finishes the computation of small GEMM by invoking different kernels, which corresponds to the size of blocks. The experimental results show that IAAT gains better performance than other BLAS libraries on ARMv8 platform.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。