Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mpij.Comm | +--mpij.Intracomm
Method Summary | |
void | allGather(java.lang.Object sendBuf,
int sendStart,
int sendCount,
Datatype sendType,
java.lang.Object recvBuf,
int recvStart,
int recvCount,
Datatype recvType)
allGather can be thought of as gather, but where all processes receive the result, instead of just the root. |
void | allReduce(java.lang.Object sendBuf,
int sendStart,
java.lang.Object recvBuf,
int recvStart,
int count,
Datatype type,
Op op)
Same as reduce except that the result appears in the receive buffer of all the group members. |
void | allToAll(java.lang.Object sendBuf,
int sendStart,
int sendCount,
Datatype sendType,
java.lang.Object recvBuf,
int recvStart,
int recvCount,
Datatype recvType)
allToAll is an extension of allGather to the case where each process sends distinct data to each of the receivers. |
void | barrier()
Blocks until all members of the Intracomm have called this method. |
void | bcast(java.lang.Object buf,
int start,
int count,
Datatype type,
int root)
Broadcasts to all members of the Intracomm. |
Intracomm | create(Group group)
Create an Intracomm from the given group |
Intracomm | dup()
Returns an exact copy of this Intracomm. |
void | gather(java.lang.Object sendBuf,
int sendStart,
int sendCount,
Datatype sendType,
java.lang.Object recvBuf,
int recvStart,
int recvCount,
Datatype recvType,
int root)
Gathers data from all processes to the root process. |
void | reduce(java.lang.Object sendBuf,
int sendStart,
java.lang.Object recvBuf,
int recvStart,
int count,
Datatype type,
Op op,
int root)
reduce combines the elements provided in the input buffer of each process in the group, using the operation op, and returns the combined value in the output buffer of the process with rank root. |
void | scatter(java.lang.Object sendBuf,
int sendStart,
int sendCount,
Datatype sendType,
java.lang.Object recvBuf,
int recvStart,
int recvCount,
Datatype recvType,
int root)
Scatters data to all processes from the root process. |
void | scatterv(java.lang.Object sendBuf,
int[] sendCounts,
int[] displacements,
Datatype sendType,
java.lang.Object recvBuf,
int recvStart,
int recvCount,
Datatype recvType,
int root)
scatterv extends the functionality of scatter by allowing a varying count of data to be sent to each process, since sendCounts is now an array. |
Intracomm | split(int color,
int key)
Splits this Intracomm according to color. |
Methods inherited from class mpij.Comm | |
bsend, bsend, compare, group, ibsend, iprobe, irecv, irsend, isend, issend, probe, rank, recv, recv, rsend, rsend, send, send, size, ssend, ssend |
Methods inherited from class java.lang.Object | |
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public Intracomm dup() throws MPIException
public Intracomm create(Group group) throws MPIException
group
- group listing members of the Intracommpublic Intracomm split(int color, int key) throws MPIException
color
- defines which Intracomm the caller will belong to
key
- used to determine order in new Intracommspublic void barrier() throws MPIException
public void bcast(java.lang.Object buf, int start, int count, Datatype type, int root) throws MPIException
buf
- data to broadcast
start
- start offset in buf
count
- number of elements in buf to send
type
- datatype of buf
root
- node from which broadcast originatespublic void gather(java.lang.Object sendBuf, int sendStart, int sendCount, Datatype sendType, java.lang.Object recvBuf, int recvStart, int recvCount, Datatype recvType, int root) throws MPIException
sendBuf
- data to send to root
sendStart
- start offset in sendBuf
sendCount
- length of data to send from sendBuf
sendType
- type of send data
recvBuf
- dest for gathered data (at root)
recvStart
- start offset in recvBuf
recvCount
- length of data to recv in recvBuf
recvType
- type of recv datapublic void scatter(java.lang.Object sendBuf, int sendStart, int sendCount, Datatype sendType, java.lang.Object recvBuf, int recvStart, int recvCount, Datatype recvType, int root) throws MPIException
sendBuf
- data to send (from root)
sendStart
- start offset in sendBuf
sendCount
- length of data to send from sendBuf
sendType
- type of send data
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
recvCount
- length of data to recv in recvBuf
recvType
- type of recv datapublic void allGather(java.lang.Object sendBuf, int sendStart, int sendCount, Datatype sendType, java.lang.Object recvBuf, int recvStart, int recvCount, Datatype recvType) throws MPIException
sendBuf
- data to send
sendStart
- start offset in sendBuf
sendCount
- length of data to send from sendBuf
sendType
- type of send data
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
recvCount
- length of data to recv in recvBuf
recvType
- type of recv datapublic void allToAll(java.lang.Object sendBuf, int sendStart, int sendCount, Datatype sendType, java.lang.Object recvBuf, int recvStart, int recvCount, Datatype recvType) throws MPIException
sendBuf
- data to send
sendStart
- start offset in sendBuf
sendCount
- length of data to send from sendBuf
sendType
- type of send data
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
recvCount
- length of data to recv in recvBuf
recvType
- type of recv datapublic void scatterv(java.lang.Object sendBuf, int[] sendCounts, int[] displacements, Datatype sendType, java.lang.Object recvBuf, int recvStart, int recvCount, Datatype recvType, int root) throws MPIException
sendBuf
- data to send
sendCounts
- length of data to send from sendBuf
sendStart
- start offset in sendBuf
sendType
- type of send data
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
recvCount
- length of data to recv in recvBuf
recvType
- type of recv datapublic void reduce(java.lang.Object sendBuf, int sendStart, java.lang.Object recvBuf, int recvStart, int count, Datatype type, Op op, int root) throws MPIException
sendBuf
- data to reduce
sendStart
- start offset in sendBuf
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
count
- length of data to send/recv
type
- type of send/recv data
Op
- operation to perform
root
- node which receives the resultpublic void allReduce(java.lang.Object sendBuf, int sendStart, java.lang.Object recvBuf, int recvStart, int count, Datatype type, Op op) throws MPIException
sendBuf
- data to reduce
sendStart
- start offset in sendBuf
recvBuf
- dest for gathered data
recvStart
- start offset in recvBuf
count
- length of data to send/recv
type
- type of send/recv data
Op
- operation to performClass | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |