Skip to main content
QUICK REVIEW

[Paper Review] Asynchronous MPI for the Masses

Markus Wittmann, Georg Hager|arXiv (Cornell University)|Feb 18, 2013
Parallel Computing and Optimization TechniquesComputer Science10 references22 citations
TL;DR

This paper presents APSM (Asynchronous Progress Support for MPI), a library that enables truly asynchronous non-blocking MPI communication across diverse MPI implementations without code changes. By leveraging the MPI profiling interface (PMPI) and a dedicated progress thread, it decouples communication progress from application threads, achieving significant performance gains—especially on large-scale systems—by overlapping computation and communication, even in the absence of native asynchronous support in MPI libraries.

ABSTRACT

We present a simple library which equips MPI implementations with truly asynchronous non-blocking point-to-point operations, and which is independent of the underlying communication infrastructure. It utilizes the MPI profiling interface (PMPI) and the MPI_THREAD_MULTIPLE thread compatibility level, and works with current versions of Intel MPI, Open MPI, MPICH2, MVAPICH2, Cray MPI, and IBM MPI. We show performance comparisons on a commodity InfiniBand cluster and two tier-1 systems in Germany, using low-level and application benchmarks. Issues of thread/process placement and the peculiarities of different MPI implementations are discussed in detail. We also identify the MPI libraries that already support asynchronous operations. Finally we show how our ideas can be extended to MPI-IO.

Motivation & Objective

  • To address the widespread misconception that non-blocking MPI inherently enables overlap of communication and computation.
  • To provide a portable, application-transparent solution for enabling asynchronous MPI progress across diverse MPI implementations and hardware platforms.
  • To overcome the limitations of native MPI libraries that lack asynchronous progress or require complex configuration.
  • To demonstrate that asynchronous communication can be effectively overlapped with computation even on systems without dedicated cores for progress threads.
  • To extend the approach to MPI-IO, enabling overlap of I/O operations with computation in I/O-intensive HPC workloads.

Proposed method

  • The APSM library intercepts MPI function calls using the MPI profiling interface (PMPI), allowing it to wrap and monitor all relevant MPI routines.
  • A separate progress thread is spawned per MPI process to handle non-blocking MPI requests asynchronously, ensuring communication progress independent of the application thread.
  • The method relies on MPI_THREAD_MULTIPLE compatibility to allow concurrent MPI calls from multiple threads within a process.
  • For small messages, the library detects and bypasses the progress thread for eager protocol messages, reducing overhead and preserving performance.
  • The library is designed to be transparent to applications, requiring no code changes—only relinking if the application is statically linked against MPI.
  • The approach is extended to MPI-IO by replacing point-to-point calls with non-blocking I/O operations, enabling overlap of I/O with computation.

Experimental results

Research questions

  • RQ1Can a portable, application-transparent library enable truly asynchronous MPI progress across diverse MPI implementations and interconnects?
  • RQ2How does the performance of APSM compare to native asynchronous MPI features and native task-mode execution on real HPC systems?
  • RQ3What impact do message size and eager protocol handling have on the performance of asynchronous progress libraries?
  • RQ4Can APSM effectively enable overlap of computation and I/O in MPI-IO workloads, especially when native MPI libraries do not support asynchronous I/O?
  • RQ5What are the performance implications of using virtual cores instead of physical cores for progress threads in memory-constrained environments?

Key findings

  • APSM achieved performance comparable to native task mode in hybrid-parallel sparse matrix-vector multiplication (spMVM), especially when eager message awareness was enabled.
  • On the DLR1 matrix, APSM with eager awareness maintained high performance beyond 16 nodes, while the non-aware version degraded significantly due to unnecessary progress thread overhead.
  • Open MPI and MVAPICH2 showed no native asynchronous I/O support, but APSM enabled effective overlap of computation and I/O, demonstrating its utility in real-world I/O workloads.
  • Intel MPI did not support APSM due to frequent deadlocks, highlighting implementation-specific limitations even when using the same underlying hardware.
  • Cray MPI and Open MPI showed measurable performance improvements with APSM, even though their native I/O was not asynchronous, proving the library’s effectiveness in bridging gaps in MPI library capabilities.
  • The use of virtual cores for progress threads enabled effective overlap even when no physical cores were available, demonstrating scalability and portability across diverse HPC environments.

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.