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.
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
SC/collectives: add change logs #10
SC/collectives: add change logs #10
Changes from 8 commits
5e2ddf6
6cd8c14
1903e69
6e90007
e5ec93d
d2a7cc1
55d39c4
187e75d
5b7296f
621ba0a
fc8049a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can we replace "default team" with
SHMEM_TEAM_WORLD
or "world team"?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.
"default team" is used in several sections including teams, collectives, and memory management. It is defined in section 7. Library Handles.
I agree that
SHMEM_TEAM_WORLD
is more specific. Perhaps we want to replace it everywhere for consistency. Do we need to create separate commits for each SC? Is there a way that we can fix it in a single commit?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'd prefer "world team"—since, as with contexts, one could copy the handle to
SHMEM_TEAM_WORLD
and still refer to the same team—but this would be a "whole document" change (which I'd support).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.
Good point on "world team". I created issue openshmem-org#371 to track the changes. I'd deal with the updates in separate commits and submit to the corresponding SC.
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.
@nspark I'm fine with "world team" but we need to be precise about what that means. If one thread is calling
shmem_malloc
, is it a violation of the threading rules for another to callshmem_team_barrier(SHMEM_TEAM_WORLD)
at the same time?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.
Thinking again about the example @nspark mentioned: one does
handle = SHMEM_TEAM_WORLD;
and useshandle
in later calls. The value ofhandle
is still the predefinedSHMEM_TEAM_WORLD
, and the function call reads the value but not&handle
. Thus, I don't think people may confuse if thehandle
is a different team.However, if we say "world team", I am afraid that people may confuse if a duplicated team of
SHMEM_TEAM_WORLD
(e.g., created byshmem_team_split_strided
) is also a "world team".In summary, I am now thinking
SHMEM_TEAM_WORLD
might be a better replacement for "default team." Does it resolve @jdinan's question, or avoid such confusion?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.
In Section 7, you can clarify that
SHMEM_TEAM_WORLD
handle corresponds to the "world team". Currently it says: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 am working on the default team->world team replacement now. It will be in separate PRs.