Manual Pages for UNIX Darwin command on man MPI_Win_create_errhandler
MyWebUniversity

Manual Pages for UNIX Darwin command on man MPI_Win_create_errhandler

MPIWincreateerrhandler(3OpenMPI) MPIWincreateerrhandler(3OpenMPI)

NAME

MMPPIIWWiinnccrreeaatteeeerrrrhhaannddlleerr -

SSYYNNTTAAXX CC SSyynnttaaxx

#include

int MPIWincreateerrhandler(MPIWinerrhandlerfn *function, MPIErrhandler *errhandler) FFoorrttrraann SSyynnttaaxx INCLUDE 'mpif.h'

MPIWINCREATEERRHANDLER(FUNCTION, ERRHANDLER, IERROR)

EXTERNAL FUNCTION

INTEGER ERRHANDLER, IERROR

CC++++ SSyynnttaaxx

#include

static MPI::Errhandler MPI::Win::Createerrhandler(MPI::Win:: Errhandlerfn* function) IINNPPUUTT PPAARRAAMMEETTEERR

function User-defined error-handling procedure (function).

OOUUTTPPUUTT PPAARRAAMMEETTEERRSS errhandler MPI error handler (handle).

IERROR Fortran only: Error status (integer).

DESCRIPTION

MPIWincreateerrhandler should be, in C, a function of type MPIWinerrhandlerfn, which is defined as typedef void MPIWinerrhandlerfn(MPI Win *, int *, ...); The first argument is the window in use, the second is the error code to be returned. In Fortran, the user routine should be of the form:

SUBROUTINE WINERRHANDLERFN(WIN, ERRORCODE, ...)

INTEGER WIN, ERRORCODE

In C++, the user routine should be of the form: typedef void MPI::Win::Errhandlerfn(MPI::Win &, int *, ...); EERRRROORRSS Almost all MPI routines return an error value; C routines as the value

of the function and Fortran routines in the last argument. C++ func-

tions do not return errors. If the default error handler is set to

MPI::ERRORSTHROWEXCEPTIONS, then on error the C++ exception mechanism

will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with

MPICommseterrhandler; the predefined error handler MPIERRORSRETURN

may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. Open MPI 1.2 September 20M0P6IWincreateerrhandler(3OpenMPI)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™