STAPL API Reference |
Modules Classes |
Collective communication primitives. More...
Functions | |
template<typename Handle , typename MemFun , typename... T> | |
futures< typename callable_traits< MemFun >::result_type > | stapl::allgather_rmi (Handle const &h, MemFun const &pmf, T &&... t) |
Allgather RMI primitive. More... | |
template<typename BinaryOperation , typename Handle , typename MemFun , typename... T> | |
future< runtime::binary_operation_result_t< typename callable_traits< MemFun >::result_type, BinaryOperation >> | stapl::allreduce_rmi (BinaryOperation op, Handle const &h, MemFun const &pmf, T &&... t) |
Allreduce RMI primitive. More... | |
template<typename Handle , typename MemFun , typename... T> | |
future< typename callable_traits< MemFun >::result_type > | stapl::broadcast_rmi (root_location_t, Handle const &h, MemFun const &pmf, T &&... t) |
Broadcast RMI primitive for root locations. More... | |
template<typename MemFun > | |
future< typename callable_traits< MemFun >::result_type > | stapl::broadcast_rmi (unsigned int root, MemFun const &) |
Broadcast RMI primitive for non-root locations. More... | |
Collective communication primitives.
futures<typename callable_traits<MemFun>::result_type> stapl::allgather_rmi | ( | Handle const & | h, |
MemFun const & | pmf, | ||
T &&... | t | ||
) |
Allgather RMI primitive.
The given member function is called on all locations the object is defined on and returns a futures object which can be used to retrieve the return values from all the member function invocations.
Each location passes the locally provided arguments to the member function.
h | Handle to the target object. |
pmf | Member function to invoke. |
t | Arguments to pass to the member function. |
future< runtime::binary_operation_result_t< typename callable_traits<MemFun>::result_type, BinaryOperation>> stapl::allreduce_rmi | ( | BinaryOperation | op, |
Handle const & | h, | ||
MemFun const & | pmf, | ||
T &&... | t | ||
) |
Allreduce RMI primitive.
The given member function is called on all locations the object is defined on and the result of the local invocations of the member function are combined using op
and the result is distributed to all locations that made the call. This result can be retrieved through the returned future object.
op | Reduction operator. |
h | Handle to the target object. |
pmf | Member function to invoke. |
t | Arguments to pass to the member function. |
future<typename callable_traits<MemFun>::result_type> stapl::broadcast_rmi | ( | root_location_t | , |
Handle const & | h, | ||
MemFun const & | pmf, | ||
T &&... | t | ||
) |
Broadcast RMI primitive for root locations.
The given member function is called on the root location and the result of the invocation is broadcast to all locations.
h | Handle to the target object. |
pmf | Member function to invoke. |
t | Arguments to pass to the member function. |
future<typename callable_traits<MemFun>::result_type> stapl::broadcast_rmi | ( | unsigned int | root, |
MemFun const & | |||
) |
Broadcast RMI primitive for non-root locations.
root | Root location of the broadcast. |
pmf | Member function to invoke. |