MPI_WIN_CREATE_ERRHANDLER(win_errhandler_fn, errhandler) | |
IN win_errhandler_fn | user defined error handling procedure (function) |
OUT errhandler | MPI error handler (handle) |
int MPI_Win_create_errhandler(MPI_Win_errhandler_function *win_errhandler_fn, MPI_Errhandler *errhandler)
MPI_Win_create_errhandler(win_errhandler_fn, errhandler, ierror)
PROCEDURE(MPI_Win_errhandler_function) :: win_errhandler_fn
TYPE(MPI_Errhandler), INTENT(OUT) :: errhandler
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
MPI_WIN_CREATE_ERRHANDLER(WIN_ERRHANDLER_FN, ERRHANDLER, IERROR)
EXTERNAL WIN_ERRHANDLER_FN
INTEGER ERRHANDLER, IERROR
Creates an error handler that can be attached to a window object. The user routine should be, in C, a function of type MPI_Win_errhandler_function which is defined as
typedef void MPI_Win_errhandler_function(MPI_Win *, int *, ...);
The first argument is the window in use, the second is the error code to be returned.
With the Fortran mpi_f08 module, the user routine win_errhandler_fn should be of the form:
SUBROUTINE MPI_Win_errhandler_function(win, error_code)
TYPE(MPI_Win) :: win
INTEGER :: error_code
With the Fortran mpi module and mpif.h, the user routine WIN_ERRHANDLER_FN should be of the form:
SUBROUTINE WIN_ERRHANDLER_FUNCTION(WIN, ERROR_CODE)
INTEGER WIN, ERROR_CODE
MPI_WIN_SET_ERRHANDLER(win, errhandler) | |
INOUT win | window (handle) |
IN errhandler | new error handler for window (handle) |
int MPI_Win_set_errhandler(MPI_Win win, MPI_Errhandler errhandler)
MPI_Win_set_errhandler(win, errhandler, ierror)
TYPE(MPI_Win), INTENT(IN) :: win
TYPE(MPI_Errhandler), INTENT(IN) :: errhandler
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
MPI_WIN_SET_ERRHANDLER(WIN, ERRHANDLER, IERROR)
INTEGER WIN, ERRHANDLER, IERROR
Attaches a new error handler to a window. The error handler must be either a predefined error handler, or an error handler created by a call to MPI_WIN_CREATE_ERRHANDLER.
MPI_WIN_GET_ERRHANDLER(win, errhandler) | |
IN win | window (handle) |
OUT errhandler | error handler currently associated with window (handle) |
int MPI_Win_get_errhandler(MPI_Win win, MPI_Errhandler *errhandler)
MPI_Win_get_errhandler(win, errhandler, ierror)
TYPE(MPI_Win), INTENT(IN) :: win
TYPE(MPI_Errhandler), INTENT(OUT) :: errhandler
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
MPI_WIN_GET_ERRHANDLER(WIN, ERRHANDLER, IERROR)
INTEGER WIN, ERRHANDLER, IERROR
Retrieves the error handler currently associated with a window.