期刊文献+

一种基于空间密铺的星型Stencil并行算法

A Parallel Star Stencil Algorithm Based on Tessellating
下载PDF
导出
摘要 Stencil计算(模板计算)是科学工程应用中一类常见的嵌套循环算法.分块方法是提高数据局部性和并行性的高效优化技术之一,目前已有大量针对分块方法的探索,但现有工作往往对不同Stencil形状都采用同一处理方法.首先在空间层面引出“自然块”的概念来区分星型Stencil和盒型Stencil的特征,然后提出一个新的针对星型Stencil的2层密铺方案,此方案中自然块和它的后继块可以密铺数据空间区域,这些分块沿着时间维度扩展,能够密铺整个迭代空间.此外,针对星型Stencil设计了一个新颖的“2次更新”优化技术,改善了核内数据重用模式.理论分析表明:此方案相比现有方法有更低的缓存复杂度,实验结果证实了此方案的有效性. The Stencil computation,i.e.the structured grid computing,is a very common kind of loop nesting algorithm in scientific and engineering applications.The exhaustively studied tiling method is of great effectiveness as one of the transformation techniques to exploit the data locality and parallelism of Stencil computations.However,the state-of-the-art work of tiling often uniformly handles different Stencil shapes.We first present a concept called natural block to identify the difference between the star and box Stencils.Then we propose a new two-level tessellation scheme for star Stencils,where the natural block,as well as its successive blocks can tessellate the spatial space and their extensions along the time dimension are able to form a tessellation of the iteration space.Furthermore,a novel implementation technique called double updating is developed for star Stencils specifically,which updates each element twice continuously and improves the in-core data reuse pattern.In addition,we adopt coarsening and block reuse to enhance the parallelization performance.Theoretical analysis shows that our scheme achieves a better cache complexity than existing methods such as Girih and Pluto.The experiments on performance and bandwidth are conducted on a multicore system.The results demonstrate the effectiveness of our approach.
作者 曹杭 袁良 黄珊 张云泉 徐勇军 陆鹏起 张广婷 Cao Hang;Yuan Liang;Huang Shan;Zhang Yunquan;Xu Yongjun;Lu Pengqi;Zhang Guangting(State Key Laboratory of Computer Architecture(Institute of Computing Technology,Chinese Academy of Sciences),Beijing 100190;University of Chinese Academy of Sciences,Beijing 100049)
出处 《计算机研究与发展》 EI CSCD 北大核心 2020年第12期2621-2634,共14页 Journal of Computer Research and Development
基金 国家重点研发计划项目(2016YFB0200803) 中国科学院战略性先导科技专项(C类)(XDC01040100) 国家自然科学基金项目(61972376,62072431,61432018) 北京市自然科学基金项目(L182053)。
关键词 Stencil计算 密铺 星型Stencil 盒型Stencil 自然块 Stencil computation tessellation star Stencil box Stencil natural block
  • 相关文献

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部