Manual Pages for UNIX Darwin command on man MPI_Bsend
MyWebUniversity

Manual Pages for UNIX Darwin command on man MPI_Bsend

MPIBsend(3OpenMPI) MPIBsend(3OpenMPI)

NAME

MMPPIIBBsseenndd - Basic send with user-specified buffering.

SSYYNNTTAAXX CC SSyynnttaaxx

#include

int MPIBsend(void *buf, int count, MPIDatatype datatype, int dest, int tag, MPIComm comm) FFoorrttrraann SSyynnttaaxx INCLUDE 'mpif.h'

MPIBSEND(BUF, COUNT,DATATYPE, DEST, TAG, COMM, IERROR)

BUF(*)

INTEGER COUNT, DATATYPE, DEST, TAG, COMM, IERROR

CC++++ SSyynnttaaxx

#include

void Comm::Bsend(const void* buf, int count, const Datatype& datatype, int dest, int tag) const IINNPPUUTT PPAARRAAMMEETTEERRSS buf Initial address of send buffer (choice). count Number of entries in send buffer (nonnegative integer). datatype Datatype of each send buffer element (handle). dest Rank of destination (integer). tag Message tag (integer). comm Communicator (handle). OOUUTTPPUUTT PPAARRAAMMEETTEERR

IERROR Fortran only: Error status (integer).

DESCRIPTION

MPIBsend performs a buffered-mode, blocking send.

NNOOTTEESS This send is provided as a convenience function; it allows the user to send messages without worrying about where they are buffered (because the user must have provided buffer space with MPIBufferattach). In deciding how much buffer space to allocate, remember that the buffer space is not available for reuse by subsequent MPIBsends unless you are certain that the message has been received (not just that it should have been received). For example, this code does not allocate enough buffer space: MPIBufferattach( b, n*sizeof(double) + MPIBSENDOVERHEAD ); for (i=0; i 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.

SEE ALSO

MPIBufferattach MPIIbsend MPIBsendinit Open MPI 1.2 September 2006 MPIBsend(3OpenMPI)




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