public class MPIChannel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TWISTERX_CHANNEL_USER_HEADER |
| Constructor and Description |
|---|
MPIChannel(Config config,
IWorkerController wController,
int ed,
java.util.List<java.lang.Integer> srcs,
java.util.List<java.lang.Integer> tgts,
ChannelReceiveCallback recvCallback,
ChannelSendCallback sCallback,
Allocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the channel and clear any allocated memory by the channel
|
void |
progressReceives()
This method needs to be called to progress the receives
|
void |
progressSends()
This method needs to be called to progress the send
|
int |
send(TRequest request)
Send the request
|
int |
sendFin(TRequest request)
Inform the finish to the target
|
public static final int TWISTERX_CHANNEL_USER_HEADER
public MPIChannel(Config config, IWorkerController wController, int ed, java.util.List<java.lang.Integer> srcs, java.util.List<java.lang.Integer> tgts, ChannelReceiveCallback recvCallback, ChannelSendCallback sCallback, Allocator allocator)
public int send(TRequest request)
request - the request containing buffer, destination etcpublic int sendFin(TRequest request)
request - the requestpublic void progressSends()
public void progressReceives()
public void close()