首页 | 本学科首页   官方微博 | 高级检索  
     

基于循环分块的流水粒度优化算法
引用本文:刘晓娴 赵荣彩 丁锐 李雁冰. 基于循环分块的流水粒度优化算法[J]. 计算机应用, 2013, 33(8): 2171-2176
作者姓名:刘晓娴 赵荣彩 丁锐 李雁冰
作者单位:1. 数学工程与先进计算国家重点实验室,郑州 4500022. 信息工程大学,郑州 450002;
基金项目:“核高基”国家科技重大专项
摘    要:当计算划分层迭代数目较大,或是循环体单次迭代工作量较大,但可用的并行线程数目较小时,传统的基于循环分块的流水粒度优化方法无法进行处理。为此,提出一种基于循环分块减小流水粒度的方法,并根据流水并行循环的代价模型实现最优流水粒度的求解,设计实现了一个流水计算粒度的优化算法。对有限差分松弛法(FDR)的波前循环和时域有限差分法(FDTD)中典型循环的测试表明,与传统的流水粒度选择方法相比,所提算法能够得到更优的循环分块大小。

关 键 词:自动并行化  流水并行  流水粒度  循环分块  代价模型  
收稿时间:2013-02-18
修稿时间:2013-03-25

Pipelining granularity optimization algorithm based on loop tiling
LIU Xiaoxian ZHAO Rongcai DING Rui LI Yanbing. Pipelining granularity optimization algorithm based on loop tiling[J]. Journal of Computer Applications, 2013, 33(8): 2171-2176
Authors:LIU Xiaoxian ZHAO Rongcai DING Rui LI Yanbing
Affiliation:1. .Information Engineering University, Zhengzhou Henan 450002, China
2. State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou Henan 450002, China
Abstract:When the pipelining loop has a great number of iterations, or the size of its body is large, but the number of available threads is small, the workload between two synchronizations of a thread is so heavy, which produces pretty low degree of parallelism. The traditional trade-off approach based on loop tiling cannot handle the above situation. To solve this problem, a pipelining granularity decreasing approach based on loop tiling was proposed. The optimal pipelining granularity was obtained by building the cost model for pipelining loop and a pipelining granularity optimizing algorithm was implemented. By measuring the wavefront loops of Finite Difference Relaxation (FDR) and the representative loops of Finite Difference Time Domain (FDTD), the loops show better performance improvement by using the proposed algorithm than the traditional one.
Keywords:automatic parallelization   pipelining parallelization   pipelining granularity   loop tiling   cost model
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号