MPI_SESSION_CREATE_ERRHANDLER(session_errhandler_fn, errhandler) | |
IN session_errhandler_fn | user defined error handling procedure (function) |
OUT errhandler | MPI error handler (handle) |
Creates an error handler that can be attached to a session object. In C, the session_errhandler_fn argument should be a function of type MPI_Session_errhandler_function, which is defined as
typedef void MPI_Session_errhandler_function(MPI_Session *session, int *error_code, ...);
The first argument is the session in use, the second is the error code to be returned. The remaining arguments are ``varargs'' arguments whose number and meaning is implementationdependent. An implementation should clearly document these arguments.
With the Fortran mpi_f08 module, the session_errhandler_fn argument should be of the form:
ABSTRACT INTERFACE
SUBROUTINE MPI_Session_errhandler_function(session, error_code)
TYPE(MPI_Session) :: session
INTEGER :: error_code
With the Fortran mpi module and (deprecated) mpif.h include file, the SESSION_ERRHANDLER_FN argument should be of the form:
SUBROUTINE SESSION_ERRHANDLER_FUNCTION(SESSION, ERROR_CODE)
INTEGER SESSION, ERROR_CODE
MPI_SESSION_SET_ERRHANDLER(session, errhandler) | |
INOUT session | session (handle) |
IN errhandler | new error handler for session (handle) |
Attaches a new error handler to a session. The error handler must be either a predefined error handler, or an error handler created by a call to MPI_SESSION_CREATE_ERRHANDLER.
MPI_SESSION_GET_ERRHANDLER(session, errhandler) | |
IN session | session (handle) |
OUT errhandler | error handler currently associated with session (handle) |
Retrieves the error handler currently associated with a session.