Home
last modified time | relevance | path

Searched refs:constraints (Results 1 – 24 of 24) sorted by relevance

/oneTBB/test/tbb/
H A Dtest_arena_constraints.cpp30 tbb::task_arena ta{constraints};
48 auto constraints = *current_pos; in recursive_arena_binding() local
102 auto constraints = tbb::task_arena::constraints{}
141 using constraints = tbb::task_arena::constraints; typedef
142 auto constraints_comparison = [](const constraints& c1, const constraints& c2) { in __anon2861f8e80402()
149 constraints setter_c = constraints{}.set_numa_id(numa_index);
157 constraints setter_c = constraints{}.set_core_type(core_type_index);
165 constraints setter_c = constraints{}.set_max_concurrency(1);
173 constraints setter_c = constraints{}.set_max_threads_per_core(1);
191 tbb::task_arena::constraints c{};
[all …]
H A Dtest_arena_priorities.cpp133 tbb::task_arena::constraints properties{tbb::task_arena::automatic, arena_max_concurrency}; in allocate_and_construct_arena()
/oneTBB/include/oneapi/tbb/
H A Dinfo.h36 struct constraints { struct
38 constraints(numa_node_id id = -1, int maximal_concurrency = -1)
44 constraints& set_numa_id(numa_node_id id) { in set_numa_id() argument
48 constraints& set_max_concurrency(int maximal_concurrency) { in set_max_concurrency() argument
52 constraints& set_core_type(core_type_id id) { in set_core_type() argument
56 constraints& set_max_threads_per_core(int threads_number) { in set_max_threads_per_core() argument
79 TBB_EXPORT int __TBB_EXPORTED_FUNC constraints_default_concurrency(const d1::constraints& c, intptr… argument
80 TBB_EXPORT int __TBB_EXPORTED_FUNC constraints_threads_per_core(const d1::constraints& c, intptr_t …
101 inline int default_concurrency(constraints c) { in default_concurrency()
H A Dtask_arena.h126 using constraints = tbb::detail::d1::constraints; variable
183 …task_arena_base(const constraints& constraints_, unsigned reserved_for_masters, priority a_priorit… in task_arena_base()
268 task_arena(const constraints& constraints_, unsigned reserved_for_masters = 1,
276 constraints{} in task_arena()
327 void initialize(constraints constraints_, unsigned reserved_for_masters = 1,
/oneTBB/test/common/
H A Dcommon_arena_constraints.h417 void test_constraints_affinity_and_concurrency(tbb::task_arena::constraints constraints, in test_constraints_affinity_and_concurrency() argument
423 …if (constraints.max_threads_per_core == tbb::task_arena::automatic || constraints.max_threads_per_… in test_constraints_affinity_and_concurrency()
498 …bool operator()(const tbb::task_arena::constraints& c1, const tbb::task_arena::constraints& c2) co… in operator()
510 using constraints = tbb::task_arena::constraints; in generate_constraints_variety() local
521 results.insert(constraints{}); in generate_constraints_variety()
523 results.insert(constraints{}.set_numa_id(numa_node)); in generate_constraints_variety()
529 constraints{} in generate_constraints_variety()
536 constraints{} in generate_constraints_variety()
541 constraints{} in generate_constraints_variety()
547 constraints{} in generate_constraints_variety()
[all …]
/oneTBB/src/tbb/
H A Dtcm_adaptor.cpp173 void init(d1::constraints& constraints) { in init() argument
177 if (constraints.core_type != d1::task_arena::automatic || in init()
178 constraints.numa_id != d1::task_arena::automatic || in init()
179 constraints.max_threads_per_core != d1::task_arena::automatic) in init()
181 my_permit_constraints.max_concurrency = constraints.max_concurrency; in init()
183 my_permit_constraints.core_type_id = constraints.core_type; in init()
184 my_permit_constraints.numa_id = constraints.numa_id; in init()
185 my_permit_constraints.threads_per_core = constraints.max_threads_per_core; in init()
281 void tcm_adaptor::register_client(pm_client* c, d1::constraints& constraints) { in register_client() argument
282 static_cast<tcm_client*>(c)->init(constraints); in register_client()
H A Dthreading_control.h50 void publish_client(threading_control_client client, d1::constraints& constraints);
106 void publish_client(threading_control_client client, d1::constraints& constraints);
H A Dtcm_adaptor.h41 void register_client(pm_client* client, d1::constraints& constraints) override;
H A Dthreading_control.cpp135 …ng_control_impl::publish_client(threading_control_client tc_client, d1::constraints& constraints) { in publish_client() argument
136 my_permit_manager->register_client(tc_client.get_pm_client(), constraints); in publish_client()
316 … threading_control::publish_client(threading_control_client client, d1::constraints& constraints) { in publish_client() argument
317 return my_pimpl->publish_client(client, constraints); in publish_client()
H A Dpermit_manager.h35 virtual void register_client(pm_client* client, d1::constraints& constraints) = 0;
H A Darena.h290 … num_reserved_slots, unsigned arena_priority_level, d1::constraints constraints = d1::constraints{…
H A Darena.cpp451 …m_slots, unsigned num_reserved_slots, unsigned arena_priority_level, d1::constraints constraints) { in create() argument
458 control->publish_client(a.my_tc_client, constraints); in create()
540 d1::constraints arena_constraints; in initialize()
543 arena_constraints = d1::constraints{} in initialize()
841 d1::constraints arena_constraints = d1::constraints{} in max_concurrency()
H A Dmarket.h39 void register_client(pm_client* client, d1::constraints&) override;
H A Dgovernor.cpp549 void constraints_assertion(d1::constraints c) { in constraints_assertion()
568 int __TBB_EXPORTED_FUNC constraints_default_concurrency(const d1::constraints& c, intptr_t /*reserv… in constraints_default_concurrency()
578 int __TBB_EXPORTED_FUNC constraints_threads_per_core(const d1::constraints&, intptr_t /*reserved*/)… in constraints_threads_per_core() argument
H A Dmarket.cpp52 void market::register_client(pm_client* c, d1::constraints&) { in register_client() argument
/oneTBB/doc/main/tbb_userguide/
H A DGuiding_Task_Scheduler_Execution.rst17 Such customizations are encapsulated within the ``task_arena::constraints`` structure.
18 To set the limitation, you have to customize the ``task_arena::constraints`` and then pass
21 The structure ``task_arena::constraints`` allows to specify the following restrictions:
28 …y use the interfaces from ``tbb::info`` namespace to construct the ``tbb::task_arena::constraints``
41 assign a NUMA node identifier to the ``task_arena::constraints::numa_id`` field.
50 arenas[j].initialize(tbb::task_arena::constraints(numa_indexes[j]));
66 …execution, assign a specific core type identifier to the ``task_arena::constraints::core_type`` fi…
74 tbb::task_arena::constraints{}.set_core_type(core_types.back())
86 assign the desired value to the ``task_arena::constraints::max_threads_per_core`` field.
92 tbb::task_arena no_ht_arena( tbb::task_arena::constraints{}.set_max_threads_per_core(1) );
[all …]
H A DConstraints.rst23 // note: constraints not satisfied
30 may not compile in C++20 mode due to early and strict constraints diagnostics.
H A DThroughput_of_pipeline.rst8 it, and is limited by two constraints. First, if a pipeline is run with
/oneTBB/doc/main/tbb_userguide/snippets/
H A Dflow_graph_examples.cpp31 tbb::task_arena::constraints{}.set_core_type(core_types.back()) in flow_graph_attach_to_arena_1()
56 tbb::task_arena::constraints{}.set_core_type(core_types.back()) in flow_graph_attach_to_arena_2()
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DLocal_Serializer.rst86 the three constraints in the following table are met.
165 for Non-Preemptive Priorities. The notion of serial constraints is
167 to extend other kinds of constraints or lack of constraints. Class
273 The pattern generalizes to constraints on work items more general
280 more constraints, forwarding the work to the next constraint
H A DFenced_Data_Transfer.rst118 constraints.
H A DWavefront.rst32 - Dependence constraints between items form an acyclic graph.
/oneTBB/test/conformance/
H A Dconformance_arena_constraints.cpp29 oneapi::tbb::task_arena arena(oneapi::tbb::task_arena::constraints{numa_index});
/oneTBB/doc/main/intro/
H A DBenefits.rst63 algorithms with the fewest constraints. The C++ Standard Template