寻找最佳收缩阵列:全面的自动化探索框架和吸取的教训
Search for Optimal Systolic Arrays: A Comprehensive Automated Exploration Framework and Lessons Learned
摘要:
系统阵列已广泛用于加速HPC和深度学习应用。以前有很多关于脉动阵列性能调整的工作,但通常基于许多过于简化的假设(例如,仅考虑用于环路平铺的因子、基于片外数据通信的修剪)以减小设计空间。在本文中,我们提出了一个全面的设计空间探索工具命名为奥德赛脉动阵列优化。Odyssey不依赖于人为假设来限制设计空间,但它是高效的,可扩展的混合优化技术。例如,对于1024x1024x1024矩阵乘法,它可以找到在5秒内使用单个CPU线程达到90%最佳性能的设计。此外,使用奥德赛,我们揭示和量化的次优引入多个常用的过度简化在以前的研究脉动阵列设计空间探索。例如,Odyssey的结果表明,限制循环平铺的除数会导致39%的性能损失,而基于片外数据移动的修剪会导致45%的性能损失。我们应用Odyssey来探索矩阵乘法和卷积神经网络的架构权衡,为这两个应用的可能优化提供灵感。
英文摘要:
Systolic arrays have been widely used for accelerating HPC and deep learning applications. There is a plethora of previous works on the performance tuning of systolic arrays, but usually based on a number of oversimplified assumptions (e.g., only considering divisors for loop tiling, pruning based on off-chip data communication) to reduce the design space. In this paper, we present a comprehensive design space exploration tool named Odyssey for systolic array optimization. Odyssey does not rely on artificial assumptions to limit the design space, and yet it is highly efficient and scalable with a hybrid optimization technique. For example, for a 1024x1024x1024 matrix multiplication, it finds designs that reach 90% of the optimal performance in 5 seconds with a single CPU thread. Moreover, using Odyssey, we unveil and quantify the suboptimality introduced by multiple commonly used oversimplifications in prior studies for systolic array design space exploration. For example, Odyssey results show that limiting to divisors for loop tiling leads to a 39% performance loss, and pruning based on off-chip data movement results in a 45% performance loss. We applied Odyssey to explore the architecture trade-offs for matrix multiplication and convolutional neural network, providing inspiration into possible optimizations for these two applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。