-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Document a way to flow graph can be attached to arbitrary task_arena #785
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
7ab56ed
69b4ed2
ea72ed2
e44112e
286d1d8
2ed8684
28063bd
6e848e2
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,68 @@ | ||||||
| .. _attach_flow_graph_to_arena: | ||||||
|
|
||||||
| Attach Flow Graph to an Arbitrary Task Arena | ||||||
| ====================== | ||||||
|
|
||||||
|
|
||||||
| |short_name| ``task_arena`` interface provides mechanisms to guide tasks execution within | ||||||
| the arena by setting the preferred computation units or restricting part of computation units. | ||||||
| In some case, you may want to use mechanisms within a flow graph. | ||||||
|
|
||||||
| During its construction a ``graph`` object attaches to the arena, in which the constructing | ||||||
vlserov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| thread occupies a slot. Whenever a task is spawned on behalf of the graph, it is spawned | ||||||
| in the arena of the graph it is attached to, disregarding the arena of the thread | ||||||
| which is caused a task to be spawned. | ||||||
|
||||||
| which is caused a task to be spawned. | |
| that the task is spawned from. |
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 with suggested changes.
Outdated
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.
| The example shows how to set the most performant core type as preferable for graph execution: | |
| This example shows how to set the most performant core type as the preferred one for a graph execution: |
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 with suggested changes.
Outdated
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.
| the ``graph::reset()`` function. This reinitializes the ``graph`` and reattaches | |
| the ``graph::reset()`` function. It reinitializes and reattaches |
Outdated
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.
| it to the task arena instance, inside which the ``graph::reset()`` method is executed. | |
| the ``graph`` to the task arena instance, inside which the ``graph::reset()`` method is executed. |
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 with suggested changes.
Outdated
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.
| The example shows how reattach existing graph to an arena with the most performant core type | |
| This example shows how to reattach existing graph to an arena with the most performant core type |
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 with suggested changes.
Outdated
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.
| as preferable for work execution: | |
| as the preferred one for a work execution: |
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 with suggested changes.
aepanchi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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 also asked a question about moving the code into separate source file for further simpler testing.
I found this approach that can work for us. Can we use it?
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.
@aleksei-fedotov We definitely can make it work :)
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.
Moved to separate source file
Outdated
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.
| See the following topics to learn more. | |
| See the following topics to learn more: |
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 with suggested changes.
Uh oh!
There was an error while loading. Please reload this page.