智能展开:在不规则应用程序中利用规则模式
Intelligent-Unrolling: Exploiting Regular Patterns in Irregular Applications
摘要:
现代优化编译器能够利用存储器访问或计算模式来生成向量化代码。然而,由于输入依赖性,不规则应用程序中的这种模式直到运行时才知道。因此,无论是编译器的静态优化还是基于特定输入的配置文件引导的优化都不能预测任何公共输入的模式,这导致次优的代码生成。为了应对这一挑战,我们开发了智能展开,一个框架,自动优化不规则的应用程序与矢量化。智能展开允许用户使用\textit{code seed}来描述计算任务,其中存储器访问和计算模式在\textit{feature table}和\textit{information-code tree}中表示,并生成高效的代码。此外,智能展开采用了几种新的优化技术来优化归约操作和聚集/分散指令。我们评估智能展开与稀疏矩阵向量乘法(SpMV)和图形应用程序。实验结果表明,智能展开是能够生成更有效的矢量化代码相比,国家的最先进的实现。
英文摘要:
Modern optimizing compilers are able to exploit memory access or computation patterns to generate vectorization codes. However, such patterns in irregular applications are unknown until runtime due to the input dependence. Thus, either compiler's static optimization or profile-guided optimization based on specific inputs cannot predict the patterns for any common input, which leads to suboptimal code generation. To address this challenge, we develop Intelligent-Unroll, a framework to automatically optimize irregular applications with vectorization. Intelligent-Unroll allows the users to depict the computation task using \textit{code seed} with the memory access and computation patterns represented in \textit{feature table} and \textit{information-code tree}, and generates highly efficient codes. Furthermore, Intelligent-Unroll employs several novel optimization techniques to optimize reduction operations and gather/scatter instructions. We evaluate Intelligent-Unroll with sparse matrix-vector multiplication (SpMV) and graph applications. Experimental results show that Intelligent-Unroll is able to generate more efficient vectorization codes compared to the state-of-the-art implementations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。