next up previous contents
Next: Intracomm and Intercomm Up: Full public interface of Previous: MPI   Contents

Comm

public class Comm {

  // Communicator Management

  public int Size() {...}

  public int Rank() {...}

  public Group Comm.Group() {...}  // (see ``Group management'')

  public static int Compare(Comm comm1, Comm comm2) {...}

  public Object clone() {...}

  public void Free() {...}


  // Inter-communication

  public boolean Test_inter() {...}

  public Intercomm Create_intercomm(Comm local_comm, int local_leader,
                                    int remote_leader, int tag) {...}


  // Caching

  public void Attr_put(int keyval, Object attribute_val) {...}

  public Object Attr_get(int keyval) {...}

  public void Attr_delete(int keyval) {...}


  // Blocking Send and Receive operations

  public void Send(Object buf, int offset, int count, 
                   Datatype datatype, int dest, int tag) {...}

  public Status Recv(Object buf, int offset, int count, 
                     Datatype datatype, int source, int tag) {...}


  // Communication Modes

  public void Bsend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}

  public void Ssend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}

  public void Rsend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}


  // Nonblocking communication

  public Request Isend(Object buf, int offset, int count, 
                       Datatype datatype, int dest, int tag) {...}

  public Request Ibsend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request Issend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request Irsend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request Irecv(Object buf, int offset, int count, 
                      Datatype datatype, int source, int tag) {...}


  // Probe and cancel

  public Status Iprobe(int source, int tag) {...}

  public Status Probe(int source, int tag) {...}


  // Persistent communication requests

  public Prequest Send_init(Object buf, int offset, int count, 
                            Datatype datatype, int dest, int tag) {...}

  public Prequest Bsend_init(Object buf, int offset, int count, 
                             Datatype datatype, int dest, int tag) {...}

  public Prequest Ssend_init(Object buf, int offset, int count, 
                             Datatype datatype, int dest, int tag) {...}

  public Prequest Rsend_init(Object buf, int offset, int count, 
                             Datatype datatype, int dest, int tag) {...}

  public Prequest Recv_init(Object buf, int offset, int count, 
                            Datatype datatype, int source, int tag) {...}


  // Send-receive

  public Status Sendrecv(Object sendbuf, int sendoffset,
                         int sendcount, Datatype sendtype,
                         int dest, int sendtag,
                         Object recvbuf, int recvoffset,
                         int recvcount, Datatype recvtype,
                         int source, int recvtag) {...}

  public Status Sendrecv_replace(Object buf, int offset,
                         int count, Datatype datatype,
                         int dest, int sendtag,
                         int source, int recvtag) {...}

  // Pack and unpack

  public int Pack(Object inbuf, int offset, int incount, 
                  Datatype datatype,
                  byte [] outbuf, int position) {...}

  public int Unpack(byte [] inbuf, int position,
                    Object outbuf, int offset, int outcount, 
                    Datatype datatype) {...}

  public int Pack_size(int incount, Datatype datatype) {...}


  // Process Topologies

  int Topo_test()


  // Environmental Management

  void Abort(int errorcode) {...}

  ...
}



Bryan Carpenter 2002-07-12