public class Graphcomm extends Intracomm
handle, MPI_COMM_NULL_VAL
Modifier and Type | Method and Description |
---|---|
Graphcomm |
clone()
Duplicate this communicator.
|
GraphParms |
getDims()
Returns graph topology information.
|
int[] |
getNeighbours(int rank)
Provides adjacency information for general graph topology.
|
int |
getTopology()
Returns the type of topology associated with the communicator.
|
int |
map(int[] index,
int[] edges)
Compute an optimal placement.
|
allGather, allGatherv, allReduce, allToAll, allToAllv, barrier, bcast, create, createCart, createGraph, createGroup, gather, gatherv, nativeGatherv, reduce, reduceScatter, scan, scatter, scatterv, split
Abort, bSend, bSendInit, compare, create, createIntercomm, deleteAttr, free, getAttr, getGroup, getRank, getSize, ibSend, iProbe, iRecv, irSend, iSend, isInter, isNull, isSend, pack, packSize, probe, recv, recvInit, rSend, rSendInit, send, sendInit, sendRecv, sendRecvReplace, spawn, spawnMultiple, sSend, sSendInit, unpack
public Graphcomm clone() throws MPIException
Intracomm
clone
in class Intracomm
MPI_COMM_DUP
.
The new communicator is ``congruent'' to the old one, but has a different context.MPIException
- Points out that an MPI exception has occured.public GraphParms getDims() throws MPIException
Java binding of the MPI operation MPI_GRAPHDIMS_GET
.
The number of nodes and number of edges can be extracted from the sizes of the
index
and edges
fields of the returned object.
MPIException
- Points out that an MPI exception has occured.public int[] getNeighbours(int rank) throws MPIException
rank
- rank of a process in the group of this communicator.Java binding of the MPI operations MPI_GRAPH_NEIGHBOURS_COUNT
and
MPI_GRAPH_NEIGHBOURS
.
The number of neighbours can be extracted from the size of the result.
MPIException
- Points out that an MPI exception has occured.public int map(int[] index, int[] edges) throws MPIException
index
- node degrees.edges
- graph edges.Java binding of the MPI operation MPI_GRAPH_MAP
.
The number of nodes is taken to be size of the index
argument.
MPIException
- Points out that an MPI exception has occured.public int getTopology() throws MPIException
Not Implemented in the current release
.getTopology
in class Comm
Java binding of the MPI operation MPI_TOPO_TEST
.
The return value will be one of MPI.GRAPH
, MPI.CART
or
MPI.UNDEFINED
.
MPIException
- Points out that an MPI exception has occured.