Package mpi
Class Intercomm
java.lang.Object
mpi.Comm
mpi.Intercomm
This class represents intercommunicators.
-
Field Summary
Fields inherited from class mpi.Comm
handle, SELF, TYPE_SHARED, WORLD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Duplicates this communicator.dup()
Duplicates this communicator.dupWithInfo
(Info info) Duplicates this communicator with the info object used in the call.static Intercomm
Java binding ofMPI_COMM_GET_PARENT
.Return the remote group.int
Size of remote group.iDup()
Duplicates this communicator.merge
(boolean high) Creates an intracommuncator from an intercommunicatorMethods inherited from class mpi.Comm
abort, allGather, allGather, allGatherv, allGatherv, allReduce, allReduce, allToAll, allToAllv, allToAllw, barrier, bcast, bSend, bSendInit, callErrhandler, compare, createIntercomm, createKeyval, deleteAttr, disconnect, dup, dupWithInfo, free, freeKeyval, gather, gather, gatherv, gatherv, gatherv, getAttr, getErrhandler, getGroup, getInfo, getName, getRank, getRequest, getSize, getTopology, iAllGather, iAllGather, iAllGatherv, iAllGatherv, iAllReduce, iAllReduce, iAllToAll, iAllToAllv, iAllToAllw, iBarrier, iBcast, ibSend, iDup, iGather, iGather, iGatherv, iGatherv, iGatherv, iNeighborAllGather, iNeighborAllGatherv, iNeighborAllToAll, iNeighborAllToAllv, iProbe, iRecv, iReduce, iReduce, iReduceScatter, iReduceScatter, iReduceScatterBlock, iReduceScatterBlock, irSend, iScatter, iScatter, iScatterv, iScatterv, iScatterv, iSend, isInter, isNull, isSend, neighborAllGather, neighborAllGatherv, neighborAllToAll, neighborAllToAllv, pack, packSize, probe, recv, recvInit, reduce, reduce, reduceLocal, reduceScatter, reduceScatter, reduceScatterBlock, reduceScatterBlock, rSend, rSendInit, scatter, scatter, scatterv, scatterv, scatterv, send, sendInit, sendRecv, sendRecvReplace, setAttr, setErrhandler, setInfo, setName, setType, sSend, sSendInit, unpack
-
Constructor Details
-
Intercomm
protected Intercomm(long handle) -
Intercomm
protected Intercomm(long[] commRequest)
-
-
Method Details
-
clone
Duplicates this communicator.Java binding of
MPI_COMM_DUP
.It is recommended to use
dup()
instead ofclone()
because the last can't throw anMPIException
. -
dup
Duplicates this communicator.Java binding of
MPI_COMM_DUP
.- Overrides:
dup
in classComm
- Returns:
- copy of this communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
iDup
Duplicates this communicator.Java binding of
MPI_COMM_IDUP
.The new communicator can't be used before the operation completes. The request object must be obtained calling
Comm.getRequest()
.- Overrides:
iDup
in classComm
- Returns:
- copy of this communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
dupWithInfo
Duplicates this communicator with the info object used in the call.Java binding of
MPI_COMM_DUP_WITH_INFO
.- Overrides:
dupWithInfo
in classComm
- Parameters:
info
- info object to associate with the new communicator- Returns:
- copy of this communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
getRemoteSize
Size of remote group.Java binding of the MPI operation
MPI_COMM_REMOTE_SIZE
.- Returns:
- number of process in remote group of this communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
getRemoteGroup
Return the remote group.Java binding of the MPI operation
MPI_COMM_REMOTE_GROUP
.- Returns:
- remote group of this communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
merge
Creates an intracommuncator from an intercommunicatorJava binding of the MPI operation
MPI_INTERCOMM_MERGE
.- Parameters:
high
- true if the local group has higher ranks in combined group- Returns:
- new intra-communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
getParent
Java binding ofMPI_COMM_GET_PARENT
.- Returns:
- the parent communicator
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-