Skip to main content
QUICK REVIEW

[Paper Review] A hybrid MPI-OpenMP scheme for scalable parallel pseudospectral computations for fluid turbulence

Pablo D. Mininni, Duane Rosenberg|arXiv (Cornell University)|Mar 23, 2010
Solar and Space Plasma DynamicsPhysics and Astronomy10 references11 citations
TL;DR

This paper presents a hybrid MPI-OpenMP scheme for scalable pseudospectral simulations of fluid turbulence, combining distributed-memory (MPI) and shared-memory (OpenMP) parallelism to enhance performance on petascale systems. It achieves near-ideal scalability up to ~20,000 cores with 83% mean efficiency, optimizing thread and process counts for two high-performance platforms.

ABSTRACT

A hybrid scheme that utilizes MPI for distributed memory parallelism and OpenMP for shared memory parallelism is presented. The work is motivated by the desire to achieve exceptionally high Reynolds numbers in pseudospectral computations of fluid turbulence on emerging petascale, high core-count, massively parallel processing systems. The hybrid implementation derives from and augments a well-tested scalable MPI-parallelized pseudospectral code. The hybrid paradigm leads to a new picture for the domain decomposition of the pseudospectral grids, which is helpful in understanding, among other things, the 3D transpose of the global data that is necessary for the parallel fast Fourier transforms that are the central component of the numerical discretizations. Details of the hybrid implementation are provided, and performance tests illustrate the utility of the method. It is shown that the hybrid scheme achieves near ideal scalability up to ~20000 compute cores with a maximum mean efficiency of 83%. Data are presented that demonstrate how to choose the optimal number of MPI processes and OpenMP threads in order to optimize code performance on two different platforms.

Motivation & Objective

  • To enable direct numerical simulation (DNS) of high-Reynolds-number fluid turbulence on emerging petascale architectures with massive core counts.
  • To overcome the scalability limitations of pure MPI-based pseudospectral solvers, especially in global FFT transforms and all-to-all communication patterns.
  • To develop a portable, scalable, and efficient hybrid parallelization model that leverages both MPI and OpenMP for hierarchical multi-core systems.
  • To optimize the balance between MPI processes and OpenMP threads for peak performance on diverse platforms like IBM Power6 and Cray XT5.
  • To extend the applicability of pseudospectral methods to non-Fourier basis problems (e.g., spherical harmonics) where pure MPI 2D decomposition fails.

Proposed method

  • The method builds on an existing MPI-parallelized pseudospectral code using a 1D slab domain decomposition for initial parallelization.
  • It introduces loop-level OpenMP directives to add a second level of parallelism within each MPI process, enabling shared-memory parallelism on multi-core nodes.
  • The hybrid scheme modifies the domain decomposition to support two-level parallelism, improving load balancing and reducing communication overhead in large-scale FFTs.
  • It employs multi-threaded FFT libraries to accelerate spectral transforms, reducing latency in global data transpositions.
  • The implementation is designed to be portable across systems without low-level tuning, relying on standard MPI and OpenMP abstractions.
  • Performance tuning includes configuration of MPI environment variables such as MPICH_FAST_MEMCPY to reduce memory copy latency, though at the cost of increased buffer memory usage.

Experimental results

Research questions

  • RQ1Can a hybrid MPI-OpenMP approach achieve better scalability and performance than pure MPI for pseudospectral fluid simulations on petascale systems?
  • RQ2What is the optimal configuration of MPI processes and OpenMP threads for maximizing performance on modern multi-core architectures?
  • RQ3How does thread overhead and memory consumption affect scalability, especially at high core counts and large problem sizes?
  • RQ4Can the hybrid model effectively support non-Fourier spectral bases like spherical harmonics, where pure MPI 2D decomposition fails?
  • RQ5How does the hybrid scheme perform across different hardware platforms with varying core counts and memory hierarchies?

Key findings

  • The hybrid MPI-OpenMP scheme achieves near-ideal scalability up to approximately 20,000 compute cores, with a maximum mean efficiency of 83%.
  • On the Cray XT5 system (kraken), optimal performance is achieved with 12 OpenMP threads per MPI process for large problems, while 6 threads yield better performance at smaller workloads due to reduced thread overhead.
  • On the IBM Power6 system (bluefire), thread overhead becomes significant at lower resolutions, limiting scalability when core counts per socket are small.
  • The use of the MPI environment variable MPICH_FAST_MEMCPY yields an 8–10% performance improvement but increases buffer memory requirements, potentially causing memory overflow at large resolutions.
  • The hybrid approach reduces the number of MPI processes, thereby decreasing buffer memory demands and mitigating MPI-related memory bottlenecks.
  • The method is effective even for non-cubic domains, demonstrating robustness across varying aspect ratios in computational geometry.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.