Intel® oneAPI Threading Building Blocks Developer Guide and API Reference
info Namespace
[info_namespace]
Interfaces to query information about execution environment.
// Declared in header <oneapi/tbb/info.h>
namespace oneapi {
namespace tbb {
using numa_node_id = /*implementation-defined*/;
using core_type_id = /*implementation-defined*/;
namespace info {
std::vector<numa_node_id> numa_nodes();
std::vector<core_type_id> core_types();
int default_concurrency(task_arena::constraints c);
int default_concurrency(numa_node_id id = oneapi::tbb::task_arena::automatic);
// Preview feature: Core Type Selector for task_arena
template <typename Selector>
int default_concurrency(task_arena::constraints c, Selector a_selector);
}
} // namespace tbb
} // namespace oneapi
Types
numa_node_id - Represents NUMA node identifier.
Functions
std::vector<numa_node_id>numa_nodes()
Returns the vector of integral indexes that indicate available NUMA nodes.
std::vector<core_type_id>core_types()
Returns the vector of integral indexes that indicate available core types. The indexes are sorted from the least performant to the most performant core type.
intdefault_concurrency(task_arena::constraintsc)
Returns concurrency level for the given constraints.
intdefault_concurrency(numa_node_idid=oneapi::tbb::task_arena::automatic)
Returns concurrency level of the given NUMA node. If argument is not specified, returns default concurrency level for current library configuration.
Preview Features
Core Type Selectors - extends info::default_concurrency with an overload taking the Selector argument.