-
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f819fc1
Add a page with constraints helpers to the spec
isaevil 6caccd4
Add newline to notion
isaevil b9cc94d
Apply suggestions from code review
isaevil 43f749f
Move as non-member function into task_arena spec, update example
isaevil 2438028
Remove constrained_arena_helpers.rst
isaevil 532fbb4
Fix underline
isaevil 25159ee
Apply suggestions from code review
isaevil 94f1d5d
Fix example
isaevil c08478f
Move the sentence about error
isaevil d2be07c
Apply suggestion about arguments
isaevil c16ef5a
Apply suggestions from code review
isaevil b730cab
Clarify the parameters of task_arena in case of failed system info di…
isaevil 52a15d7
Consistent naming of contraints and reserved_slots arguments
isaevil e93ac74
Update example
isaevil 5089b5a
Improve a comment in the example
akukanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we have limit on the line width? Proper alignment will help avoiding unnecessary horizontal scrollings and make the rendering neater.
Consider:
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 HTML page looks like this:

Seems acceptable, and I am not sure if manual line break can do better in this case.
Uh oh!
There was an error while loading. Please reload this page.
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 far as I know, you can't make indentation when using
.. cpp::functionwith line breaks, so at best it will end up like this: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.
We can reduce the clutter by using shorter names. For example, I find shortening of
constraintsfunction parameter to justcattractive, because:task_arena::constraintstype conveys the semantics.ccould act similarly to constructs like loop counters. Meaning, that readers are unlikely to forget what thatcis about.Similarly, the
a_prioritycan be reduced to justpwithout loosing much of the readability.This should not be overused though. For example, I would not contract the
reserved_slotsbecause its type does not convey the meaning, so the name is essential here.