-
Notifications
You must be signed in to change notification settings - Fork 116
[oneTBB] Add a function to create a set of NUMA bound task arenas #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f819fc1
6caccd4
b9cc94d
43f749f
2438028
532fbb4
25159ee
94f1d5d
c08478f
d2be07c
c16ef5a
b730cab
52a15d7
e93ac74
5089b5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||
| .. SPDX-FileCopyrightText: 2025 Intel Corporation | ||||||
| .. | ||||||
| .. SPDX-License-Identifier: CC-BY-4.0 | ||||||
| ========================= | ||||||
| Constrained Arena Helpers | ||||||
| ========================= | ||||||
| **[constrained_arena_helpers]** | ||||||
|
|
||||||
| Helper interfaces to create and manage multiple ``task_arena`` objects with constraints. | ||||||
|
|
||||||
| .. code:: cpp | ||||||
| // Defined in header <oneapi/tbb/task_arena.h> | ||||||
| namespace oneapi { | ||||||
| namespace tbb { | ||||||
| std::vector<oneapi::tbb::task_arena> create_numa_task_arenas( | ||||||
| oneapi::tbb::task_arena::constraints other_constraints = {}, | ||||||
| unsigned reserved_slots = 0); | ||||||
| } // namespace tbb | ||||||
| } // namespace oneapi | ||||||
| Functions | ||||||
| --------- | ||||||
|
|
||||||
| .. cpp:function:: std::vector<oneapi::tbb::task_arena> create_numa_task_arenas(oneapi::tbb::task_arena::constraints other_constraints = {}, unsigned reserved_slots = 0) | ||||||
isaevil marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
akukanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| Returns a ``std::vector`` of ``task_arena`` objects, each bound to a separate NUMA node. | ||||||
isaevil marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| The number of created ``task_arena`` is equal to the number of NUMA nodes available on the system. | ||||||
|
||||||
| The number of created ``task_arena`` is equal to the number of NUMA nodes available on the system. | |
| The number of created ``task_arena`` is equal to the number of NUMA nodes detected on the system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we require that this is the same set of nodes that is returned by tbb::info::numa_nodes()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is fair to require that as well, since the intent of this API is to provide shortcut to a common usage pattern of NUMA-constrained arenas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the description
Uh oh!
There was an error while loading. Please reload this page.