Work function that uses the fine-grain map and reduce operations provided to stapl::map_reduce to implement a coarse-grain operation that aggregates multiple calls with a for loop into a single result.
More...
|
| cmr_base (Map const &fmap, Reduce const &freduce) |
|
template<typename R , typename IterComp , typename ... Iter> |
R | apply (IterComp &iter_compare, Iter... iter) |
|
template<typename R , typename Scheduler , typename IterComp , typename ... Iter> |
R | apply (paragraph_impl::paragraph_view< Scheduler > &tgv, IterComp &iter_compare, Iter... iter) |
|
template<typename V0 , typename... V> |
boost::result_of< Reduce(typename boost::result_of< Map(typename V0::reference, typename V::reference...)>::type, typename boost::result_of< Map(typename V0::reference, typename V::reference...)>::type) >::type | operator() (V0 &view0, V &... view) |
| Function operator signatures for different number of views. The map operation is applied to sets of elements, one from each view, where the elements of a set all have the same offset from the start of their respective view.
|
|
template<typename Scheduler , typename V0 , typename... V> |
boost::result_of< Reduce(typename boost::result_of< Map(paragraph_impl::paragraph_view< Scheduler >, typename V0::reference, typename V::reference...)>::type, typename boost::result_of< Map(paragraph_impl::paragraph_view< Scheduler >, typename V0::reference, typename V::reference...)>::type) >::type | operator() (paragraph_impl::paragraph_view< Scheduler > &tgv, V0 &view0, V &... view) |
| Function operator signatures for different number of views. The map operation is applied to sets of elements, one from each view, where the elements of a set all have the same offset from the start of their respective view.
|
|
|
Reduce & | wf () |
| Return reference to wrapped workfunction instance.
|
|
template<typename Map, typename Reduce>
struct stapl::cmr_base< Map, Reduce >
Work function that uses the fine-grain map and reduce operations provided to stapl::map_reduce to implement a coarse-grain operation that aggregates multiple calls with a for loop into a single result.
- Template Parameters
-
Map | Type of the fine-grain map operation. |
Reduce | Type of the reduce operation. |
The documentation for this struct was generated from the following file: