hpx/execution/executors/num_cores.hpp#

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

namespace hpx
namespace execution
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 1

namespace parallel
namespace execution