The workfunction used in flat and hybrid alltoall for merging the incoming messages. More...
Public Member Functions | |
alltoall_merge (indices_t const &indices) | |
template<typename V1 , typename V2 > | |
result_type | operator() (V1 &&v1, V2 &&v2) const |
Public Types | |
typedef std::vector< T > | result_type |
The workfunction used in flat and hybrid alltoall for merging the incoming messages.
Alltoall in STAPL can be done in at least three ways (1) butterfly-based (alltoall_butterfly_merge), (2) flat in which all participants communicate with each other in only one level, (3) hybrid which combines the ideas of butterfly and flat.
In the latter two cases, the merging of the incoming messages happens using the following workfunction. The corresponding filter for this workfunction is alltoall_filter.