arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2010.04868cs.MScs.PF
收藏

时间向量化的立体图

Temporal Vectorization for Stencils

Liang Yuan, Hang Cao, Yunquan Zhang, Kun Li, Pengqi Lu, Yue Yue

摘要:

在科学和工程应用中,嵌套循环计算代表了一类非常常见的嵌套循环。利用现代CPU中的向量单元对于实现峰值性能至关重要。以前的向量化方法通常考虑数据空间,特别是最里面的单位步幅循环。由于连续模板计算之间的数据共享,导致向量加载重叠,这是众所周知的数据对齐冲突问题。本文提出了一种新的时态矢量化方法。它在迭代空间中向量化模板计算,并将具有不同时间坐标的点集合在一个向量中。时间向量化导致与向量长度、模板顺序和维度无关的少量固定数量的向量重组。此外,它也适用于Gauss-Seidel空间,其矢量化还没有得到很好的研究。各种Jacobi和Gauss-Seidel模板证明了时间矢量化的有效性。

英文摘要:

Stencil computations represent a very common class of nested loops in scientific and engineering applications. Exploiting vector units in modern CPUs is crucial to achieving peak performance. Previous vectorization approaches often consider the data space, in particular the innermost unit-strided loop. It leads to the well-known data alignment conflict problem that vector loads are overlapped due to the data sharing between continuous stencil computations. This paper proposes a novel temporal vectorization scheme for stencils. It vectorizes the stencil computation in the iteration space and assembles points with different time coordinates in one vector. The temporal vectorization leads to a small fixed number of vector reorganizations that is irrelevant to the vector length, stencil order, and dimension. Furthermore, it is also applicable to Gauss-Seidel stencils, whose vectorization is not well-studied. The effectiveness of the temporal vectorization is demonstrated by various Jacobi and Gauss-Seidel stencils.

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

↑