计算机科学 ›› 2012, Vol. 39 ›› Issue (3): 290-294.

• 体系结构 • 上一篇    下一篇

基于主导值的计算和数据自动划分算法

丁锐,赵荣彩,韩林   

  1. (解放军信息工程大学计算机科学与技术系 郑州 450002)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Automatic Computation and Data Decomposition Algorithm Based on Dominant Value

  • Online:2018-11-16 Published:2018-11-16

摘要: 计算和数据自动划分是并行化编译中一种自动分配计算和数据到各个处理机的优化技术,划分的结果直接 影响程序并行的性能。数组是划分处理的主要对象之一,一些数组分布后的收益不高,但带来的并行约束却能对其它 数组的划分产生干扰,导致大量数据重分布通信的产生。现有的划分算法中没有约定数组分布的优先次序,因此无法 限制这些数组并行约束的传播,降低了优化编译器后端自动生成并行代码的性能。提出了一种基于主导值的计算和 数据自动划分算法:将划分过程中数组对程序并行性的影响量化为主导值,并依据主导值的大小约定数组分布的优先 次序,限制干扰数组并行约束的传播速度,提高划分结果的合理性。实验结果表明,算法能够获得良好的划分效果。

关键词: 自动并行化,计算划分,数据分布,主导值,约束

Abstract: Automatic computation and data decomposition are an optimization technique that distributes computations and data onto different processors. The decomposition result has a direct impact on the performance of program's paral- lelization. Array is one of main targets of treatment for the decomposition algorithm, and some profits of them are not e- nough after parallclization, but it will bring constraints and disrupt the other distribution of array, leading to large a- mounts communication of data re-distribution. The decomposition algorithm in existing has no agreement in the order of array distribution, therefore can't restrict propagation of constraint of array' s parallelization, reducing performance of optimized parallel code automatically generated by the back-end compiler. This paper presented an automatic computa- tion and data decomposition based on the dominant values. Algorithm quantified the impact of array on the programs' parallelism as the dominant value, and agreed priorities of distribution based on the size of the dominant values of array, limited the spread speed of constraints of interference array, improved the reasonableness of decomposition results. Ex- perimental results show that the algorithm can get good decomposition results.

Key words: Automatic parallelization, Computation decomposition, Data decomposition, Dominant values, Constraint

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!