期刊文献+

编译器指导的OpenMP Fortran程序数据分布

Compiler Guided Data Distribution for OpenMP Fortran Program
下载PDF
导出
摘要 数据分布是提高分布存储系统上OpenMP程序性能的主要方法之一.基于两阶段分析方法,提出了一个面向OpenMP程序的自动数据分布框架及算法并实现其于CCRGOpenMP编译器之中.第一阶段,编译器分析程序中数据访问模式,结合OpenMP程序中DO指导命令提供的任务调度信息,为每次数组访问产生分布方式候选;第二阶段,采用多面体作为迭代空间及数组空间的几何模型,提出自动计算有界多面体中整数点个数以衡量通信量之多少的方法,并且用Ehrhart多项式表示其结果以更便于符号比较和最优分布方式的选取.实验表明,在最终选取的分布方式下,程序性能明显优于其他候选分布方式. Data distribution is one of the most important approaches to improve the performance ot OpenMP program on distributed memory system. OpenMP directives can provide valuable information to guide data distribution, such as task schedule and runtime context. In this paper, an automatic data distribution algorithm for OpenMP program is presented and implemented in the CCRG OpenMP compiler. According to the two-steps analysis method, the compiler decides the optimal data distribution pattern of each shared array automatically in a quantitative way. In the first step, the compiler analyzes the data access pattern in each parallel loop nest, then produces a candidate data distribution pattern for each shared array reference according to the OpenMP DO directive. In the second step, an automatic numeration method is introduced to make the optimal selection of data distribution pattern based on the convex polytope, which is treated as the geometric model of iteration space and array space. We built the convex polytope composed of the iteration points which access the shared array locally, and compute the number of integer iteration points contained in that convex polytope. Then the result is expressed as the Ehrhart polynomial to indicate the amount of the local accesses, the criterion of the best choice, which is helpful to optimal selection. The results of the experiments show that under the selected optimal data distribution pattern, the performanceof program is obviously better than that under the others.
出处 《南京大学学报(自然科学版)》 CAS CSCD 北大核心 2005年第5期562-568,共7页 Journal of Nanjing University(Natural Science)
基金 国家863软件专项(2002AA1Z2101 2004AA1Z2210)
关键词 OPENMP 数据分布 空间多面体 Ehrhart多项式 OpenMP, data distribution, polytope, Ehrhart polynomial
  • 相关文献

参考文献13

  • 1OpenMP Architecture Review Board. OpenMP fortran application program interface, Version 2.0.http ://www. openmp. org, 2000 11.
  • 2Bircsak J, Craig P, Crowell R, et al. Extending OpenMP for NUMA machines. Donnelley J. Procecdings of the 2000 IEEE/ACM Conference on Supercon:puting: High Performance Networking and Computing. United States: IEEE Computer Society, 2000, 48-78.
  • 3Nikolopoulos D S, Papatheodorou T S, Polychronopoulos C D, et al. User-level dynamic page migration for multiprogrammed shared-memory multiprocessors. Proceedings of the 2000 International Conference on Parallel Processing. Canada: IEEE Computer Societv, 2000, 95-103.
  • 4Li J, Chen M. The data alignment phase in compiling programs for distributed memory machines.Journal of Parallel Distributed Computing, 1991,13:213-221.
  • 5Kennedy K, Kremer U. Automatic data layout for high performance fortran. Proceedings of the 1995 ACM/IEEE Conference on Supercomputing. SCA:ACM Press, 1995, 76- 100.
  • 6Anderson J M, Lam M S. Global optimizations for parallelism and locality on scalable parallel Machine.Proceedings of SIGPLAN' 93 Conference on Programming Language Design and Implementation.New Mexico: Albuquerque, 1993, 112- 125.
  • 7Garcia J, Ayguade E, Labarta J. A novel approach towards automatic data distribution. Karin S. Proceedings of the 1995 ACM/IEEE Conference on Supercomputing. CA: ACM Press, 1995, 116-130.
  • 8Clauss P, Loechner V, Wilde D. Deriving formulae to count mlutions to parameterized linear systems using Ehrhart Polynomials: Applications to the analysis of nested-loop programs. Research Report.Bd. S. Brant: ICPS, Universite Louis Pasteur de Strasbourg. 1997,1-29.
  • 9Wilde D. A library for doing polyhedral operations.Technical Report 785. IRISA, Institut de Recherche en Informatique et Systemes.Aleatoires, 1993, 1-49.
  • 10Loechner V. Polylib: A library for manipulating parameterized polyhedra. Research Report. Bd.S. Brant: ICPS, Universite Louis Pasteur deStrasbourg, 1997, 1-14.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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