hpx/execution/executors/default_parameters.hpp#
Defined in header hpx/execution/executors/default_parameters.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 default_parameters#
- #include <default_parameters.hpp>
Loop iterations are divided into pieces of size chunk_size and then assigned to threads. If chunk_size is not specified, the iterations are evenly (if possible) divided contiguously among the threads.
Note
This executor parameters type is equivalent to OpenMP’s STATIC scheduling directive.
Note
If HPX was configured with HPX_WITH_TASK_SIZE_DEFAULT_PARAMETERS, this type is derived from task_size_chunk_size: a loop body that has a task size (see hpx::task_size) is chunked based on it, all others as described above.
Public Functions
-
constexpr default_parameters() noexcept = default#
Construct a default_parameters executor parameters object
Note
By default, the number of loop iterations is determined from the number of available cores and the overall number of loop iterations to schedule.
-
constexpr default_parameters() noexcept = default#
-
struct default_parameters#
-
namespace experimental
-
namespace execution