Modifier and Type | Field and Description |
---|---|
protected long |
handle |
protected static int |
SELF |
static int |
TYPE_SHARED |
protected static int |
WORLD |
Modifier | Constructor and Description |
---|---|
protected |
Comm() |
protected |
Comm(long handle) |
protected |
Comm(long[] commRequest) |
Modifier and Type | Method and Description |
---|---|
void |
abort(int errorcode)
Abort MPI.
|
void |
allGather(java.lang.Object buf,
int count,
Datatype type)
Similar to
gather , but all processes receive the result. |
void |
allGather(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype)
Similar to
gather , but all processes receive the result. |
void |
allGatherv(java.lang.Object recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype)
Similar to
gatherv , but all processes receive the result. |
void |
allGatherv(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype)
Similar to
gatherv , but all processes receive the result. |
void |
allReduce(java.lang.Object buf,
int count,
Datatype type,
Op op)
Same as
reduce except that the result appears in receive
buffer of all process in the group. |
void |
allReduce(java.lang.Object sendbuf,
java.lang.Object recvbuf,
int count,
Datatype type,
Op op)
Same as
reduce except that the result appears in receive
buffer of all process in the group. |
void |
allToAll(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype)
Extension of
allGather to the case where each process sends
distinct data to each of the receivers. |
void |
allToAllv(java.lang.Object sendbuf,
int[] sendcount,
int[] sdispls,
Datatype sendtype,
java.lang.Object recvbuf,
int[] recvcount,
int[] rdispls,
Datatype recvtype)
Adds flexibility to
allToAll : location of data for send is
specified by sdispls and location to place data on receive
side is specified by rdispls . |
void |
allToAllw(java.nio.Buffer sendBuf,
int[] sendCount,
int[] sDispls,
Datatype[] sendTypes,
java.nio.Buffer recvBuf,
int[] recvCount,
int[] rDispls,
Datatype[] recvTypes)
Adds more flexibility to
allToAllv : datatypes for send are
specified by sendTypes and datatypes for receive are specified
by recvTypes per process. |
void |
barrier()
A call to
barrier blocks the caller until all process
in the group have called it. |
void |
bcast(java.lang.Object buf,
int count,
Datatype type,
int root)
Broadcast a message from the process with rank
root
to all processes of the group. |
void |
bSend(java.lang.Object buf,
int count,
Datatype type,
int dest,
int tag)
Send in buffered mode.
|
Prequest |
bSendInit(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Creates a persistent communication request for a buffered mode send.
|
void |
callErrhandler(int errorCode)
Calls the error handler currently associated with the communicator.
|
Comm |
clone()
Duplicates this communicator.
|
static int |
compare(Comm comm1,
Comm comm2)
Compare two communicators.
|
Intercomm |
createIntercomm(Comm localComm,
int localLeader,
int remoteLeader,
int tag)
Create an inter-communicator.
|
static int |
createKeyval()
Create a new attribute key.
|
void |
deleteAttr(int keyval)
Deletes an attribute value associated with a key on a communicator.
|
void |
disconnect()
Java binding of the MPI operation
MPI_COMM_DISCONNECT . |
Comm |
dup()
Duplicates this communicator.
|
protected long |
dup(long comm) |
Comm |
dupWithInfo(Info info)
Duplicates this communicator with the info object used in the call.
|
protected long |
dupWithInfo(long comm,
long info) |
void |
free()
Java binding of the MPI operation
MPI_COMM_FREE . |
static void |
freeKeyval(int keyval)
Frees an attribute key for communicators.
|
void |
gather(java.lang.Object buf,
int count,
Datatype type,
int root)
Each process sends the contents of its send buffer to the root process.
|
void |
gather(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype,
int root)
Each process sends the contents of its send buffer to the root process.
|
void |
gatherv(java.lang.Object recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
void |
gatherv(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
void |
gatherv(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
java.lang.Object |
getAttr(int keyval)
Retrieves attribute value by key.
|
Errhandler |
getErrhandler()
Returns the error handler currently associated with the communicator.
|
Group |
getGroup()
Return group associated with a communicator.
|
Info |
getInfo()
Java binding of
MPI_COMM_GET_INFO . |
java.lang.String |
getName()
Return the print name from the communicator.
|
int |
getRank()
Rank of this process in group of this communicator.
|
Request |
getRequest()
Returns the associated request to this communicator if it was
created using
iDup() . |
int |
getSize()
Size of group of this communicator.
|
int |
getTopology()
Returns the type of topology associated with the communicator.
|
Request |
iAllGather(java.nio.Buffer buf,
int count,
Datatype type)
Similar to
gather , but all processes receive the result. |
Request |
iAllGather(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype)
Similar to
gather , but all processes receive the result. |
Request |
iAllGatherv(java.nio.Buffer buf,
int[] count,
int[] displs,
Datatype type)
Similar to
gatherv , but all processes receive the result. |
Request |
iAllGatherv(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype)
Similar to
gatherv , but all processes receive the result. |
Request |
iAllReduce(java.nio.Buffer sendbuf,
java.nio.Buffer recvbuf,
int count,
Datatype type,
Op op)
Same as
reduce except that the result appears in receive
buffer of all process in the group. |
Request |
iAllReduce(java.nio.Buffer buf,
int count,
Datatype type,
Op op)
Same as
reduce except that the result appears in receive
buffer of all process in the group. |
Request |
iAllToAll(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype)
Extension of
allGather to the case where each process sends
distinct data to each of the receivers. |
Request |
iAllToAllv(java.nio.Buffer sendbuf,
int[] sendcount,
int[] sdispls,
Datatype sendtype,
java.nio.Buffer recvbuf,
int[] recvcount,
int[] rdispls,
Datatype recvtype)
Adds flexibility to
allToAll : location of data for send is
specified by sdispls and location to place data on receive
side is specified by rdispls . |
Request |
iAllToAllw(java.nio.Buffer sendBuf,
int[] sendCount,
int[] sDispls,
Datatype[] sendTypes,
java.nio.Buffer recvBuf,
int[] recvCount,
int[] rDispls,
Datatype[] recvTypes)
Adds more flexibility to
iAllToAllv : datatypes for send are
specified by sendTypes and datatypes for receive are specified
by recvTypes per process. |
Request |
iBarrier()
Nonblocking barrier sinchronization.
|
Request |
iBcast(java.nio.Buffer buf,
int count,
Datatype type,
int root)
Broadcast a message from the process with rank
root
to all processes of the group. |
Request |
ibSend(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Start a buffered mode, nonblocking send.
|
Comm |
iDup()
Duplicates this communicator.
|
protected long[] |
iDup(long comm) |
Request |
iGather(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype,
int root)
Each process sends the contents of its send buffer to the root process.
|
Request |
iGather(java.nio.Buffer buf,
int count,
Datatype type,
int root)
Each process sends the contents of its send buffer to the root process.
|
Request |
iGatherv(java.nio.Buffer recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
Request |
iGatherv(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
Request |
iGatherv(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
int root)
Extends functionality of
gather by allowing varying
counts of data from each process. |
Request |
iNeighborAllGather(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype)
Java binding of
MPI_INEIGHBOR_ALLGATHER . |
Request |
iNeighborAllGatherv(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype)
Java binding of
MPI_INEIGHBOR_ALLGATHERV . |
Request |
iNeighborAllToAll(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype)
Java binding of
MPI_INEIGHBOR_ALLTOALL . |
Request |
iNeighborAllToAllv(java.nio.Buffer sendbuf,
int[] sendcount,
int[] sdispls,
Datatype sendtype,
java.nio.Buffer recvbuf,
int[] recvcount,
int[] rdispls,
Datatype recvtype)
Java binding of
MPI_INEIGHBOR_ALLTOALLV . |
Status |
iProbe(int source,
int tag)
Check if there is an incoming message matching the pattern specified.
|
Request |
iRecv(java.nio.Buffer buf,
int count,
Datatype type,
int source,
int tag)
Start a nonblocking receive.
|
Request |
iReduce(java.nio.Buffer sendbuf,
java.nio.Buffer recvbuf,
int count,
Datatype type,
Op op,
int root)
Combine elements in input buffer of each process using the reduce
operation, and return the combined value in the output buffer of the
root process.
|
Request |
iReduce(java.nio.Buffer buf,
int count,
Datatype type,
Op op,
int root)
Combine elements in input buffer of each process using the reduce
operation, and return the combined value in the output buffer of the
root process.
|
Request |
iReduceScatter(java.nio.Buffer sendbuf,
java.nio.Buffer recvbuf,
int[] recvcounts,
Datatype type,
Op op)
Combine elements in input buffer of each process using the reduce
operation, and scatter the combined values over the output buffers
of the processes.
|
Request |
iReduceScatter(java.nio.Buffer buf,
int[] counts,
Datatype type,
Op op)
Combine elements in input buffer of each process using the reduce
operation, and scatter the combined values over the output buffers
of the processes.
|
Request |
iReduceScatterBlock(java.nio.Buffer sendbuf,
java.nio.Buffer recvbuf,
int recvcount,
Datatype type,
Op op)
Combine values and scatter the results.
|
Request |
iReduceScatterBlock(java.nio.Buffer buf,
int count,
Datatype type,
Op op)
Combine values and scatter the results.
|
Request |
irSend(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Start a ready mode, nonblocking send.
|
Request |
iScatter(java.nio.Buffer sendbuf,
int sendcount,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gather . |
Request |
iScatter(java.nio.Buffer buf,
int count,
Datatype type,
int root)
Inverse of the operation
gather . |
Request |
iScatterv(java.nio.Buffer sendbuf,
int[] sendcount,
int[] displs,
Datatype sendtype,
java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gatherv . |
Request |
iScatterv(java.nio.Buffer sendbuf,
int[] sendcount,
int[] displs,
Datatype sendtype,
int root)
Inverse of the operation
gatherv . |
Request |
iScatterv(java.nio.Buffer recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gatherv . |
Request |
iSend(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Start a standard mode, nonblocking send.
|
boolean |
isInter()
Test if this communicator is an inter-communicator.
|
boolean |
isNull()
Test if communicator object is null (has been freed).
|
Request |
isSend(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Start a synchronous mode, nonblocking send.
|
void |
neighborAllGather(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype)
Java binding of
MPI_NEIGHBOR_ALLGATHER . |
void |
neighborAllGatherv(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int[] recvcount,
int[] displs,
Datatype recvtype)
Java binding of
MPI_NEIGHBOR_ALLGATHERV . |
void |
neighborAllToAll(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype)
Java binding of
MPI_NEIGHBOR_ALLTOALL . |
void |
neighborAllToAllv(java.lang.Object sendbuf,
int[] sendcount,
int[] sdispls,
Datatype sendtype,
java.lang.Object recvbuf,
int[] recvcount,
int[] rdispls,
Datatype recvtype)
Java binding of
MPI_NEIGHBOR_ALLTOALLV . |
int |
pack(java.lang.Object inbuf,
int incount,
Datatype type,
byte[] outbuf,
int position)
Packs message in send buffer
inbuf into space specified in
outbuf . |
int |
packSize(int incount,
Datatype type)
Returns an upper bound on the increment of
position effected
by pack . |
Status |
probe(int source,
int tag)
Wait until there is an incoming message matching the pattern specified.
|
Status |
recv(java.lang.Object buf,
int count,
Datatype type,
int source,
int tag)
Blocking receive operation.
|
Prequest |
recvInit(java.nio.Buffer buf,
int count,
Datatype type,
int source,
int tag)
Creates a persistent communication request for a receive operation.
|
void |
reduce(java.lang.Object buf,
int count,
Datatype type,
Op op,
int root)
Combine elements in input buffer of each process using the reduce
operation, and return the combined value in the output buffer of the
root process.
|
void |
reduce(java.lang.Object sendbuf,
java.lang.Object recvbuf,
int count,
Datatype type,
Op op,
int root)
Combine elements in input buffer of each process using the reduce
operation, and return the combined value in the output buffer of the
root process.
|
static void |
reduceLocal(java.lang.Object inBuf,
java.lang.Object inOutBuf,
int count,
Datatype type,
Op op)
Apply the operation given by
op element-wise to the
elements of inBuf and inOutBuf with the result
stored element-wise in inOutBuf . |
void |
reduceScatter(java.lang.Object buf,
int[] counts,
Datatype type,
Op op)
Combine elements in input buffer of each process using the reduce
operation, and scatter the combined values over the output buffers
of the processes.
|
void |
reduceScatter(java.lang.Object sendbuf,
java.lang.Object recvbuf,
int[] recvcounts,
Datatype type,
Op op)
Combine elements in input buffer of each process using the reduce
operation, and scatter the combined values over the output buffers
of the processes.
|
void |
reduceScatterBlock(java.lang.Object buf,
int count,
Datatype type,
Op op)
Combine values and scatter the results.
|
void |
reduceScatterBlock(java.lang.Object sendbuf,
java.lang.Object recvbuf,
int recvcount,
Datatype type,
Op op)
Combine values and scatter the results.
|
void |
rSend(java.lang.Object buf,
int count,
Datatype type,
int dest,
int tag)
Send in ready mode.
|
Prequest |
rSendInit(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Creates a persistent communication request for a ready mode send.
|
void |
scatter(java.lang.Object buf,
int count,
Datatype type,
int root)
Inverse of the operation
gather . |
void |
scatter(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gather . |
void |
scatterv(java.lang.Object sendbuf,
int[] sendcount,
int[] displs,
Datatype sendtype,
int root)
Inverse of the operation
gatherv . |
void |
scatterv(java.lang.Object sendbuf,
int[] sendcount,
int[] displs,
Datatype sendtype,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gatherv . |
void |
scatterv(java.lang.Object recvbuf,
int recvcount,
Datatype recvtype,
int root)
Inverse of the operation
gatherv . |
void |
send(java.lang.Object buf,
int count,
Datatype type,
int dest,
int tag)
Blocking send operation.
|
Prequest |
sendInit(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Creates a persistent communication request for a standard mode send.
|
Status |
sendRecv(java.lang.Object sendbuf,
int sendcount,
Datatype sendtype,
int dest,
int sendtag,
java.lang.Object recvbuf,
int recvcount,
Datatype recvtype,
int source,
int recvtag)
Execute a blocking send and receive operation.
|
Status |
sendRecvReplace(java.lang.Object buf,
int count,
Datatype type,
int dest,
int sendtag,
int source,
int recvtag)
Execute a blocking send and receive operation,
receiving message into send buffer.
|
void |
setAttr(int keyval,
java.lang.Object value)
Stores attribute value associated with a key.
|
void |
setErrhandler(Errhandler errhandler)
Associates a new error handler with communicator at the calling process.
|
void |
setInfo(Info info)
Java binding of
MPI_COMM_SET_INFO . |
void |
setName(java.lang.String name)
Sets the print name for the communicator.
|
protected void |
setType(int type) |
void |
sSend(java.lang.Object buf,
int count,
Datatype type,
int dest,
int tag)
Send in synchronous mode.
|
Prequest |
sSendInit(java.nio.Buffer buf,
int count,
Datatype type,
int dest,
int tag)
Creates a persistent communication request for a synchronous mode send.
|
int |
unpack(byte[] inbuf,
int position,
java.lang.Object outbuf,
int outcount,
Datatype type)
Unpacks message in receive buffer
outbuf into space specified in
inbuf . |
public static final int TYPE_SHARED
protected static final int SELF
protected static final int WORLD
protected long handle
protected Comm()
protected Comm(long handle)
protected Comm(long[] commRequest)
protected final void setType(int type)
public Comm clone()
Java binding of MPI_COMM_DUP
.
It is recommended to use dup()
instead of clone()
because the last can't throw an MPIException
.
clone
in class java.lang.Object
public Comm dup() throws MPIException
Java binding of MPI_COMM_DUP
.
MPIException
- Signals that an MPI exception of some sort has occurred.protected final long dup(long comm) throws MPIException
MPIException
public Comm iDup() throws MPIException
Java binding of MPI_COMM_IDUP
.
The new communicator can't be used before the operation completes.
The request object must be obtained calling getRequest()
.
MPIException
- Signals that an MPI exception of some sort has occurred.protected final long[] iDup(long comm) throws MPIException
MPIException
public Comm dupWithInfo(Info info) throws MPIException
Java binding of MPI_COMM_DUP_WITH_INFO
.
info
- info object to associate with the new communicatorMPIException
- Signals that an MPI exception of some sort has occurred.protected final long dupWithInfo(long comm, long info) throws MPIException
MPIException
public final Request getRequest()
iDup()
.iDup()
, or null otherwise.public final int getSize() throws MPIException
Java binding of the MPI operation MPI_COMM_SIZE
.
MPIException
- Signals that an MPI exception of some sort has occurred.public final int getRank() throws MPIException
Java binding of the MPI operation MPI_COMM_RANK
.
MPIException
- Signals that an MPI exception of some sort has occurred.public static int compare(Comm comm1, Comm comm2) throws MPIException
Java binding of the MPI operation MPI_COMM_COMPARE
.
comm1
- first communicatorcomm2
- second communicatorMPI.IDENT
results if the comm1
and comm2
are references to the same object (ie, if comm1 == comm2
).MPI.CONGRUENT
results if the underlying groups are identical
but the communicators differ by context.MPI.SIMILAR
results if the underlying groups are similar
but the communicators differ by context.MPI.UNEQUAL
results otherwise.MPIException
- Signals that an MPI exception of some sort has occurred.public final void free() throws MPIException
MPI_COMM_FREE
.free
in interface Freeable
MPIException
- Signals that an MPI exception of some sort has occurred.public final boolean isNull()
MPI_COMM_NULL
.public final void setInfo(Info info) throws MPIException
MPI_COMM_SET_INFO
.info
- info objectMPIException
- Signals that an MPI exception of some sort has occurred.public final Info getInfo() throws MPIException
MPI_COMM_GET_INFO
.MPIException
- Signals that an MPI exception of some sort has occurred.public final void disconnect() throws MPIException
MPI_COMM_DISCONNECT
.MPIException
- Signals that an MPI exception of some sort has occurred.public final Group getGroup() throws MPIException
Java binding of the MPI operation MPI_COMM_GROUP
.
MPIException
- Signals that an MPI exception of some sort has occurred.public final boolean isInter() throws MPIException
Java binding of the MPI operation MPI_COMM_TEST_INTER
.
true
if this is an inter-communicator,
false
otherwiseMPIException
- Signals that an MPI exception of some sort has occurred.public final Intercomm createIntercomm(Comm localComm, int localLeader, int remoteLeader, int tag) throws MPIException
Java binding of the MPI operation MPI_INTERCOMM_CREATE
.
This operation is defined as a method on the "peer communicator",
making it analogous to a send
or recv
communication
with the remote group leader.
localComm
- local intra-communicatorlocalLeader
- rank of local group leader in localComm
remoteLeader
- rank of remote group leader in this communicatortag
- "safe" tagMPIException
- Signals that an MPI exception of some sort has occurred.public final void send(java.lang.Object buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_SEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.public final Status recv(java.lang.Object buf, int count, Datatype type, int source, int tag) throws MPIException
Java binding of the MPI operation MPI_RECV
.
buf
- receive buffercount
- number of items in receive buffertype
- datatype of each item in receive buffersource
- rank of sourcetag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.public final Status sendRecv(java.lang.Object sendbuf, int sendcount, Datatype sendtype, int dest, int sendtag, java.lang.Object recvbuf, int recvcount, Datatype recvtype, int source, int recvtag) throws MPIException
Java binding of the MPI operation MPI_SENDRECV
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferdest
- rank of destinationsendtag
- send tagrecvbuf
- receive bufferrecvcount
- number of items in receive bufferrecvtype
- datatype of each item in receive buffersource
- rank of sourcerecvtag
- receive tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
,
recv(Object, int, Datatype, int, int)
public final Status sendRecvReplace(java.lang.Object buf, int count, Datatype type, int dest, int sendtag, int source, int recvtag) throws MPIException
Java binding of the MPI operation MPI_SENDRECV_REPLACE
.
buf
- buffercount
- number of items to sendtype
- datatype of each item in bufferdest
- rank of destinationsendtag
- send tagsource
- rank of sourcerecvtag
- receive tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
,
recv(Object, int, Datatype, int, int)
public final void bSend(java.lang.Object buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_BSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final void sSend(java.lang.Object buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_SSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final void rSend(java.lang.Object buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_RSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Request iSend(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_ISEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Request ibSend(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_IBSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Request isSend(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_ISSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Request irSend(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_IRSEND
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Request iRecv(java.nio.Buffer buf, int count, Datatype type, int source, int tag) throws MPIException
Java binding of the MPI operation MPI_IRECV
.
buf
- receive buffercount
- number of items in receive buffertype
- datatype of each item in receive buffersource
- rank of sourcetag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.recv(Object, int, Datatype, int, int)
public final Prequest sendInit(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_SEND_INIT
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Prequest bSendInit(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_BSEND_INIT
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Prequest sSendInit(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_SSEND_INIT
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Prequest rSendInit(java.nio.Buffer buf, int count, Datatype type, int dest, int tag) throws MPIException
Java binding of the MPI operation MPI_RSEND_INIT
.
buf
- send buffercount
- number of items to sendtype
- datatype of each item in send bufferdest
- rank of destinationtag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.send(Object, int, Datatype, int, int)
public final Prequest recvInit(java.nio.Buffer buf, int count, Datatype type, int source, int tag) throws MPIException
Java binding of the MPI operation MPI_RECV_INIT
.
buf
- receive buffercount
- number of items in receive buffertype
- datatype of each item in receive buffersource
- rank of sourcetag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.recv(Object, int, Datatype, int, int)
public final int pack(java.lang.Object inbuf, int incount, Datatype type, byte[] outbuf, int position) throws MPIException
inbuf
into space specified in
outbuf
.
Java binding of the MPI operation MPI_PACK
.
The return value is the output value of position
- the
inital value incremented by the number of bytes written.
inbuf
- input bufferincount
- number of items in input buffertype
- datatype of each item in input bufferoutbuf
- output bufferposition
- initial position in output bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final int unpack(byte[] inbuf, int position, java.lang.Object outbuf, int outcount, Datatype type) throws MPIException
outbuf
into space specified in
inbuf
.
Java binding of the MPI operation MPI_UNPACK
.
The return value is the output value of position
- the
inital value incremented by the number of bytes read.
inbuf
- input bufferposition
- initial position in input bufferoutbuf
- output bufferoutcount
- number of items in output buffertype
- datatype of each item in output bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final int packSize(int incount, Datatype type) throws MPIException
position
effected
by pack
.
Java binding of the MPI operation MPI_PACK_SIZE
.
incount
- number of items in input buffertype
- datatype of each item in input bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Status iProbe(int source, int tag) throws MPIException
Java binding of the MPI operation MPI_IPROBE
.
If such a message is currently available, a status object similar
to the return value of a matching recv
operation is returned.
source
- rank of sourcetag
- message tagnull
otherwise.MPIException
- Signals that an MPI exception of some sort has occurred.public final Status probe(int source, int tag) throws MPIException
Java binding of the MPI operation MPI_PROBE
.
Returns a status object similar to the return value of a matching
recv
operation.
source
- rank of sourcetag
- message tagMPIException
- Signals that an MPI exception of some sort has occurred.public static int createKeyval() throws MPIException
Java binding of the MPI operation MPI_COMM_CREATE_KEYVAL
.
MPIException
- Signals that an MPI exception of some sort has occurred.public static void freeKeyval(int keyval) throws MPIException
Java binding of the MPI operation MPI_COMM_FREE_KEYVAL
.
keyval
- attribute keyMPIException
- Signals that an MPI exception of some sort has occurred.public final void setAttr(int keyval, java.lang.Object value) throws MPIException
Java binding of the MPI operation MPI_COMM_SET_ATTR
.
keyval
- attribute keyvalue
- attribute valueMPIException
- Signals that an MPI exception of some sort has occurred.public final java.lang.Object getAttr(int keyval) throws MPIException
Java binding of the MPI operation MPI_COMM_GET_ATTR
.
keyval
- attribute keyMPIException
- Signals that an MPI exception of some sort has occurred.public final void deleteAttr(int keyval) throws MPIException
Java binding of the MPI operation MPI_COMM_DELETE_ATTR
.
keyval
- attribute keyMPIException
- Signals that an MPI exception of some sort has occurred.public final int getTopology() throws MPIException
Java binding of the MPI operation MPI_TOPO_TEST
.
The return value will be one of MPI.GRAPH
, MPI.CART
,
MPI.DIST_GRAPH
or MPI.UNDEFINED
.
MPIException
- Signals that an MPI exception of some sort has occurred.public final void abort(int errorcode) throws MPIException
Java binding of the MPI operation MPI_ABORT
.
errorcode
- error code for Unix or POSIX environmentsMPIException
- Signals that an MPI exception of some sort has occurred.public final void setErrhandler(Errhandler errhandler) throws MPIException
Java binding of the MPI operation MPI_COMM_SET_ERRHANDLER
.
errhandler
- new MPI error handler for communicatorMPIException
- Signals that an MPI exception of some sort has occurred.public final Errhandler getErrhandler() throws MPIException
Java binding of the MPI operation MPI_COMM_GET_ERRHANDLER
.
MPIException
- Signals that an MPI exception of some sort has occurred.public void callErrhandler(int errorCode) throws MPIException
Java binding of the MPI operation MPI_COMM_CALL_ERRHANDLER
.
errorCode
- error codeMPIException
- Signals that an MPI exception of some sort has occurred.public final void barrier() throws MPIException
barrier
blocks the caller until all process
in the group have called it.
Java binding of the MPI operation MPI_BARRIER
.
MPIException
- Signals that an MPI exception of some sort has occurred.public final Request iBarrier() throws MPIException
Java binding of the MPI operation MPI_IBARRIER
.
MPIException
- Signals that an MPI exception of some sort has occurred.public final void bcast(java.lang.Object buf, int count, Datatype type, int root) throws MPIException
root
to all processes of the group.
Java binding of the MPI operation MPI_BCAST
.
buf
- buffercount
- number of items in buffertype
- datatype of each item in bufferroot
- rank of broadcast rootMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iBcast(java.nio.Buffer buf, int count, Datatype type, int root) throws MPIException
root
to all processes of the group.
Java binding of the MPI operation MPI_IBCAST
.
buf
- buffercount
- number of items in buffertype
- datatype of each item in bufferroot
- rank of broadcast rootMPIException
- Signals that an MPI exception of some sort has occurred.public final void gather(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
Java binding of the MPI operation MPI_GATHER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final void gather(java.lang.Object buf, int count, Datatype type, int root) throws MPIException
Java binding of the MPI operation MPI_GATHER
using MPI_IN_PLACE
instead of the send buffer.
The buffer is used by the root process to receive data,
and it is used by the non-root processes to send data.
buf
- buffercount
- number of items to send/receivetype
- datatype of each item in bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iGather(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
Java binding of the MPI operation MPI_IGATHER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iGather(java.nio.Buffer buf, int count, Datatype type, int root) throws MPIException
Java binding of the MPI operation MPI_IGATHER
using MPI_IN_PLACE
instead of the send buffer.
The buffer is used by the root process to receive data,
and it is used by the non-root processes to send data.
buf
- buffercount
- number of items to send/receivetype
- datatype of each item in bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final void gatherv(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_GATHERV
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final void gatherv(java.lang.Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_GATHERV
using
MPI_IN_PLACE
instead of the send buffer in the root process.
This method must be used in the root process.
recvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final void gatherv(java.lang.Object sendbuf, int sendcount, Datatype sendtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_GATHERV
using
MPI_IN_PLACE
instead of the send buffer in the root process.
This method must be used in the non-root processes.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iGatherv(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int[] recvcount, int[] displs, Datatype recvtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_IGATHERV
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iGatherv(java.nio.Buffer recvbuf, int[] recvcount, int[] displs, Datatype recvtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_IGATHERV
using
MPI_IN_PLACE
instead of the send buffer in the root process.
This method must be used in the root process.
recvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iGatherv(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, int root) throws MPIException
gather
by allowing varying
counts of data from each process.
Java binding of the MPI operation MPI_IGATHERV
using
MPI_IN_PLACE
instead of the send buffer in the root process.
This method must be used in the non-root processes.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferroot
- rank of receiving processMPIException
- Signals that an MPI exception of some sort has occurred.public final void scatter(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gather
.
Java binding of the MPI operation MPI_SCATTER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final void scatter(java.lang.Object buf, int count, Datatype type, int root) throws MPIException
gather
.
Java binding of the MPI operation MPI_SCATTER
using MPI_IN_PLACE
instead of the receive buffer.
The buffer is used by the root process to send data,
and it is used by the non-root processes to receive data.
buf
- send/receive buffercount
- number of items to send/receivetype
- datatype of each item in bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iScatter(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gather
.
Java binding of the MPI operation MPI_ISCATTER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iScatter(java.nio.Buffer buf, int count, Datatype type, int root) throws MPIException
gather
.
Java binding of the MPI operation MPI_ISCATTER
using MPI_IN_PLACE
instead of the receive buffer.
The buffer is used by the root process to send data,
and it is used by the non-root processes to receive data.
buf
- send/receive buffercount
- number of items to send/receivetype
- datatype of each item in bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final void scatterv(java.lang.Object sendbuf, int[] sendcount, int[] displs, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_SCATTERV
.
sendbuf
- send buffersendcount
- number of items sent to each processdispls
- displacements from which to take outgoing datasendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final void scatterv(java.lang.Object sendbuf, int[] sendcount, int[] displs, Datatype sendtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_SCATTERV
using
MPI_IN_PLACE
instead of the receive buffer in the root process.
This method must be used in the root process.
sendbuf
- send buffersendcount
- number of items sent to each processdispls
- displacements from which to take outgoing datasendtype
- datatype of each item in send bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final void scatterv(java.lang.Object recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_SCATTERV
using
MPI_IN_PLACE
instead of the receive buffer in the root process.
This method must be used in the non-root processes.
recvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iScatterv(java.nio.Buffer sendbuf, int[] sendcount, int[] displs, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_ISCATTERV
.
sendbuf
- send buffersendcount
- number of items sent to each processdispls
- displacements from which to take outgoing datasendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iScatterv(java.nio.Buffer sendbuf, int[] sendcount, int[] displs, Datatype sendtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_ISCATTERV
using
MPI_IN_PLACE
instead of the receive buffer in the root process.
This method must be used in the root process.
sendbuf
- send buffersendcount
- number of items sent to each processdispls
- displacements from which to take outgoing datasendtype
- datatype of each item in send bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iScatterv(java.nio.Buffer recvbuf, int recvcount, Datatype recvtype, int root) throws MPIException
gatherv
.
Java binding of the MPI operation MPI_ISCATTERV
using
MPI_IN_PLACE
instead of the receive buffer in the root process.
This method must be used in the non-root processes.
recvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferroot
- rank of sending processMPIException
- Signals that an MPI exception of some sort has occurred.public final void allGather(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype) throws MPIException
gather
, but all processes receive the result.
Java binding of the MPI operation MPI_ALLGATHER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void allGather(java.lang.Object buf, int count, Datatype type) throws MPIException
gather
, but all processes receive the result.
Java binding of the MPI operation MPI_ALLGATHER
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- number of items to receivetype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllGather(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype) throws MPIException
gather
, but all processes receive the result.
Java binding of the MPI operation MPI_IALLGATHER
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllGather(java.nio.Buffer buf, int count, Datatype type) throws MPIException
gather
, but all processes receive the result.
Java binding of the MPI operation MPI_IALLGATHER
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- number of items to receivetype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void allGatherv(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException
gatherv
, but all processes receive the result.
Java binding of the MPI operation MPI_ALLGATHERV
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void allGatherv(java.lang.Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException
gatherv
, but all processes receive the result.
Java binding of the MPI operation MPI_ALLGATHERV
using MPI_IN_PLACE
instead of the send buffer.
recvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllGatherv(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException
gatherv
, but all processes receive the result.
Java binding of the MPI operation MPI_IALLGATHERV
.
sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements received from each processdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllGatherv(java.nio.Buffer buf, int[] count, int[] displs, Datatype type) throws MPIException
gatherv
, but all processes receive the result.
Java binding of the MPI operation MPI_IALLGATHERV
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- number of elements received from each processdispls
- displacements at which to place incoming datatype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void allToAll(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype) throws MPIException
allGather
to the case where each process sends
distinct data to each of the receivers.
Java binding of the MPI operation MPI_ALLTOALL
.
sendbuf
- send buffersendcount
- number of items sent to each processsendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of items received from any processrecvtype
- datatype of receive buffer itemsMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllToAll(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype) throws MPIException
allGather
to the case where each process sends
distinct data to each of the receivers.
Java binding of the MPI operation MPI_IALLTOALL
.
sendbuf
- send buffersendcount
- number of items sent to each processsendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of items received from any processrecvtype
- datatype of receive buffer itemsMPIException
- Signals that an MPI exception of some sort has occurred.public final void allToAllv(java.lang.Object sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, java.lang.Object recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException
allToAll
: location of data for send is
specified by sdispls
and location to place data on receive
side is specified by rdispls
.
Java binding of the MPI operation MPI_ALLTOALLV
.
sendbuf
- send buffersendcount
- number of items sent to each buffersdispls
- displacements from which to take outgoing datasendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of elements received from each processrdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllToAllv(java.nio.Buffer sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, java.nio.Buffer recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException
allToAll
: location of data for send is
specified by sdispls
and location to place data on receive
side is specified by rdispls
.
Java binding of the MPI operation MPI_IALLTOALLV
.
sendbuf
- send buffersendcount
- number of items sent to each buffersdispls
- displacements from which to take outgoing datasendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of elements received from each processrdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void allToAllw(java.nio.Buffer sendBuf, int[] sendCount, int[] sDispls, Datatype[] sendTypes, java.nio.Buffer recvBuf, int[] recvCount, int[] rDispls, Datatype[] recvTypes) throws MPIException
allToAllv
: datatypes for send are
specified by sendTypes
and datatypes for receive are specified
by recvTypes
per process.
Java binding of the MPI operation MPI_ALLTOALLW
.
sendBuf
- send buffersendCount
- number of items sent to each buffersDispls
- displacements from which to take outgoing datasendTypes
- datatypes of send buffer itemsrecvBuf
- receive bufferrecvCount
- number of elements received from each processrDispls
- displacements at which to place incoming datarecvTypes
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllToAllw(java.nio.Buffer sendBuf, int[] sendCount, int[] sDispls, Datatype[] sendTypes, java.nio.Buffer recvBuf, int[] recvCount, int[] rDispls, Datatype[] recvTypes) throws MPIException
iAllToAllv
: datatypes for send are
specified by sendTypes
and datatypes for receive are specified
by recvTypes
per process.
Java binding of the MPI operation MPI_IALLTOALLW
.
sendBuf
- send buffersendCount
- number of items sent to each buffersDispls
- displacements from which to take outgoing datasendTypes
- datatype send buffer itemsrecvBuf
- receive bufferrecvCount
- number of elements received from each processrDispls
- displacements at which to place incoming datarecvTypes
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void neighborAllGather(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype) throws MPIException
MPI_NEIGHBOR_ALLGATHER
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iNeighborAllGather(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype) throws MPIException
MPI_INEIGHBOR_ALLGATHER
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void neighborAllGatherv(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException
MPI_NEIGHBOR_ALLGATHERV
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements that are received from each neighbordispls
- displacements at which to place incoming datarecvtype
- datatype of receive buffer elementsMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iNeighborAllGatherv(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException
MPI_INEIGHBOR_ALLGATHERV
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of elements that are received from each neighbordispls
- displacements at which to place incoming datarecvtype
- datatype of receive buffer elementsMPIException
- Signals that an MPI exception of some sort has occurred.public final void neighborAllToAll(java.lang.Object sendbuf, int sendcount, Datatype sendtype, java.lang.Object recvbuf, int recvcount, Datatype recvtype) throws MPIException
MPI_NEIGHBOR_ALLTOALL
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iNeighborAllToAll(java.nio.Buffer sendbuf, int sendcount, Datatype sendtype, java.nio.Buffer recvbuf, int recvcount, Datatype recvtype) throws MPIException
MPI_INEIGHBOR_ALLTOALL
.sendbuf
- send buffersendcount
- number of items to sendsendtype
- datatype of each item in send bufferrecvbuf
- receive bufferrecvcount
- number of items to receiverecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void neighborAllToAllv(java.lang.Object sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, java.lang.Object recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException
MPI_NEIGHBOR_ALLTOALLV
.sendbuf
- send buffersendcount
- number of items sent to each buffersdispls
- displacements from which to take outgoing datasendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of elements received from each processrdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iNeighborAllToAllv(java.nio.Buffer sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, java.nio.Buffer recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException
MPI_INEIGHBOR_ALLTOALLV
.sendbuf
- send buffersendcount
- number of items sent to each buffersdispls
- displacements from which to take outgoing datasendtype
- datatype send buffer itemsrecvbuf
- receive bufferrecvcount
- number of elements received from each processrdispls
- displacements at which to place incoming datarecvtype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduce(java.lang.Object sendbuf, java.lang.Object recvbuf, int count, Datatype type, Op op, int root) throws MPIException
Java binding of the MPI operation MPI_REDUCE
.
The predefined operations are available in Java as MPI.MAX
,
MPI.MIN
, MPI.SUM
, MPI.PROD
, MPI.LAND
,
MPI.BAND
, MPI.LOR
, MPI.BOR
, MPI.LXOR
,
MPI.BXOR
, MPI.MINLOC
and MPI.MAXLOC
.
sendbuf
- send bufferrecvbuf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationroot
- rank of root processMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduce(java.lang.Object buf, int count, Datatype type, Op op, int root) throws MPIException
Java binding of the MPI operation MPI_REDUCE
using MPI_IN_PLACE
instead of the send buffer.
buf
- send/receive buffercount
- number of items in buffertype
- data type of each item in bufferop
- reduce operationroot
- rank of root processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduce(java.nio.Buffer sendbuf, java.nio.Buffer recvbuf, int count, Datatype type, Op op, int root) throws MPIException
Java binding of the MPI operation MPI_IREDUCE
.
sendbuf
- send bufferrecvbuf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationroot
- rank of root processMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduce(java.nio.Buffer buf, int count, Datatype type, Op op, int root) throws MPIException
Java binding of the MPI operation MPI_IREDUCE
using MPI_IN_PLACE
instead of the send buffer.
buf
- send/receive buffercount
- number of items in buffertype
- data type of each item in bufferop
- reduce operationroot
- rank of root processMPIException
- Signals that an MPI exception of some sort has occurred.public final void allReduce(java.lang.Object sendbuf, java.lang.Object recvbuf, int count, Datatype type, Op op) throws MPIException
reduce
except that the result appears in receive
buffer of all process in the group.
Java binding of the MPI operation MPI_ALLREDUCE
.
sendbuf
- send bufferrecvbuf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void allReduce(java.lang.Object buf, int count, Datatype type, Op op) throws MPIException
reduce
except that the result appears in receive
buffer of all process in the group.
Java binding of the MPI operation MPI_ALLREDUCE
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllReduce(java.nio.Buffer sendbuf, java.nio.Buffer recvbuf, int count, Datatype type, Op op) throws MPIException
reduce
except that the result appears in receive
buffer of all process in the group.
Java binding of the MPI operation MPI_IALLREDUCE
.
sendbuf
- send bufferrecvbuf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iAllReduce(java.nio.Buffer buf, int count, Datatype type, Op op) throws MPIException
reduce
except that the result appears in receive
buffer of all process in the group.
Java binding of the MPI operation MPI_IALLREDUCE
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- number of items in send buffertype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduceScatter(java.lang.Object sendbuf, java.lang.Object recvbuf, int[] recvcounts, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_REDUCE_SCATTER
.
sendbuf
- send bufferrecvbuf
- receive bufferrecvcounts
- numbers of result elements distributed to each processtype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduceScatter(java.lang.Object buf, int[] counts, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_REDUCE_SCATTER
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercounts
- numbers of result elements distributed to each processtype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduceScatter(java.nio.Buffer sendbuf, java.nio.Buffer recvbuf, int[] recvcounts, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_IREDUCE_SCATTER
.
sendbuf
- send bufferrecvbuf
- receive bufferrecvcounts
- numbers of result elements distributed to each processtype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduceScatter(java.nio.Buffer buf, int[] counts, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_IREDUCE_SCATTER
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercounts
- numbers of result elements distributed to each processtype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduceScatterBlock(java.lang.Object sendbuf, java.lang.Object recvbuf, int recvcount, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_REDUCE_SCATTER_BLOCK
.
sendbuf
- send bufferrecvbuf
- receive bufferrecvcount
- element count per blocktype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void reduceScatterBlock(java.lang.Object buf, int count, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_REDUCE_SCATTER_BLOCK
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- element count per blocktype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduceScatterBlock(java.nio.Buffer sendbuf, java.nio.Buffer recvbuf, int recvcount, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_IREDUCE_SCATTER_BLOCK
.
sendbuf
- send bufferrecvbuf
- receive bufferrecvcount
- element count per blocktype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final Request iReduceScatterBlock(java.nio.Buffer buf, int count, Datatype type, Op op) throws MPIException
Java binding of the MPI operation MPI_IREDUCE_SCATTER_BLOCK
using MPI_IN_PLACE
instead of the send buffer.
buf
- receive buffercount
- element count per blocktype
- data type of each item in send bufferop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public static void reduceLocal(java.lang.Object inBuf, java.lang.Object inOutBuf, int count, Datatype type, Op op) throws MPIException
op
element-wise to the
elements of inBuf
and inOutBuf
with the result
stored element-wise in inOutBuf
.
Java binding of the MPI operation MPI_REDUCE_LOCAL
.
inBuf
- input bufferinOutBuf
- input buffer, will contain combined outputcount
- number of elementstype
- data type of each itemop
- reduce operationMPIException
- Signals that an MPI exception of some sort has occurred.public final void setName(java.lang.String name) throws MPIException
name
- name for the communicatorMPIException
- Signals that an MPI exception of some sort has occurred.public final java.lang.String getName() throws MPIException
MPIException
- Signals that an MPI exception of some sort has occurred.