14 #ifndef CHANNEL_INCLUDED
15 #define CHANNEL_INCLUDED
static const int max_dimension
int wait()
wait for completion
Communication library which wraps MPI.
element_type operator[](unsigned int idx) const
accessor to buffer
int start()
collective start
int start()
start asynchronous communication
bool m_my_buf
whether buffer is owned by this instance.
container_type m_buf
buffer
int append(Channel *const p)
append channel to the set. there is no way to remove a channel.
Channel class for asynchronous communication.
ChannelSet class for a collection of channels.
int wait()
collective wait
element_type & operator[](unsigned int idx)
accessor to buffer
element_type * m_buf
buffer
const element_type * ptr()
accessor to buffer; returns pointer to the first element.
char element_type
data transfer is byte-wise.
virtual ~Channel()
destructor
ChannelSet(int nchannel=8)
constructor. default number of channels is 8 for upward and downward in 4 dimensions.