📄 mpi_comm_join.3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Comm_join 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME\fBMPI_Comm_join\fP \- Establishes communication between MPI jobs.SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Comm_join(int \fIfd\fP, MPI_Comm *\fIintercomm\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_COMM_JOIN(\fIFD, INTERCOMM, IERROR\fP) INTEGER \fIFD, INTERCOMM, IERROR\fP.SH C++ Syntax.nf#include <mpi.h>MPI::Intercomm MPI::Comm::Join(const int \fIfd\fP).SH INPUT PARAMETER.ft R.TP 1ifdsocket file descriptor (socket)..SH OUTPUT PARAMETERS.ft R.TP 1iintercommIntercommunicator between processes (handle)..TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RMPI_Comm_join creates an intercommunicator from the union of two MPIprocesses that are connected by a socket. \fIfd\fP is a filedescriptor representing a socket of type SOCK_STREAM (a two-wayreliable byte-stream connection). Nonblocking I/O and asynchronousnotification via SIGIO must not be enabled for the socket. The socketmust be in a connected state, and must be quiescent when MPI_Comm_joinis called..spMPI_Comm_join must be called by the process at each end of thesocket. It does not return until both processes have calledMPI_Comm_join..SH NOTES.ft RThere are no MPI library calls for opening and manipulating a socket.The socket \fIfd\fP can be opened using standard socket API calls.MPI uses the socket to bootstrap creation of the intercommunicator,and for nothing else. Upon return, the file descriptor will be openand quiescent..spIn a multithreaded process, the application must ensure that otherthreads do not access the socket while one is in the midst ofcalling MPI_Comm_join..spThe returned communicator will contain the two processes connected bythe socket, and may be used to establish MPI communication withadditional processes, through the usual MPI communicator-creationmechanisms..SH ERRORS.ft RAlmost all MPI routines return an error value; C routines asthe value of the function and Fortran routines in the last argument. C++functions do not return errors. If the default error handler is set toMPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanismwill be used to throw an MPI:Exception object..spBefore the error value is returned, the current MPI error handler iscalled. By default, this error handler aborts the MPI job, except forI/O function errors. The error handler may be changed withMPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURNmay be used to cause error values to be returned. Note that MPI does notguarantee that an MPI program can continue past an error. .spSee the MPI man page for a full list of MPI error codes..SH SEE ALSO.ft R.nfsocket(3SOCKET)MPI_Comm_createMPI_Comm_group' @(#)MPI_Comm_join.3 1.6 06/03/09
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -