oneapi::tbb::info namespace extensions¶
Note
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.
Note
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: