hpx::execution::experimental::guided_chunk_size#
Defined in header hpx/execution.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
struct guided_chunk_size#
Iterations are dynamically assigned to threads in blocks as threads request those until no blocks remain to be assigned. Similar to dynamic_chunk_size except that the block size decreases each time a number of loop iterations is given to a thread. The size of the initial block is proportional to number_of_iterations / number_of_cores. Subsequent blocks are proportional to number_of_iterations_remaining / number_of_cores. The optional chunk size parameter defines the minimum block size. The default chunk size is 1.
Note
This executor parameters type is equivalent to OpenMP’s GUIDED scheduling directive.