Entities to facilitate the execution of skeletons in STAPL.
More...
|
template<typename ExecutionParams , typename S , typename... Views> |
ExecutionParams::result_type | stapl::skeletons::skeletons_impl::execute (std::false_type, ExecutionParams const &ep, S &&skeleton, Views &&... views) |
|
template<typename ExecutionParams , typename S , typename... Views> |
ExecutionParams::result_type | stapl::skeletons::skeletons_impl::execute (std::true_type, ExecutionParams const &ep, S &&skeleton, Views &&... views) |
|
template<typename ExecutionParams , typename S , typename... Views> |
ExecutionParams::result_type | stapl::skeletons::execute (ExecutionParams const &execution_params, S &&skeleton, Views &&... views) |
| Given a skeleton , and a set of views this method spawns the skeleton in a taskgraph_env . More...
|
|
template<typename S , typename... Views> |
skeletons_impl::hand_execute_impl< typename std::decay< S >::type, typename std::decay< Views >::type... >::result_type | stapl::skeletons::hand_execute (S &&skeleton, Views &&... views) |
| Given a skeleton , and a set of views this method executes the skeleton in-place without an explicit task graph. More...
|
|
template<typename S , typename ExecutionParams > |
skeletons_impl::paragraph_skeleton_manager< typename std::decay< S >::type, typename std::decay< ExecutionParams >::type > | stapl::skeletons::make_paragraph_skeleton_manager (S &&skeleton, ExecutionParams &&ep) |
| Creates a paragraph_skeleton_manager using the given parameters. The default values for the arguments are provided in paragraph_skeleton_manager_fwd.hpp. More...
|
|
Entities to facilitate the execution of skeletons in STAPL.
While skeletons define the specification of algorithms, the executors define how these specifications can be used to generate runnable programs. The executors keep track of the spawning process. In addition, they can pause, record, and resume the spawning process.
◆ execute() [1/3]
template<typename ExecutionParams , typename S , typename... Views>
ExecutionParams::result_type stapl::skeletons::skeletons_impl::execute |
( |
std::false_type |
, |
|
|
ExecutionParams const & |
ep, |
|
|
S && |
skeleton, |
|
|
Views &&... |
views |
|
) |
| |
Special case for blocking paragraphs
◆ execute() [2/3]
template<typename ExecutionParams , typename S , typename... Views>
ExecutionParams::result_type stapl::skeletons::skeletons_impl::execute |
( |
std::true_type |
, |
|
|
ExecutionParams const & |
ep, |
|
|
S && |
skeleton, |
|
|
Views &&... |
views |
|
) |
| |
Special case for non-blocking paragraphs
◆ execute() [3/3]
template<typename ExecutionParams , typename S , typename... Views>
ExecutionParams::result_type stapl::skeletons::execute |
( |
ExecutionParams const & |
execution_params, |
|
|
S && |
skeleton, |
|
|
Views &&... |
views |
|
) |
| |
Given a skeleton
, and a set of views this method spawns the skeleton in a taskgraph_env
.
The execution_params
define various configurations for execution including coarsening method and the scheduler to be used and also determine whether the execution should be non-blocking. In addition, the execution_params
determine if the execution would return a value after finishing.
- Parameters
-
execution_params | customize the execution process ( |
- See also
- execution_params.hpp)
- Parameters
-
skeleton | the skeleton to be spawned |
views... | the set of views to be used for spawning |
- Returns
- a reference to the result only if
execution_params::result_type
is not void.
◆ hand_execute()
template<typename S , typename... Views>
skeletons_impl::hand_execute_impl< typename std::decay<S>::type, typename std::decay<Views>::type...>::result_type stapl::skeletons::hand_execute |
( |
S && |
skeleton, |
|
|
Views &&... |
views |
|
) |
| |
Given a skeleton
, and a set of views this method executes the skeleton in-place without an explicit task graph.
- Parameters
-
skeleton | the skeleton to be spawned |
views... | the set of views to be used for spawning |
◆ make_paragraph_skeleton_manager()
template<typename S , typename ExecutionParams >
skeletons_impl::paragraph_skeleton_manager< typename std::decay< S >::type, typename std::decay< ExecutionParams >::type > stapl::skeletons::make_paragraph_skeleton_manager |
( |
S && |
skeleton, |
|
|
ExecutionParams && |
ep |
|
) |
| |
Creates a paragraph_skeleton_manager
using the given parameters. The default values for the arguments are provided in paragraph_skeleton_manager_fwd.hpp.
- Parameters
-
skeleton | the skeleton to be spawned. |
execution_params | customize the execution process ( |
- See also
- execution_params.hpp)
- Returns
- a skeleton manager over the given skeleton