|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mpi.Comm mpi.Intracomm mpi.Graphcomm
public class Graphcomm
Method Summary | |
---|---|
java.lang.Object |
clone()
Duplicate this communicator. |
GraphParms |
Get()
Returns graph topology information. |
int |
Map(int[] index,
int[] edges)
Compute an optimal placement. |
int[] |
Neighbours(int rank)
Provides adjacency information for general graph topology. |
int |
Topo_test()
Returns the type of topology associated with the communicator. |
Methods inherited from class mpi.Intracomm |
---|
Allgather, Allgatherv, Allreduce, Alltoall, Alltoallv, Barrier, Bcast, Create_cart, Create_graph, Create, Gather, Gatherv, Group, Rank, Reduce_scatter, Reduce, Scan, Scatter, Scatterv, Size, Split |
Methods inherited from class mpi.Comm |
---|
Abort, Bsend_init, Bsend, Compare, Create_intercomm, Delete_attr, Errorhandler_get, Errorhandler_set, Free, Get_attr, Get_name, Ibsend, Iprobe, Irecv, Irsend, Is_null, Isend, Issend, Pack_size, Pack_size, Pack, Probe, Recv_init, Recv, Rsend_init, Rsend, Send_init, Send, Sendrecv_replace, Sendrecv, Set_attr, Set_name, Ssend_init, Ssend, Test_inter, Unpack |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object clone() throws MPIException
Comm
returns: | copy of this communicator |
Java binding of the MPI operation MPI_COMM_DUP.
The new communicator is "congruent" to the old one, but has a different context.
clone
in class Intracomm
MPIException
public GraphParms Get() throws MPIException
returns: | object defining node degress and edges of graph |
Java binding of the MPI operation MPI_GRAPHDIMS_GET and MPI_GRAPH_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
public int[] Neighbours(int rank) throws MPIException
rank | rank of a process in the group of this communicator |
returns: | array of ranks of neighbouring processes to one specified |
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
public int Map(int[] index, int[] edges) throws MPIException
index | node degrees |
edges | graph edges |
returns: | reordered rank of calling process |
Java binding of the MPI operation MPI_GRAPH_MAP.
The number of nodes is taken to be size of the index argument.
MPIException
public int Topo_test() throws MPIException
Comm
returns: | topology type of communicator |
Java binding of the MPI operation MPI_TOPO_TEST.
The return value will be one of MPI.GRAPH, MPI.CART or MPI.UNDEFINED.
Topo_test
in class Comm
MPIException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |