利用等周体最小化科学计算中的Cache丢失
Minimizing Cache Misses in Scientific Computing Using Isoperimetric Bodies
摘要:
用于提高科学计算中的高速缓存性能的许多已知技术涉及迭代空间的重新排序。这些重排中的一些可以被认为是迭代空间的覆盖,其具有小的表面积与体积比。使用这样的集合可以减少在具有迭代空间作为其域的局部算子的计算中的高速缓存未命中的数量。首先,我们推导出的下限缓存未命中,任何算法必须遭受,而计算一个本地操作网格上。然后,我们探索覆盖的迭代空间的结构化和非结构化离散网格运营商,使我们能够接近这些下限。对于结构化网格,我们引入了一个覆盖的连续最小瓦片的基础上的网格的干扰格。我们发现,覆盖有一个小的表面体积比,并提出了一个计算机实验,显示实际减少的缓存未命中实现通过使用这些瓦片。对于平面非结构化网格,我们表明存在一个覆盖,减少了缓存未命中的结构化网格的水平。接下来,我们介绍了一类多维网格,称为星空网格在本文中。这些网格代表了非结构化网格的抽象,例如,分子模拟和偏微分方程的解。我们发现,星空网格可以覆盖集具有低的表面体积比,因此具有相同的缓存效率结构化网格。最后,我们提出了一个三维立方体的三角剖分,具有的属性,任何本地操作相应的网格上必须招致一个显着更大的数量的缓存未命中比类似的操作相同大小的结构化网格。
英文摘要:
A number of known techniques for improving cache performance in scientific computations involve the reordering of the iteration space. Some of these reorderings can be considered coverings of the iteration space with sets having small surface-to-volume ratios. Use of such sets may reduce the number of cache misses in computations of local operators having the iteration space as their domain. First, we derive lower bounds on cache misses that any algorithm must suffer while computing a local operator on a grid. Then, we explore coverings of iteration spaces of structured and unstructured discretization grid operators which allow us to approach these lower bounds. For structured grids we introduce a covering by successive minima tiles based on the interference lattice of the grid. We show that the covering has a small surface-to-volume ratio and present a computer experiment showing actual reduction of the cache misses achieved by using these tiles. For planar unstructured grids we show existence of a covering which reduces the number of cache misses to the level of that of structured grids. Next, we introduce a class of multidimensional grids, called starry grids in this paper. These grids represent an abstraction of unstructured grids used in, for example, molecular simulations and the solution of partial differential equations. We show that starry grids can be covered by sets having a low surface-to-volume ratio and, hence have the same cache efficiency as structured grids. Finally, we present a triangulation of a three-dimensional cube that has the property that any local operator on the corresponding grid must incur a significantly larger number of cache misses than a similar operator on a structured grid of the same size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。