• 2021.4
  • 09/27/2021
  • Public Content
Contents

oneapi::tbb::info namespace extensions

To enable this feature, set the
TBB_PREVIEW_TASK_ARENA_CONSTRAINTS_EXTENSION
macro to 1.

Description

These extensions allow to query information about execution environment.

API

Header
#include <oneapi/tbb/info.h>
Syntax
namespace oneapi { namespace tbb { using core_type_id = /*implementation-defined*/; namespace info { std::vector<core_type_id> core_types(); int default_concurrency(task_arena::constraints c); } } }
Types
core_type_id
- Represents core type identifier.
Functions
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.
If error occurs during system topology parsing, returns vector containing single element that equals to
task_arena::automatic
.
int
default_concurrency
(task_arena::constraints
c
)
Returns concurrency level for the given constraints.
See also:

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.