结构化离散网格上模板操作的高效缓存使用
Efficient cache use for stencil operations on structured discretization grids
摘要:
我们推导出严格的边界上的缓存未命中的结构化网格上的显式模板运算符的评估。我们的下限是基于离散八面体的等周性。我们的上限是基于良好的表面体积比的平行四边形跨越减少基础的网格的干涉晶格。测量结果表明,我们的算法通常减少了三个因素相对于编译器优化的代码的高速缓存未命中的数量。我们表明,模板计算网格的干扰格有一个短的矢量功能异常高的高速缓存未命中。我们称这样的网格是不利的,并建议在计算中通过适当的填充来避免这些网格。通过对MIPS R10000的直接测量,我们显示出异常高的缓存未命中和不利的三维网格的良好相关性。
英文摘要:
We derive tight bounds on cache misses for evaluation of explicit stencil operators on structured grids. Our lower bound is based on the isoperimetrical property of the discrete octahedron. Our upper bound is based on good surface to volume ratio of a parallelepiped spanned by a reduced basis of the inter- ference lattice of a grid. Measurements show that our algorithm typically reduces the number of cache misses by factor of three relative to a compiler optimized code. We show that stencil calculations on grids whose interference lattice have a short vector feature abnormally high numbers of cache misses. We call such grids unfavorable and suggest to avoid these in computations by appropriate padding. By direct measurements on MIPS R10000 we show a good correlation of abnormally high cache misses and unfavorable three-dimensional grids.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。