Recent Advances in Parallel Virtual Machine and Message Passing Interface

Volume 3241 of the series Lecture Notes in Computer Science pp 18-27

Verifying Collective MPI Calls

  • Jesper Larsson TräffAffiliated withC&C Research Laboratories, NEC Europe Ltd
  • , Joachim WorringenAffiliated withC&C Research Laboratories, NEC Europe Ltd

* Final gross prices may vary according to local VAT.

Get Access


The collective communication operations of MPI, and in general MPI operations with non-local semantics, require the processes participating in the calls to provide consistent parameters, eg. a unique root process, matching type signatures and amounts for data to be exchanged, or same operator. Under normal use of MPI such exhaustive consistency checks are typically too expensive to perform and would compromise optimizations for high performance in the collective routines. However, confusing and hard-to-find errors (deadlocks, wrong results, or program crash) can happen by inconsistent calls to collective operations.

We suggest to use the MPI profiling interface to provide for more extensive semantic checking of calls to MPI routines with collective (non-local) semantics. With this, exhaustive semantic checks can be enabled during application development, and disabled for production runs. We discuss what can reasonably be checked by such an interface, and mention some inherent limitations of MPI to making a fully portable interface for semantic checking. The proposed collective semantics verification interface for the full MPI-2 standard has been implemented for the NEC proprietary MPI/SX as well as other NEC MPI implementations.