作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (24): 37-40. doi: 10.3969/j.issn.1000-3428.2006.24.014

• 软件技术与数据库 • 上一篇    下一篇

OpenMP并行程序的编译器优化

张 平,李清宝,赵荣彩   

  1. (解放军信息工程大学信息工程学院,郑州 450002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-12-20 发布日期:2006-12-20

Compiler Optimization Algorithm for OpenMP Parallel Program

ZHANG Ping, LI Qingbao, ZHAO Rongcai   

  1. (School of Information and Engineering, PLA Information and Engineering University, Zhengzhou 450002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-12-20 Published:2006-12-20

摘要: OpemMP标准以其良好的可移植性和易用性被广泛应用于并行程序设计。该文讨论了OpenMP并行程序的编译器优化算法,在编译过程中通过并行区合并和扩展,实现并行区重构,并在并行区中实现了基于跨处理器相关图的barrier同步优化。分析验证表明,这些优化策略减少了并行区和barrier同步的数目,有效地提高了OpenMP程序的并行性能。

关键词: 跨处理器相关, barrier同步, 并行区重构, 数据相关图

Abstract: OpenMP is widely used in parallel programming for its portability and simplicity. This paper introduces the compiler optimization algorithms for OpenMP parallel program. In compiling, parallel regions are reconstructed through extension and combination. And a barrier synchronization optimization algorithm based on cross-processor dependence graph is developed to eliminate redundant barriers in each parallel region. Analysis show that these strategies reduce the number of parallel region and barrier synchronization, and can improve the parallel performance of OpenMP program.

Key words: Cross-processor dependence, Barrier synchronization, Parallel region reconstruction, Data dependence graph