STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Static Public Member Functions
stapl::skeletons::optimizers::optimizer< tags::zip_reduce< arity >, tags::sequential_unroll< factor > > Struct Template Reference

A zip_reduce optimizer is used in the cases that both views are local and their traversal would be fast which improves the performance. Tagged with tags::sequential_unroll allows directs the optimizer to unroll the sequential loop with the specified factor. More...

Static Public Member Functions

template<typename R , typename S , typename... Args>
static R execute (S &&skeleton, Args &&... args)
 Sequential zip_reduce optimizer dispatches the execution to two different signatures based on the requirement of the given zip operation. If the zip operations needs the paragraph_view the dynamic specialization is called, otherwise the non_dynamic one is called. More...
 

Detailed Description

template<int arity, std::size_t factor>
struct stapl::skeletons::optimizers::optimizer< tags::zip_reduce< arity >, tags::sequential_unroll< factor > >

A zip_reduce optimizer is used in the cases that both views are local and their traversal would be fast which improves the performance. Tagged with tags::sequential_unroll allows directs the optimizer to unroll the sequential loop with the specified factor.

Member Function Documentation

◆ execute()

template<int arity, std::size_t factor>
template<typename R , typename S , typename... Args>
static R stapl::skeletons::optimizers::optimizer< tags::zip_reduce< arity >, tags::sequential_unroll< factor > >::execute ( S &&  skeleton,
Args &&...  args 
)
static

Sequential zip_reduce optimizer dispatches the execution to two different signatures based on the requirement of the given zip operation. If the zip operations needs the paragraph_view the dynamic specialization is called, otherwise the non_dynamic one is called.

Returns
the result of the zip_reduce operation (can be void)

The documentation for this struct was generated from the following file: