What is MPI_File_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_File_call_errhandler

This method invokes the error handler assigned to the file with the given error code.

Syntax

int MPI_File_call_errhandler(MPI_File fh, int errorcode)

Parameters

  • fh is the MPI file with the error handler.
  • errorcode is the error code supplied to the file’s error handler.

Return value

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

  • In case of success, MPI_File_call_errhandler returns MPI_SUCCESS, the value returned upon successful termination of any MPI routine.
  • In case of an invalid MPI filehandle provided in the arguments, the function returns MPI_ERR_FILE.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved