arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.04395cs.DCcs.ARcs.PL
收藏

紧耦合处理器阵列的符号循环编译

Symbolic Loop Compilation for Tightly Coupled Processor Arrays

Michael Witterauf, Dominik Walter, Frank Hannig, Jürgen Teich

摘要:

紧耦合处理器阵列(TCPAs)是一类大规模并行循环加速器,其循环编译需要解决NP难问题,但依赖于循环边界和可用处理单元(PE)的数量,由于动态资源管理和输入大小,这些参数只有在运行时才知道。因此,本文提出了一种称为符号循环编译的两阶段方法:在编译时,解决了必要的NP完全问题,并将解决方案编译为空间有效的符号配置。在运行时,根据参数值从符号配置生成具体配置。我们发现,后一阶段,称为实例化,运行在多项式时间与其最复杂的步骤,程序实例化,而不是依赖于PE的数量。作为验证,我们对真实世界的循环执行了符号循环编译,并测量了时间和空间需求。我们的实验证实,一个符号配置是空间有效的,适合于系统内存少-通常,一个符号配置小于一个单一的具体配置-程序实例化规模以及与PE的数量-例如,当实例化一个矩阵矩阵乘法的符号配置,执行时间是类似的$4\times 4$和$32\times 32$ PE。

英文摘要:

Loop compilation for Tightly Coupled Processor Arrays (TCPAs), a class of massively parallel loop accelerators, entails solving NP-hard problems, yet depends on the loop bounds and number of available processing elements (PEs), parameters known only at runtime because of dynamic resource management and input sizes. Therefore, this article proposes a two-phase approach called symbolic loop compilation: At compile time, the necessary NP-complete problems are solved and the solutions compiled into a space-efficient symbolic configuration. At runtime, a concrete configuration is generated from the symbolic configuration according to the parameters values. We show that the latter phase, called instantiation, runs in polynomial time with its most complex step, program instantiation, not depending on the number of PEs. As validation, we performed symbolic loop compilation on real-world loops and measured time and space requirements. Our experiments confirm that a symbolic configuration is space-efficient and suited for systems with little memory -- often, a symbolic configuration is smaller than a single concrete configuration -- and that program instantiation scales well with the number of PEs -- for example, when instantiating a symbolic configuration of a matrix-matrix multiplication, the execution time is similar for $4\times 4$ and $32\times 32$ PEs.

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

↑