next up previous
Next: Parallel Arrays in Up: Experiments with ``HPJava'' Previous: Channel communication (continued)

MPI Interface

Experimenting with native methods interface to MPICH.

Interface modelled on proposed C++ bindings of MPI (but cannot support derived data types ...).

public class Comm {
  public Comm() ;  // Default constructor:
                   //     equivalent to MPI_COMM_WORLD.

  public int size();
  public int rank();

  public void bSendInt(int [] buf, int dest, int tag);
  public Status recvInt(int [] buf, int source, int tag);

      // ...or whichever primitive types are needed
}
Work in progress. Simple test cases run, but no full demonstation, yet.



Bryan Carpenter
Sun Jan 5 14:31:59 EST 1997