Bridge++  Ver. 2.0.2
ChannelSet Class Reference

ChannelSet class for a collection of channels. More...

#include <channel.h>

Public Member Functions

 ChannelSet (int nchannel=8)
 constructor. default number of channels is 8 for upward and downward in 4 dimensions. More...
 
template<typename T >
int append (Channel_impl< T > &c)
 
int start ()
 collective start More...
 
int wait ()
 collective wait More...
 
 ChannelSet (int nchannel=8)
 constructor. default number of channels is 8 for upward and downward in 4 dimensions. More...
 
template<typename T >
int append (Channel_impl< T > &c)
 
int start ()
 collective start More...
 
int wait ()
 collective wait More...
 
 ChannelSet (int nchannel=8)
 constructor. default number of channels is 8 for upward and downward in 4 dimensions. More...
 
template<typename T >
int append (Channel_impl< T > &c)
 
int start ()
 collective start More...
 
int wait ()
 collective wait More...
 

Private Member Functions

int append (const MPI_Request &r)
 implementation of adding the channel (template independent) More...
 
int append (const MPI_Request &r)
 implementation of adding the channel (template independent) More...
 
int append ()
 implementation of adding the channel (template independent) More...
 

Private Attributes

std::vector< MPI_Request > m_array
 a collection of MPI request held in channels. More...
 
std::vector< MPI_Status > m_status
 a collection of MPI status. More...
 
unsigned int m_nreq
 number of channels to hold. More...
 

Detailed Description

ChannelSet class for a collection of channels.

ChannelSet defines a collection of channel class instances to invoke start and wait methods collectively for a set of channels.

Definition at line 148 of file channel.h.

Constructor & Destructor Documentation

◆ ChannelSet() [1/3]

ChannelSet::ChannelSet ( int  nchannel = 8)

constructor. default number of channels is 8 for upward and downward in 4 dimensions.

Definition at line 125 of file channel.cpp.

◆ ChannelSet() [2/3]

ChannelSet::ChannelSet ( int  nchannel = 8)

constructor. default number of channels is 8 for upward and downward in 4 dimensions.

◆ ChannelSet() [3/3]

ChannelSet::ChannelSet ( int  nchannel = 8)

constructor. default number of channels is 8 for upward and downward in 4 dimensions.

Member Function Documentation

◆ append() [1/6]

int ChannelSet::append ( )
private

implementation of adding the channel (template independent)

Definition at line 86 of file channel.cpp.

◆ append() [2/6]

template<typename T >
int ChannelSet::append ( Channel_impl< T > &  c)
inline
Parameters
cappend channel to the set. there is no way to remove a channel.

Definition at line 147 of file channel.h.

◆ append() [3/6]

template<typename T >
int ChannelSet::append ( Channel_impl< T > &  c)
inline
Parameters
cappend channel to the set. there is no way to remove a channel.

Definition at line 153 of file channel.h.

◆ append() [4/6]

template<typename T >
int ChannelSet::append ( Channel_impl< T > &  c)
inline
Parameters
cappend channel to the set. there is no way to remove a channel.

Definition at line 153 of file channel.h.

◆ append() [5/6]

int ChannelSet::append ( const MPI_Request &  r)
private

implementation of adding the channel (template independent)

◆ append() [6/6]

int ChannelSet::append ( const MPI_Request &  r)
private

implementation of adding the channel (template independent)

Definition at line 133 of file channel.cpp.

◆ start() [1/3]

int ChannelSet::start ( )

collective start

◆ start() [2/3]

int ChannelSet::start ( )

collective start

Definition at line 147 of file channel.cpp.

◆ start() [3/3]

int ChannelSet::start ( )

collective start

◆ wait() [1/3]

int ChannelSet::wait ( )

collective wait

◆ wait() [2/3]

int ChannelSet::wait ( )

collective wait

Definition at line 155 of file channel.cpp.

◆ wait() [3/3]

int ChannelSet::wait ( )

collective wait

Member Data Documentation

◆ m_array

std::vector< MPI_Request > ChannelSet::m_array
private

a collection of MPI request held in channels.

Definition at line 164 of file channel.h.

◆ m_nreq

unsigned int ChannelSet::m_nreq
private

number of channels to hold.

Definition at line 166 of file channel.h.

◆ m_status

std::vector< MPI_Status > ChannelSet::m_status
private

a collection of MPI status.

Definition at line 165 of file channel.h.


The documentation for this class was generated from the following files: