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.
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
-
commis 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. -
errorcodeis 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_COMis returned.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved