⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpi_intercomm_create.3

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Intercomm_create 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME\fBMPI_Intercomm_create\fP \- Creates an intercommuncator from two intracommunicators..SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Intercomm_create(MPI_Comm \fIlocal_comm\fP, int\fI local_leader\fP,	MPI_Comm\fI peer_comm\fP, int\fI remote_leader\fP, int\fI tag\fP, MPI_Comm\fI *newintercomm\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_INTERCOMM_CREATE(\fILOCAL_COMM, LOCAL_LEADER, PEER_COMM,		REMOTE_LEADER, TAG, NEWINTERCOMM, IERROR\fP)	INTEGER	\fILOCAL_COMM, LOCAL_LEADER, PEER_COMM, REMOTE_LEADER\fP	INTEGER	\fITAG, NEWINTERCOMM, IERROR\fP .SH C++ Syntax.nf#include <mpi.h>Intercomm Intracomm::Create_intercomm(int \fIlocal_leader\fP, const 	Comm& \fIpeer_comm\fP, int \fIremote_leader\fP, int \fItag\fP) const.SH INPUT PARAMTERS.ft R.TP 1ilocal_commThe communicator containing the process that initiates the inter-communication (handle)..TP 1ilocal_leaderRank of local group leader in local_comm (integer)..TP 1ipeer_comm"Peer" communicator; significant only at the local_leader (handle)..TP 1iremote_leaderRank of remote group leader in peer_comm; significant only at the local_leader (integer)..TP 1itagMessage tag used to identify new intercommunicator (integer). .SH OUTPUT PARAMETERS.ft R.TP 1inewintercommCreated intercommunicator (handle)..ft R.TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RThis call creates an intercommunicator. It is collective over the union of the local and remote groups. Processes should provide identical local_comm and local_leader arguments within each group. Wildcards are not permitted for remote_leader, local_leader, and tag..spThis call uses point-to-point communication with communicator peer_comm,and with tag tag between the leaders. Thus, care must be taken that there be no pending communication on peer_comm that could interfere with this communication.If multiple MPI_Intercomm_creates are being made, they should use different tags (more precisely, they should ensure that the local and remote leaders are using different tags for each MPI_intercomm_create). .SH NOTESWe recommend using a dedicated peer communicator, such as a duplicate of MPI_COMM_WORLD, to avoid trouble with peer communicators..spThe MPI 1.1 Standard contains two mutually exclusive comments on theinput intracommunicators.  One says that their repective groups must bedisjoint; the other that the leaders can be the same process.  Aftersome discussion by the MPI Forum, it has been decided that the groups mustbe disjoint.  Note that the .B reasongiven for this in the standard is.B notthe reason for this choice; rather, the .B otheroperations onintercommunicators (like .I MPI_Intercomm_merge) do not make sense if thegroups are not disjoint..SH ERRORSAlmost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will 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 for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN 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.  .SH SEE ALSOMPI_Intercomm_merge.brMPI_Comm_free.brMPI_Comm_remote_group.brMPI_Comm_remote_size' @(#)MPI_Intercomm_create.3 1.17 00/02/02   ' @(#)MPI_Intercomm_create.3 1.23 06/03/09

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -