Skip to content
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

Updating Annex C Undefined Behavior in OpenSHMEM #555

Open
ahayashi opened this issue Oct 25, 2024 · 1 comment
Open

Updating Annex C Undefined Behavior in OpenSHMEM #555

ahayashi opened this issue Oct 25, 2024 · 1 comment

Comments

@ahayashi
Copy link

Problem Statement

The v1.6 spec clarifies the behavior of shmem_team_split_stride when 1) the stride argument is 0 or negative, and 2) the input arguments imply a wrap-around with respect to the parent teams's PEs:

  • content/shmem_team_split_strided.tex (L60)
If a $stride$ value equal to 0 is passed to \FUNC{shmem\_team\_split\_strided},
then the $size$ argument passed must be 1, or the behavior is undefined.
If the triplet provided to \FUNC{shmem\_team\_split\_strided} implies a
wrap-around sequence, the input is considered invalid and the behavior is
undefined.

Proposed Changes

If this makes sense and it's not too late, we'd suggest adding "Undefined Behavior in OpenSHMEM" to Annex C.

Credit: @youssefelmougy

Impact on Implementations

N/A

Impact on Users

N/A

References and Pull Requests

#554

@davidozog
Copy link
Collaborator

See #557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants