Modifier and Type | Field and Description |
---|---|
static int |
FLAVOR_PRIVATE |
static int |
FLAVOR_SHARED |
static int |
WIN_NULL |
Constructor and Description |
---|
Win(java.nio.Buffer base,
int size,
int dispUnit,
Info info,
Comm comm)
Java binding of
MPI_WIN_CREATE . |
Win(Info info,
Comm comm)
Java binding of
MPI_WIN_CREATE_DYNAMIC . |
Win(int size,
int dispUnit,
Info info,
Comm comm,
java.nio.Buffer base,
int flavor)
Java binding of
MPI_WIN_ALLOCATE and MPI_WIN_ALLOCATE_SHARED . |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType,
Op op)
Java binding of
MPI_ACCUMULATE . |
void |
attach(java.nio.Buffer base,
int size)
Java binding of
MPI_WIN_ATTACH . |
void |
callErrhandler(int errorCode)
Java binding of the MPI operation
MPI_WIN_CALL_ERRHANDLER . |
void |
compareAndSwap(java.nio.Buffer origin,
java.nio.Buffer compareAddr,
java.nio.Buffer resultAddr,
Datatype targetType,
int targetRank,
int targetDisp)
Java binding of
MPI_COMPARE_AND_SWAP . |
void |
complete()
Java binding of the MPI operation
MPI_WIN_COMPLETE . |
static int |
createKeyval()
Create a new attribute key.
|
void |
deleteAttr(int keyval)
Deletes an attribute value associated with a key.
|
void |
detach(java.nio.Buffer base)
Java binding of
MPI_WIN_DETACH . |
void |
fence(int assertion)
Java binding of
MPI_WIN_FENCE . |
void |
fetchAndOp(java.nio.Buffer origin,
java.nio.Buffer resultAddr,
Datatype dataType,
int targetRank,
int targetDisp,
Op op)
Java binding of
MPI_FETCH_AND_OP . |
void |
flush(int targetRank)
Java binding of the MPI operation
MPI_WIN_FLUSH . |
void |
flushAll()
Java binding of the MPI operation
MPI_WIN_FLUSH_ALL . |
void |
flushLocal(int targetRank)
Java binding of the MPI operation
MPI_WIN_FLUSH_LOCAL . |
void |
flushLocalAll()
Java binding of the MPI operation
MPI_WIN_FLUSH_LOCAL_ALL . |
void |
free()
Java binding of
MPI_WIN_FREE . |
static void |
freeKeyval(int keyval)
Frees an attribute key.
|
void |
get(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType)
Java binding of
MPI_GET . |
void |
getAccumulate(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
java.nio.Buffer resultAddr,
int resultCount,
Datatype resultType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType,
Op op)
Java binding of
MPI_GET_ACCUMULATE . |
java.lang.Object |
getAttr(int keyval)
Retrieves attribute value by key.
|
Errhandler |
getErrhandler()
Java binding of the MPI operation
MPI_WIN_GET_ERRHANDLER . |
Group |
getGroup()
Java binding of the MPI operation
MPI_GET_GROUP . |
Info |
getInfo()
Java binding of the MPI operation
MPI_WIN_GET_INFO . |
java.lang.String |
getName()
Java binding of the MPI operation
MPI_WIN_GET_NAME . |
void |
lock(int lockType,
int rank,
int assertion)
Java binding of the MPI operation
MPI_WIN_LOCK . |
void |
lockAll(int assertion)
Java binding of the MPI operation
MPI_WIN_LOCK_ALL . |
void |
post(Group group,
int assertion)
Java binding of the MPI operation
MPI_WIN_POST . |
void |
put(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType)
Java binding of
MPI_PUT . |
Request |
rAccumulate(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType,
Op op)
Java binding of
MPI_RACCUMULATE . |
Request |
rGet(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType)
Java binding of
MPI_RGET . |
Request |
rGetAccumulate(java.nio.Buffer origin,
int orgCount,
Datatype orgType,
java.nio.Buffer resultAddr,
int resultCount,
Datatype resultType,
int targetRank,
int targetDisp,
int targetCount,
Datatype targetType,
Op op)
Java binding of
MPI_RGET_ACCUMULATE . |
Request |
rPut(java.nio.Buffer origin_addr,
int origin_count,
Datatype origin_datatype,
int target_rank,
int target_disp,
int target_count,
Datatype target_datatype)
Java binding of the MPI operation
MPI_RPUT . |
void |
setAttr(int keyval,
java.lang.Object value)
Stores attribute value associated with a key.
|
void |
setErrhandler(Errhandler errhandler)
Java binding of the MPI operation
MPI_WIN_SET_ERRHANDLER . |
void |
setInfo(Info info)
Java binding of the MPI operation
MPI_WIN_SET_INFO . |
void |
setName(java.lang.String name)
Java binding of the MPI operation
MPI_WIN_SET_NAME . |
void |
start(Group group,
int assertion)
Java binding of the MPI operation
MPI_WIN_START . |
void |
sync()
Java binding of the MPI operation
MPI_WIN_SYNC . |
boolean |
test()
Java binding of the MPI operation
MPI_WIN_TEST . |
void |
unlock(int rank)
Java binding of the MPI operation
MPI_WIN_UNLOCK . |
void |
unlockAll()
Java binding of the MPI operation
MPI_WIN_UNLOCK_ALL . |
void |
waitFor()
Java binding of the MPI operation
MPI_WIN_WAIT . |
public static final int WIN_NULL
public static final int FLAVOR_PRIVATE
public static final int FLAVOR_SHARED
public Win(java.nio.Buffer base, int size, int dispUnit, Info info, Comm comm) throws MPIException
MPI_WIN_CREATE
.base
- initial address of windowsize
- size of window (buffer elements)dispUnit
- local unit size for displacements (buffer elements)info
- info objectcomm
- communicatorMPIException
- Signals that an MPI error of some sort has occurred.public Win(int size, int dispUnit, Info info, Comm comm, java.nio.Buffer base, int flavor) throws MPIException
MPI_WIN_ALLOCATE
and MPI_WIN_ALLOCATE_SHARED
.size
- size of window (buffer elements)dispUnit
- local unit size for displacements (buffer elements)info
- info objectcomm
- communicatorbase
- initial address of windowflavor
- FLAVOR_PRIVATE or FLAVOR_SHAREDMPIException
- Signals that an MPI error of some sort has occurred.public Win(Info info, Comm comm) throws MPIException
MPI_WIN_CREATE_DYNAMIC
.info
- info objectcomm
- communicatorMPIException
- Signals that an MPI error of some sort has occurred.public void attach(java.nio.Buffer base, int size) throws MPIException
MPI_WIN_ATTACH
.base
- initial address of windowsize
- size of window (buffer elements)MPIException
- Signals that an MPI error of some sort has occurred.public void detach(java.nio.Buffer base) throws MPIException
MPI_WIN_DETACH
.base
- initial address of windowMPIException
- Signals that an MPI error of some sort has occurred.public Group getGroup() throws MPIException
MPI_GET_GROUP
.MPIException
- Signals that an MPI error of some sort has occurred.public void put(java.nio.Buffer origin, int orgCount, Datatype orgType, int targetRank, int targetDisp, int targetCount, Datatype targetType) throws MPIException
MPI_PUT
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferMPIException
- Signals that an MPI error of some sort has occurred.public void get(java.nio.Buffer origin, int orgCount, Datatype orgType, int targetRank, int targetDisp, int targetCount, Datatype targetType) throws MPIException
MPI_GET
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferMPIException
- Signals that an MPI error of some sort has occurred.public void accumulate(java.nio.Buffer origin, int orgCount, Datatype orgType, int targetRank, int targetDisp, int targetCount, Datatype targetType, Op op) throws MPIException
MPI_ACCUMULATE
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferop
- reduce operationMPIException
- Signals that an MPI error of some sort has occurred.public void fence(int assertion) throws MPIException
MPI_WIN_FENCE
.assertion
- program assertionMPIException
- Signals that an MPI error of some sort has occurred.public void start(Group group, int assertion) throws MPIException
MPI_WIN_START
.group
- group of target processesassertion
- program assertionMPIException
- Signals that an MPI error of some sort has occurred.public void complete() throws MPIException
MPI_WIN_COMPLETE
.MPIException
- Signals that an MPI error of some sort has occurred.public void post(Group group, int assertion) throws MPIException
MPI_WIN_POST
.group
- group of origin processesassertion
- program assertionMPIException
- Signals that an MPI error of some sort has occurred.public void waitFor() throws MPIException
MPI_WIN_WAIT
.MPIException
- Signals that an MPI error of some sort has occurred.public boolean test() throws MPIException
MPI_WIN_TEST
.MPIException
- Signals that an MPI error of some sort has occurred.public void lock(int lockType, int rank, int assertion) throws MPIException
MPI_WIN_LOCK
.lockType
- either MPI.LOCK_EXCLUSIVE or MPI.LOCK_SHAREDrank
- rank of locked windowassertion
- program assertionMPIException
- Signals that an MPI error of some sort has occurred.public void unlock(int rank) throws MPIException
MPI_WIN_UNLOCK
.rank
- rank of windowMPIException
- Signals that an MPI error of some sort has occurred.public void setErrhandler(Errhandler errhandler) throws MPIException
MPI_WIN_SET_ERRHANDLER
.errhandler
- new MPI error handler for windowMPIException
- Signals that an MPI error of some sort has occurred.public Errhandler getErrhandler() throws MPIException
MPI_WIN_GET_ERRHANDLER
.MPIException
- Signals that an MPI error of some sort has occurred.public void callErrhandler(int errorCode) throws MPIException
MPI_WIN_CALL_ERRHANDLER
.errorCode
- error codeMPIException
- Signals that an MPI error of some sort has occurred.public static int createKeyval() throws MPIException
Java binding of the MPI operation MPI_WIN_CREATE_KEYVAL
.
MPIException
- Signals that an MPI error of some sort has occurred.public static void freeKeyval(int keyval) throws MPIException
Java binding of the MPI operation MPI_WIN_FREE_KEYVAL
.
keyval
- attribute keyMPIException
- Signals that an MPI error of some sort has occurred.public void setAttr(int keyval, java.lang.Object value) throws MPIException
Java binding of the MPI operation MPI_WIN_SET_ATTR
.
keyval
- attribute keyvalue
- attribute valueMPIException
- Signals that an MPI error of some sort has occurred.public java.lang.Object getAttr(int keyval) throws MPIException
Java binding of the MPI operation MPI_WIN_GET_ATTR
.
keyval
- attribute keyMPIException
- Signals that an MPI error of some sort has occurred.public void deleteAttr(int keyval) throws MPIException
Java binding of the MPI operation MPI_WIN_DELETE_ATTR
.
keyval
- attribute keyMPIException
- Signals that an MPI error of some sort has occurred.public void free() throws MPIException
MPI_WIN_FREE
.free
in interface Freeable
MPIException
- Signals that an MPI error of some sort has occurred.public Info getInfo() throws MPIException
MPI_WIN_GET_INFO
.MPIException
- Signals that an MPI error of some sort has occurred.public void setInfo(Info info) throws MPIException
MPI_WIN_SET_INFO
.info
- the new infoMPIException
- Signals that an MPI error of some sort has occurred.public final Request rPut(java.nio.Buffer origin_addr, int origin_count, Datatype origin_datatype, int target_rank, int target_disp, int target_count, Datatype target_datatype) throws MPIException
Java binding of the MPI operation MPI_RPUT
.
origin_addr
- initial address of origin bufferorigin_count
- number of entries in origin bufferorigin_datatype
- datatype of each entry in origin buffertarget_rank
- rank of targettarget_disp
- displacement from start of window to target buffertarget_count
- number of entries in target buffertarget_datatype
- datatype of each entry in target bufferMPIException
- Signals that an MPI error of some sort has occurred.public final Request rGet(java.nio.Buffer origin, int orgCount, Datatype orgType, int targetRank, int targetDisp, int targetCount, Datatype targetType) throws MPIException
MPI_RGET
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferMPIException
- Signals that an MPI error of some sort has occurred.public Request rAccumulate(java.nio.Buffer origin, int orgCount, Datatype orgType, int targetRank, int targetDisp, int targetCount, Datatype targetType, Op op) throws MPIException
MPI_RACCUMULATE
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferop
- reduce operationMPIException
- Signals that an MPI error of some sort has occurred.public void getAccumulate(java.nio.Buffer origin, int orgCount, Datatype orgType, java.nio.Buffer resultAddr, int resultCount, Datatype resultType, int targetRank, int targetDisp, int targetCount, Datatype targetType, Op op) throws MPIException
MPI_GET_ACCUMULATE
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin bufferresultAddr
- result bufferresultCount
- number of entries in result bufferresultType
- datatype of each entry in result buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferop
- reduce operationMPIException
- Signals that an MPI error of some sort has occurred.public Request rGetAccumulate(java.nio.Buffer origin, int orgCount, Datatype orgType, java.nio.Buffer resultAddr, int resultCount, Datatype resultType, int targetRank, int targetDisp, int targetCount, Datatype targetType, Op op) throws MPIException
MPI_RGET_ACCUMULATE
.origin
- origin bufferorgCount
- number of entries in origin bufferorgType
- datatype of each entry in origin bufferresultAddr
- result bufferresultCount
- number of entries in result bufferresultType
- datatype of each entry in result buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target buffertargetCount
- number of entries in target buffertargetType
- datatype of each entry in target bufferop
- reduce operationMPIException
- Signals that an MPI error of some sort has occurred.public void lockAll(int assertion) throws MPIException
MPI_WIN_LOCK_ALL
.assertion
- program assertionMPIException
- Signals that an MPI error of some sort has occurred.public void unlockAll() throws MPIException
MPI_WIN_UNLOCK_ALL
.MPIException
- Signals that an MPI error of some sort has occurred.public void sync() throws MPIException
MPI_WIN_SYNC
.MPIException
- Signals that an MPI error of some sort has occurred.public void flush(int targetRank) throws MPIException
MPI_WIN_FLUSH
.targetRank
- rank of target windowMPIException
- Signals that an MPI error of some sort has occurred.public void flushAll() throws MPIException
MPI_WIN_FLUSH_ALL
.MPIException
- Signals that an MPI error of some sort has occurred.public void compareAndSwap(java.nio.Buffer origin, java.nio.Buffer compareAddr, java.nio.Buffer resultAddr, Datatype targetType, int targetRank, int targetDisp) throws MPIException
MPI_COMPARE_AND_SWAP
.origin
- origin buffercompareAddr
- compare bufferresultAddr
- result buffertargetType
- datatype of each entry in target buffertargetRank
- rank of targettargetDisp
- displacement from start of window to target bufferMPIException
- Signals that an MPI error of some sort has occurred.public void fetchAndOp(java.nio.Buffer origin, java.nio.Buffer resultAddr, Datatype dataType, int targetRank, int targetDisp, Op op) throws MPIException
MPI_FETCH_AND_OP
.origin
- origin bufferresultAddr
- result bufferdataType
- datatype of entry in origin, result, and target bufferstargetRank
- rank of targettargetDisp
- displacement from start of window to target bufferop
- reduce operationMPIException
- Signals that an MPI error of some sort has occurred.public void flushLocal(int targetRank) throws MPIException
MPI_WIN_FLUSH_LOCAL
.targetRank
- rank of target windowMPIException
- Signals that an MPI error of some sort has occurred.public void flushLocalAll() throws MPIException
MPI_WIN_FLUSH_LOCAL_ALL
.MPIException
- Signals that an MPI error of some sort has occurred.public java.lang.String getName() throws MPIException
MPI_WIN_GET_NAME
.MPIException
- Signals that an MPI error of some sort has occurred.public void setName(java.lang.String name) throws MPIException
MPI_WIN_SET_NAME
.name
- the name to associate with this windowMPIException
- Signals that an MPI error of some sort has occurred.