Skip to main content
QUICK REVIEW

[Paper Review] Accurate runtime selection of optimal MPI collective algorithms using analytical performance modelling

Emin Nuriyev, Alexey Lastovetsky|arXiv (Cornell University)|Apr 23, 2020
Distributed and Parallel Computing SystemsComputer Science5 citations
TL;DR

This paper proposes a model-based approach for accurate, efficient runtime selection of optimal MPI collective algorithms by deriving analytical performance models directly from algorithm code and estimating parameters via algorithm-specific communication experiments. The method achieves 100% selection accuracy on Open MPI's broadcast and gather operations, outperforming empirical decision functions that often fail to select the optimal algorithm.

ABSTRACT

The performance of collective operations has been a critical issue since the advent of MPI. Many algorithms have been proposed for each MPI collective operation but none of them proved optimal in all situations. Different algorithms demonstrate superior performance depending on the platform, the message size, the number of processes, etc. MPI implementations perform the selection of the collective algorithm empirically, executing a simple runtime decision function. While efficient, this approach does not guarantee the optimal selection. As a more accurate but equally efficient alternative, the use of analytical performance models of collective algorithms for the selection process was proposed and studied. Unfortunately, the previous attempts in this direction have not been successful. We revisit the analytical model-based approach and propose two innovations that significantly improve the selective accuracy of analytical models: (1) We derive analytical models from the code implementing the algorithms rather than from their high-level mathematical definitions. This results in more detailed models. (2) We estimate model parameters separately for each collective algorithm and include the execution of this algorithm in the corresponding communication experiment. We experimentally demonstrate the accuracy and efficiency of our approach using Open MPI broadcast and gather algorithms and a Grid5000 cluster.

Motivation & Objective

  • To address the persistent challenge of suboptimal MPI collective algorithm selection across diverse platforms, message sizes, and process counts.
  • To improve upon existing empirical decision functions that, while efficient, do not guarantee optimal algorithm selection.
  • To revive and enhance the analytical performance modeling approach, which previously failed due to insufficient model accuracy.
  • To develop a method that combines high accuracy with low runtime overhead for practical deployment in MPI implementations.
  • To validate the approach experimentally using Open MPI's broadcast and gather algorithms on a real-world cluster.

Proposed method

  • Derive analytical performance models directly from the source code of MPI collective algorithms, rather than from high-level mathematical abstractions, to capture low-level implementation details.
  • Design communication experiments where the target algorithm's execution dominates the total time, ensuring accurate parameter estimation.
  • Estimate model parameters (e.g., latency α and bandwidth β) separately for each algorithm using Huber regression on measured execution times.
  • Use the resulting detailed analytical models in a decision function to select the optimal algorithm at runtime based on message size and number of processes.
  • Construct models using a point-to-point communication model of the form T = α + β × m, where m is message size, and calibrate parameters via controlled experiments.
  • Integrate the model-based decision function into MPI routines to enable efficient, accurate, and transparent algorithm selection.

Experimental results

Research questions

  • RQ1Can analytical performance models derived from source code achieve higher accuracy than models based on high-level mathematical definitions?
  • RQ2Does estimating model parameters separately for each algorithm, using algorithm-specific experiments, significantly improve selection accuracy?
  • RQ3Can a model-based approach match the efficiency of empirical decision functions while guaranteeing optimal algorithm selection?
  • RQ4To what extent does the context of point-to-point communication usage affect the effective communication time in collective algorithms?
  • RQ5Can the proposed method consistently select the best MPI collective algorithm across varying message sizes and process counts?

Key findings

  • The proposed method achieved 100% accuracy in selecting the optimal MPI_Bcast and MPI_Gather algorithms across all tested configurations, outperforming Open MPI’s default empirical decision function.
  • The analytical models derived from code implementation captured implementation-specific details, enabling accurate performance comparison between algorithms with similar high-level logic.
  • Parameter estimation using algorithm-dominant experiments yielded consistent and accurate values for α and β, with notable differences observed between algorithms and collective operations.
  • The Split-binary and Binary tree broadcast algorithms exhibited different effective communication times despite using the same virtual topology, attributable to differences in parallelism and communication patterns.
  • The model-based decision function was as efficient as empirical methods, with minimal runtime overhead, making it suitable for production use in MPI libraries.
  • The results demonstrate that analytical modeling, when properly calibrated using implementation-aware models and targeted experiments, can reliably replace empirical decision functions in MPI.

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.