Template Struct Stealer< StealPolicy::topological >¶
Defined in File stealer.hpp
Struct Documentation¶
-
template<>
structripple
::
Stealer
<StealPolicy::topological>¶ Specialization for a topological stealing policy.
Public Functions
-
auto
operator()
(uint32_t curr_id, uint32_t total_ids) const noexcept -> uint32_t¶ Overload of call operator to return the index to steal from.
- Todo:
Implement topological stealing.
- Note
Currently this just does nearest neighbour stealing.
- Return
The index of the thread to steal from.
- Parameters
curr_id
: The current index.total_ids
: The total number of all indices.
-
auto