What is MPI_Comm_call_errhandler?

MPI library

MPI, short for Message Passing Interface, is a library that allows you to write parallel programs in Fortran77 or C. The library uses common operating system services to exchange information among the parallel processes it creates.

Parallel processing

MPI_Comm_call_errhandler

This method calls the error handler installed on a communicator.

Syntax

int MPI_Comm_call_errhandler(
  MPI_Comm comm,
  int errorcode
);

Parameters

  • comm is a communicator object describing a group of processes. In many applications, various processes work together, and a communicator describes the processes that a routine initiates.

  • errorcode is the error code supplied to the communicator’s error handler.

Return value

If unsuccessful, the function returns an error. The error, by default, aborts the MPI job.

  • In case of success, it returns MPI_SUCCESS, which is the value returned upon successful termination of any MPI routine.
  • In case of an invalid communicator provided in the function’s argument, MPI_ERR_COM is returned.
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved