Fix missing declarations for TBB_HYBRID_CPUS (#9567)
This commit is contained in:
parent
ebcd9eaf07
commit
6ddc1e981b
@ -22,6 +22,7 @@ namespace custom {
|
|||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
# if USE_TBBBIND_2_5
|
# if USE_TBBBIND_2_5
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
void __TBB_internal_initialize_system_topology(std::size_t groups_num,
|
void __TBB_internal_initialize_system_topology(std::size_t groups_num,
|
||||||
int& numa_nodes_count,
|
int& numa_nodes_count,
|
||||||
@ -55,7 +56,20 @@ static bool is_binding_environment_valid() {
|
|||||||
# endif /* _WIN32 && !_WIN64 */
|
# endif /* _WIN32 && !_WIN64 */
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif
|
# elif TBB_NUMA_SUPPORT_PRESENT || TBB_HYBRID_CPUS_SUPPORT_PRESENT
|
||||||
|
|
||||||
|
static tbb::task_arena::constraints convert_constraints(const custom::task_arena::constraints& c) {
|
||||||
|
tbb::task_arena::constraints result{};
|
||||||
|
# if TBB_HYBRID_CPUS_SUPPORT_PRESENT
|
||||||
|
result.core_type = c.core_type;
|
||||||
|
result.max_threads_per_core = c.max_threads_per_core;
|
||||||
|
# endif
|
||||||
|
result.numa_id = c.numa_id;
|
||||||
|
result.max_concurrency = c.max_concurrency;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
# endif // USE_TBBBIND_2_5
|
||||||
|
|
||||||
class TBBbindSystemTopology {
|
class TBBbindSystemTopology {
|
||||||
TBBbindSystemTopology() {
|
TBBbindSystemTopology() {
|
||||||
@ -192,18 +206,7 @@ static binding_oberver_ptr construct_binding_observer(tbb::task_arena& ta, int n
|
|||||||
return observer;
|
return observer;
|
||||||
}
|
}
|
||||||
|
|
||||||
# elif TBB_NUMA_SUPPORT_PRESENT
|
# endif // USE_TBBBIND_2_5
|
||||||
static tbb::task_arena::constraints convert_constraints(const custom::task_arena::constraints& c) {
|
|
||||||
tbb::task_arena::constraints result{};
|
|
||||||
# if TBB_HYBRID_CPUS_SUPPORT_PRESENT
|
|
||||||
result.core_type = c.core_type;
|
|
||||||
result.max_threads_per_core = c.max_threads_per_core;
|
|
||||||
# endif
|
|
||||||
result.numa_id = c.numa_id;
|
|
||||||
result.max_concurrency = c.max_concurrency;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
# endif
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
task_arena::task_arena(int max_concurrency_, unsigned reserved_for_masters)
|
task_arena::task_arena(int max_concurrency_, unsigned reserved_for_masters)
|
||||||
|
Loading…
Reference in New Issue
Block a user