|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--mpi.Comm
Communicator presenting a subset of the MPI API. The MPI class
contains the static COMM_WORLD communicator.
| Constructor Summary | |
Comm()
|
|
| Method Summary | |
double[] |
bcast(double[] buffer,
int count,
int root)
Broadcasts a message from the process with rank root to all
other processes. |
protected void |
finalize()
Destroys the Java socket network. |
double[] |
gather(double[] sendbuf,
int sendcnt,
int recvcnt,
int root)
Gathers values from all processes. |
void |
initialize(int rank,
int size,
java.lang.String[] hosts)
Builds the Java socket network used by MPI. |
int |
rank()
Rank of the calling process in the communicator. |
double[] |
recv(int count,
int source,
int tag)
Performs a basic receive. |
double[] |
reduce(double[] sendbuf,
int count,
Operation op,
int root)
Reduces values on all processes to a single value at rank root. |
double[] |
scan(double[] sendbuf,
int count,
Operation op)
Computes the scan (partial reduction) of data on all processes. |
double[] |
scatter(double[] sendbuf,
int sendcnt,
int recvcnt,
int root)
Sends data from process with rank root to all other
processes. |
void |
send(double[] buffer,
int count,
int dest,
int tag)
Performs a basic send. |
int |
size()
Size of the communicator group. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Comm()
| Method Detail |
public void initialize(int rank,
int size,
java.lang.String[] hosts)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic int rank()
public int size()
public void send(double[] buffer,
int count,
int dest,
int tag)
buffer - send buffercount - number of elements in send bufferdest - rank of destinationtag - message tag
public double[] recv(int count,
int source,
int tag)
count - number of elements in receive buffertag - message tag
public double[] bcast(double[] buffer,
int count,
int root)
root to all
other processes. Uses a binary tree algorithm. MPI API method.
buffer - send buffercount - number of elements in bufferroot - rank of broadcast root
public double[] reduce(double[] sendbuf,
int count,
Operation op,
int root)
root. Uses a binary tree algorithm. MPI API method.
sendbuf - send buffercount - number of elements in send bufferop - reduction operationroot - rank of reduction root
public double[] scatter(double[] sendbuf,
int sendcnt,
int recvcnt,
int root)
root to all other
processes. Uses a naive algorithm. MPI API method.
sendbuf - send buffersendcnt - number of elements to send to each processrecvcnt - number elements in receive bufferroot - rank of scatter root
public double[] gather(double[] sendbuf,
int sendcnt,
int recvcnt,
int root)
sendbuf - send buffersendcnt - number of elements in send bufferrecvcnt - number of elements for any single receiveroot - rank of gather root
public double[] scan(double[] sendbuf,
int count,
Operation op)
sendbuf - send buffercount - number of elements in send bufferop - scan operation
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||