Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class mpij.Comm

java.lang.Object
  |
  +--mpij.Comm
Subclasses:
Intracomm

public class Comm
extends java.lang.Object
Provides a communication universe and basic point-to-point communication within that universe.


Method Summary
void bsend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag)
          Send a message in buffered mode.
void bsend(java.lang.Object buf, Datatype type, int dest, int tag)
          Send a message in buffered mode.
static int compare(Comm comm1, Comm comm2)
          MPI.IDENT results if and only if comm1 and comm2 are handles for the same object (identical groups and same contexts).
Group group()
          Returns the Group for this Comm.
void ibsend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag, Request request)
          Begin a non-blocking message send in buffered mode.
boolean iprobe(int source, int tag, Status status)
          Non-blocking probe for a message.
void irecv(java.lang.Object buf, int start, int count, Datatype type, int source, int tag, Request request)
          Begin a non-blocking receive.
void irsend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag, Request request)
          Begin a non-blocking message send in ready mode.
void isend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag, Request request)
          Begin a non-blocking message send in standard mode.
void issend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag, Request request)
          Begin a non-blocking message send in synchronous mode.
void probe(int source, int tag, Status status)
          Probe for a message (blocking).
int rank()
          Returns the rank of the calling process in this Comm.
void recv(java.lang.Object buf, int start, int count, Datatype type, int source, int tag, Status status)
          Receive a message (blocking).
void recv(java.lang.Object buf, Datatype type, int source, int tag, Status status)
          Receive a message (blocking).
void rsend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag)
          Send a message in ready mode.
void rsend(java.lang.Object buf, Datatype type, int dest, int tag)
          Send a message in ready mode.
void send(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag)
          Send a message in standard mode.
void send(java.lang.Object buf, Datatype type, int dest, int tag)
          Send a message in standard mode.
int size()
          Returns the number of processes in this Comm.
void ssend(java.lang.Object buf, int start, int count, Datatype type, int dest, int tag)
          Send a message in synchronous mode.
void ssend(java.lang.Object buf, Datatype type, int dest, int tag)
          Send a message in standard mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

size

public int size()
Returns the number of processes in this Comm.

rank

public int rank()
Returns the rank of the calling process in this Comm.

compare

public static int compare(Comm comm1,
                          Comm comm2)
MPI.IDENT results if and only if comm1 and comm2 are handles for the same object (identical groups and same contexts). MPI.CONGRUENT results if the underlying groups are identical in constituents and rank order; these communicators differ only by context. MPI.SIMILAR results if the group members of both communicators are the same but the rank order differs. MPI.UNEQUAL results otherwise.

group

public Group group()
Returns the Group for this Comm.

send

public void send(java.lang.Object buf,
                 int start,
                 int count,
                 Datatype type,
                 int dest,
                 int tag)
         throws MPIException
Send a message in standard mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

send

public void send(java.lang.Object buf,
                 Datatype type,
                 int dest,
                 int tag)
         throws MPIException
Send a message in standard mode.
Parameters:
buf - send buffer
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

bsend

public void bsend(java.lang.Object buf,
                  int start,
                  int count,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in buffered mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

bsend

public void bsend(java.lang.Object buf,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in buffered mode.
Parameters:
buf - send buffer
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

ssend

public void ssend(java.lang.Object buf,
                  int start,
                  int count,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in synchronous mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

ssend

public void ssend(java.lang.Object buf,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in standard mode.
Parameters:
buf - send buffer
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

rsend

public void rsend(java.lang.Object buf,
                  int start,
                  int count,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in ready mode.
Parameters:
buf - send buffer
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

rsend

public void rsend(java.lang.Object buf,
                  Datatype type,
                  int dest,
                  int tag)
          throws MPIException
Send a message in ready mode.
Parameters:
buf - send buffer
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

recv

public void recv(java.lang.Object buf,
                 int start,
                 int count,
                 Datatype type,
                 int source,
                 int tag,
                 Status status)
         throws MPIException
Receive a message (blocking).
Parameters:
buf - receive buffer
start - receive buffer start offset
count - number of elements to receive
type - receive buffer type
source - message source (can be MPI.ANY_SOURCE)
tag - message tag (0..MPI.TAG_UB, or MPI.ANY_TAG)

recv

public void recv(java.lang.Object buf,
                 Datatype type,
                 int source,
                 int tag,
                 Status status)
         throws MPIException
Receive a message (blocking).
Parameters:
buf - receive buffer
type - receive buffer type
source - message source (can be MPI.ANY_SOURCE)
tag - message tag (0..MPI.TAG_UB, or MPI.ANY_TAG)

isend

public final void isend(java.lang.Object buf,
                        int start,
                        int count,
                        Datatype type,
                        int dest,
                        int tag,
                        Request request)
                throws MPIException
Begin a non-blocking message send in standard mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

ibsend

public final void ibsend(java.lang.Object buf,
                         int start,
                         int count,
                         Datatype type,
                         int dest,
                         int tag,
                         Request request)
                 throws MPIException
Begin a non-blocking message send in buffered mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

issend

public final void issend(java.lang.Object buf,
                         int start,
                         int count,
                         Datatype type,
                         int dest,
                         int tag,
                         Request request)
                 throws MPIException
Begin a non-blocking message send in synchronous mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

irsend

public final void irsend(java.lang.Object buf,
                         int start,
                         int count,
                         Datatype type,
                         int dest,
                         int tag,
                         Request request)
                 throws MPIException
Begin a non-blocking message send in ready mode.
Parameters:
buf - send buffer
start - send buffer start offset
count - number of elements to send
type - send buffer type
dest - message destination
tag - message tag (0..MPI.TAG_UB)

irecv

public final void irecv(java.lang.Object buf,
                        int start,
                        int count,
                        Datatype type,
                        int source,
                        int tag,
                        Request request)
                throws MPIException
Begin a non-blocking receive.
Parameters:
buf - receive buffer
start - receive buffer start offset
count - number of elements to receive
type - receive buffer type
source - message source (can be MPI.ANY_SOURCE)
tag - message tag (0..MPI.TAG_UB, or MPI.ANY_TAG)
request - request for tracking completion

iprobe

public boolean iprobe(int source,
                      int tag,
                      Status status)
              throws MPIException
Non-blocking probe for a message. Returns true if a message matching the source and tag is available.
Parameters:
source - message source (can be MPI.ANY_SOURCE)
tag - message tag (0..MPI.TAG_UB, or MPI.ANY_TAG)
status - available message information

probe

public void probe(int source,
                  int tag,
                  Status status)
          throws MPIException
Probe for a message (blocking).
Parameters:
source - message source (can be MPI.ANY_SOURCE)
tag - message tag (0..MPI.TAG_UB, or MPI.ANY_TAG)
status - available message information

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD