See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace execution
struct dynamic_chunk_size#
#include <dynamic_chunk_size.hpp>

Loop iterations are divided into pieces of size chunk_size and then dynamically scheduled among the threads; when a thread finishes one chunk, it is dynamically assigned another If chunk_size is not specified, the default chunk size is 1.


This executor parameters type is equivalent to OpenMP’s DYNAMIC scheduling directive.

Public Functions

inline explicit constexpr dynamic_chunk_size(std::size_t chunk_size = 1) noexcept#

Construct a dynamic_chunk_size executor parameters object


chunk_size – [in] The optional chunk size to use as the number of loop iterations to schedule together. The default chunk size is 1.

namespace parallel
namespace execution