next up previous contents
Next: Motivating Examples Up: Groups, Contexts and Communicators Previous: Group Management   Contents

Communicator Management

int Comm.Size()
Java binding of the MPI operation MPI_COMM_SIZE. The return value is size.

int Comm.Rank()
Java binding of the MPI operation MPI_COMM_RANK. The return value is rank.

static int Compare(Comm comm1, Comm comm2)
Java binding of the MPI operation MPI_COMM_COMPARE. The return value is result.

The constants MPI_IDENT, MPI_CONGRUENT, MPI_SIMILAR, MPI_UNEQUAL are available as MPI.IDENT, MPI.CONGRUENT, MPI.SIMILAR, MPI.UNEQUAL.

Object Comm.clone()
Java binding of the MPI operation MPI_COMM_DUP. The return value is newcomm.

Intracomm Intracomm.Create(Group group)
Java binding of the MPI operation MPI_COMM_CREATE. The return value is newcomm.

Intracomm Intracomm.Split(int colour, int key)
Java binding of the MPI operation MPI_COMM_SPLIT. The return value is newcomm.

void Comm.Free()
Java binding of the MPI operation MPI_COMM_FREE. (Note: a Free method is required rather than a finalize method, because MPI_COMM_FREE is, strictly-speaking, a collective operations, and we cannot assume that the Java garbage collector would call a finalize method synchronously on all processors.)



Bryan Carpenter 2002-07-12