hpx::execution::experimental::num_cores#

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 num_cores#
#include <num_cores.hpp>

Control number of cores in executors which need a functionality for setting the number of cores to be used by an algorithm directly

Public Functions

inline explicit constexpr num_cores(std::size_t cores = 1) noexcept#

Construct a num_cores executor parameters object

Note

make sure the minimal number of cores is and the maximum number of cores is what’s available to HPX