Hybrid Parallel Programming on SMP Clusters Using XPFortran and OpenMP

Process-thread hybrid programming paradigm is commonly employed in SMP clusters. XPFortran, a parallel programming language that specifies a set of compiler directives and library routines, can be used to realize process-level parallelism in distributed memory systems. In this paper, we introduce hybrid parallel programming by XPFortran to SMP clusters, in which thread-level parallelism is realized by OpenMP. We present the language support and compiler implementation of OpenMP directives in XPFortran, and show some of our experiences in XPFortran-OpenMP hybrid programming. For nested loops parallelized by process-thread hybrid programming, it’s common sense to use process parallelization for outer loops and thread parallelization for inner ones. However, we have found that in some cases it’s possible to write XPFortran-OpenMP hybrid program in a reverse way, i.e., OpenMP outside, XPFortran inside. Our evaluation results show that this programming style sometimes delivers better performance than the traditional one. We therefore recommend using the hybrid parallelization flexibly.

[1]  Hidetoshi Iwashita,et al.  Mapping Normalization Technique on the HPF Compiler fhpf , 2005, ISHPC.

[2]  Viera Sipková,et al.  Language and Compiler Support for Hybrid-Parallel Programming on SMP Clusters , 2002, ISHPC.

[3]  Sachio Kamiya,et al.  VPP Fortran and the design of HPF/JA extensions , 2002, Concurr. Comput. Pract. Exp..

[4]  Georg Hager,et al.  Hybrid MPI/OpenMP Parallel Programming on Clusters of Multi-Core SMP Nodes , 2009, 2009 17th Euromicro International Conference on Parallel, Distributed and Network-based Processing.