Factory that generates the tasks needed for a map operation. A map operation applies the work function provided on each set of elements of the input views that have the same offset from the beginning of their respective view.
More...
|
using | result_type = void |
|
using | coarsener_type = typename std::conditional< b_coarse, default_coarsener, null_coarsener >::type |
|
using | size_type = rmi_handle::size_type |
|
|
bool | m_finished |
| Stores whether the derived factory has finished specifying tasks.
|
|
template<typename WF, bool b_coarse, typename SchedInfo>
struct stapl::map_factory< WF, b_coarse, SchedInfo >
Factory that generates the tasks needed for a map operation. A map operation applies the work function provided on each set of elements of the input views that have the same offset from the beginning of their respective view.
- Template Parameters
-
WF | Fine-grain operation to be applied to each set of elements. |
b_coarse | Indicates whether the work function provided is coarse-grain. |
SchedInfo | Scheduling information required from each task by the scheduler that will determine the relative priorities of the tasks when they are ready to execute. |
◆ reset_view_indices()
void stapl::task_factory_base::reset_view_indices |
( |
| ) |
|
|
protectedinherited |
Reset the iterators over the view indices on this location.
This is used in factories where multiple tasks will be generated for each view element to be processed.
◆ get_location_md()
Returns the location metadata of the location this object registered in. noexcept
noexcept
◆ advance_epoch()
void stapl::p_object::advance_epoch |
( |
void |
| ) |
|
|
inherited |
Advances the epoch of the object.
Advancing the epoch will flush any pending RMIs. It will also increase the epoch of the current gang if the object is not a named object.
◆ unlock()
void stapl::p_object::unlock |
( |
void |
| ) |
|
|
inherited |
Used by lock_guard
functionality in method of derived classes to request atomicity with respect to incoming RMIs.
Mutates counter in the associated runqueue.
◆ lock()
void stapl::p_object::lock |
( |
void |
| ) |
|
|
inherited |
Used by lock_guard
functionality in method of derived classes to request atomicity with respect to incoming RMIs.
Mutates counter in the associated runqueue.
◆ try_lock()
bool stapl::p_object::try_lock |
( |
void |
| ) |
|
|
inherited |
Attempt to maintain atomicity with respect to incoming RMIs.
Mutates counter in the associated runqueue.
- Returns
true
if the lock was able to be acquired. false
if it is already locked.
The documentation for this struct was generated from the following file: