|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pmpi.mpi.Comm
p2pmpi.mpi.IntraComm
public class IntraComm
Collective communication class
Constructor Summary | |
---|---|
IntraComm(p2pmpi.mpi.dev.Device myDevice,
p2pmpi.common.RankTable rankTable,
int rank,
int rankInList,
int numRank,
p2pmpi.common.MapRankTable mapRankTable)
Internal use |
|
IntraComm(Group group)
Create a new collective communicator by group |
Method Summary | |
---|---|
void |
Allgather(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int recvCount,
Datatype recvType)
Gathers data from all tasks and distribute it to all |
void |
Allgatherv(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int[] recvCount,
int[] displs,
Datatype recvType)
Gathers data from all tasks and deliver it to all |
void |
Allreduce(java.lang.Object sendBuffer,
int sendOffset,
java.lang.Object recvBuffer,
int recvOffset,
int count,
Datatype datatype,
Op op)
Reduce the result and then broadcast it to all MPI processes |
void |
AllreduceButterfly(java.lang.Object sendBuffer,
int sendOffset,
java.lang.Object recvBuffer,
int recvOffset,
int count,
Datatype datatype,
Op op)
|
void |
AllreduceSimple(java.lang.Object sendBuffer,
int sendOffset,
java.lang.Object recvBuffer,
int recvOffset,
int count,
Datatype datatype,
Op op)
|
void |
Alltoall(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int recvCount,
Datatype recvType)
Reduce the result and then broadcast it to all MPI processes |
void |
Alltoallv(java.lang.Object sendBuffer,
int sendOffset,
int[] sendCount,
int[] sdispls,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int[] recvCount,
int[] rdispls,
Datatype recvType)
Reduce the result and then broadcast it to all MPI processes with variable size |
void |
Barrier()
Synchronize MPI processes |
void |
Bcast(java.lang.Object buffer,
int offset,
int count,
Datatype datatype,
int root)
Broadcast a message to all MPI processes |
IntraComm |
Create(Group group)
Create a new intra-communicator |
void |
Gather(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int recvCount,
Datatype recvType,
int root)
Gathers together values from a group of tasks |
void |
Gatherv(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int[] recvCount,
int[] displs,
Datatype recvType,
int root)
Gathers into specified locations from all processes in group |
void |
Reduce_scatter(java.lang.Object sendBuffer,
int sendOffset,
java.lang.Object recvBuffer,
int recvOffset,
int[] recvCount,
Datatype datatype,
Op op)
Combines value and scatters the results |
void |
Reduce(java.lang.Object sendBuffer,
int sendOffset,
java.lang.Object recvBuffer,
int recvOffset,
int count,
Datatype datatype,
Op op,
int root)
MPI collective operation reduce from all MPI processes (Binomail tree by default) |
void |
Scan(java.lang.Object sendbuf,
int sendoffset,
java.lang.Object recvbuf,
int recvoffset,
int count,
Datatype datatype,
Op op)
Computes the scan (partial reductions) of data on a collection of processes |
void |
Scatter(java.lang.Object sendBuffer,
int sendOffset,
int sendCount,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int recvCount,
Datatype recvType,
int root)
Sends data from one task to all other tasks in a group |
void |
Scatterv(java.lang.Object sendBuffer,
int sendOffset,
int[] sendCount,
int[] displs,
Datatype sendType,
java.lang.Object recvBuffer,
int recvOffset,
int recvCount,
Datatype recvType,
int root)
Sends a buffer in parts to all tasks in a group |
IntraComm |
Split(int color,
int key)
|
Methods inherited from class p2pmpi.mpi.Comm |
---|
Group, Irecv, Isend, Rank, Recv, Send, Sendrecv, Size, SizeTotal, Ssend |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntraComm(p2pmpi.mpi.dev.Device myDevice, p2pmpi.common.RankTable rankTable, int rank, int rankInList, int numRank, p2pmpi.common.MapRankTable mapRankTable)
public IntraComm(Group group)
group
- GroupMethod Detail |
---|
public IntraComm Create(Group group)
group
- Group
public void Barrier()
public void Bcast(java.lang.Object buffer, int offset, int count, Datatype datatype, int root)
buffer
- Send objectoffset
- Offset of send objectcount
- Number of elementsdatatype
- Type of send objectroot
- MPI Rank of root nodepublic void Reduce(java.lang.Object sendBuffer, int sendOffset, java.lang.Object recvBuffer, int recvOffset, int count, Datatype datatype, Op op, int root)
sendBuffer
- Send objectsendOffset
- Send object offsetrecvBuffer
- Receive objectrecvOffset
- Receive object offsetcount
- Number of elementsdatatype
- MPI datatypeop
- Operation used in reduceroot
- MPI rank of root node which maintain the resultpublic void Allreduce(java.lang.Object sendBuffer, int sendOffset, java.lang.Object recvBuffer, int recvOffset, int count, Datatype datatype, Op op)
sendBuffer
- Send objectsendOffset
- Send object offsetrecvBuffer
- Receive objectrecvOffset
- Receive object offsetcount
- Number of elementsdatatype
- MPI datatypeop
- Operation used in reducepublic void AllreduceSimple(java.lang.Object sendBuffer, int sendOffset, java.lang.Object recvBuffer, int recvOffset, int count, Datatype datatype, Op op)
public void AllreduceButterfly(java.lang.Object sendBuffer, int sendOffset, java.lang.Object recvBuffer, int recvOffset, int count, Datatype datatype, Op op)
public void Alltoallv(java.lang.Object sendBuffer, int sendOffset, int[] sendCount, int[] sdispls, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int[] recvCount, int[] rdispls, Datatype recvType)
sendBuffer
- Send objectsendOffset
- Send object offsetsendCount
- Number of elements for sendingsdispls
- Displacement of send objectsendType
- MPI datatype of send objectrecvBuffer
- Receive objectrecvOffset
- Receive object offsetrecvCount
- Number of elements for receivingrdispls
- Displacement of receive objectrecvType
- MPI datatype of receive objectpublic void Alltoall(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int recvCount, Datatype recvType)
sendBuffer
- Send objectsendOffset
- Send object offsetsendCount
- Number of elements for sendingsendType
- MPI datatype of send objectrecvBuffer
- Receive objectrecvOffset
- Receive object offsetrecvCount
- Number of elements for receivingrecvType
- MPI datatype of receive objectpublic void Gather(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int recvCount, Datatype recvType, int root)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- number of elements for sendingsendType
- MPI datatype of send objectrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- number of elements for receivingrecvType
- MPI datatype of receive objectroot
- node to gather the valuepublic void Gatherv(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int[] recvCount, int[] displs, Datatype recvType, int root)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- number of elements in send objectsendType
- datatype of send object elementsrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- integer array (of length group size) containing
the number of elements that are received from each processdispls
- integer array (of length group size). Entry i specifies
the displacement relative to recvOffset of recvBuffer
at which to place the incoming data from process irecvType
- MPI datatype of receive objectroot
- node to gather the valuepublic void Allgather(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int recvCount, Datatype recvType)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- number of elements for sendingsendType
- MPI datatype of send objectrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- number of elements for receivingrecvType
- MPI datatype of receive objectpublic void Allgatherv(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int[] recvCount, int[] displs, Datatype recvType)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- number of elements for sendingsendType
- MPI datatype of send objectrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- integer array (of length group size) containing
the number of elements that are received from each processdispls
- integer array (of length group size). Entry i specifies
the displacement relative to recvOffset of recvBuffer
at which to place the incoming data from process irecvType
- MPI datatype of receive objectpublic void Scatter(java.lang.Object sendBuffer, int sendOffset, int sendCount, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int recvCount, Datatype recvType, int root)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- number of elements for sendingsendType
- MPI datatype of send objectrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- number of elements for receivingrecvType
- MPI datatype of receive objectroot
- rank of sending processpublic void Scatterv(java.lang.Object sendBuffer, int sendOffset, int[] sendCount, int[] displs, Datatype sendType, java.lang.Object recvBuffer, int recvOffset, int recvCount, Datatype recvType, int root)
sendBuffer
- send objectsendOffset
- send object offsetsendCount
- integer array (of length group size) specifying
the number of elements to send to each processordispls
- integer array (of length group size). Entry i specifies the
displacement relative to process isendType
- MPI datatype of send objectrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- number of elements for receivingrecvType
- MPI datatype of receive objectroot
- rank of sending processpublic void Reduce_scatter(java.lang.Object sendBuffer, int sendOffset, java.lang.Object recvBuffer, int recvOffset, int[] recvCount, Datatype datatype, Op op)
sendBuffer
- send objectsendOffset
- send object offsetrecvBuffer
- receive objectrecvOffset
- receive object offsetrecvCount
- integer array specifying the number of elements in result
distributed to each processdatatype
- data type of elements of sending object (handle)op
- operation (handle)public void Scan(java.lang.Object sendbuf, int sendoffset, java.lang.Object recvbuf, int recvoffset, int count, Datatype datatype, Op op)
sendbuf
- send buffersendoffset
- send buffer offsetrecvbuf
- receive bufferrecvoffset
- receive buffer offsetcount
- number of elementsdatatype
- data typeop
- operationpublic IntraComm Split(int color, int key)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |