next up previous contents
Next: MPI Environmental Management Up: Process Topologies Previous: Overview of the Functions   Contents

Topology Constructors

Cartcomm Intracomm.Create_cart(int [] dims, boolean [] periods,
                              boolean reorder)
Java binding of the MPI operation MPI_CART_CREATE. The class instance is comm_old. The value of ndims is taken to be size of the dims argument. The constructed object is comm_cart.

static int [] Cartcomm.Dims_create(int nnodes, int ndims)
Java binding of the MPI operation MPI_DIMS_CREATE. The return value is dims.

Graphcomm Intracomm.Create_graph(int [] index, int [] edges,
                                 boolean reorder)
Java binding of the MPI operation MPI_GRAPH_CREATE. The class instance is comm_old. The value of nnodes is taken to be size of the index argument. The constructed object is comm_graph.

int Comm.Topo_test()
Java binding of the MPI operation MPI_Topo_TEST. The return value is status. It will be one of MPI.GRAPH, MPI.CART or MPI.UNDEFINED.

GraphParms Graphcomm.Get()
Java binding of the MPI operations MPI_GRAPHDIMS_GET and MPI_GRAPH_GET. The return value contains index and edges. The values of nnodes and nedges can be extracted from the sizes of these arrays.

CartParms Cartcomm.Get()
Java binding of the MPI operations MPI_CARTDIM_GET and MPI_CART_GET. The return value contains dims and periods and coords. The value of ndims can be extracted from the size of dims.

int Cartcomm.Rank(int [] coords)
Java binding of the MPI operation MPI_CART_RANK. The return value is rank.

int [] Cartcomm.Coords(int rank)
Java binding of the MPI operation MPI_CART_COORDS and MPI_CARTDIM_GET . The return value is coords.

int [] Graphcomm.Neighbours(int rank)
Java binding of the MPI operation MPI_GRAPH_NEIGHBOURS_COUNT and MPI_GRAPH_NEIGHBOURS. The return value is neighbours. The value of nneighbours can be extracted from the size neighbours.

ShiftParms Cartcomm.Shift(int direction, int disp)
Java binding of the MPI operation MPI_CART_SHIFT. The return value contains rank_source and rank_dest.

Cartcomm Cartcomm.Sub(boolean [] remain_dims)
Java binding of the MPI operation MPI_CART_SUB. The return value is newcomm.

int Cartcomm.Map(int [] dims, boolean [] periods)
Java binding of the MPI operation MPI_CART_MAP. The value of ndims is taken to be size of the dims argument. The return value is newrank.

int Graphcomm.Map(int [] index, int [] edges)
Java binding of the MPI operation MPI_GRAPH_MAP. The value of nnodes is taken to be size of the index argument. The return value is newrank.


next up previous contents
Next: MPI Environmental Management Up: Process Topologies Previous: Overview of the Functions   Contents
Bryan Carpenter 2002-07-12