hpx::execution::experimental::dynamic_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.

namespace hpx
namespace execution
namespace experimental
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.

Note

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

Public Functions

dynamic_chunk_size() = default#

Construct an dynamic_chunk_size executor parameters object

Note

Default constructed dynamic_chunk_size executor parameter types will use a chunk size of ‘1’.

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

Construct a dynamic_chunk_size executor parameters object

Parameters

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