Skip to content

Commit

Permalink
Merge pull request #557 from davidozog/pr/backmatter-team_undefined
Browse files Browse the repository at this point in the history
Add v1.6 team split undefined behaviors to Annex C
  • Loading branch information
jdinan authored Nov 3, 2024
2 parents 23f8a2f + 8c1e19b commit 7ac7380
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions content/backmatter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,24 @@ \chapter{Undefined Behavior in OpenSHMEM}\label{sec:undefined}
with the \LibConstRef{SHMEM\_CTX\_PRIVATE} option enabled; otherwise, the
behavior is undefined.\tabularnewline
\hline
Creating a team with a \VAR{stride} value equal to 0 and the \VAR{size} value not equal to 1 &
If a \VAR{stride} value equal to 0 is passed to \FUNC{shmem\_team\_split\_strided},
then the \VAR{size} argument passed must be 1, or the behavior is undefined. \tabularnewline
\hline
Creating a team that implies a wrap-around sequence &
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.
In other words, when \VAR{stride} is nonzero, a newly created team must only
include \acp{PE} whose subsequent parent \ac{PE} values are either all
increasing (for positive \VAR{stride}) or all decreasing (for negative
\VAR{stride}).
That is, \textit{wrap-around} with respect to the parent team's \ac{PE} values
is not permitted.
For example, given a parent team with a size of 8 \acp{PE}, a call to
\FUNC{shmem\_team\_split\_strided} with the following arguments would
be invalid: \VAR{start} equal to 3, \VAR{stride} equal to 3, and \VAR{size} equal to 3. \tabularnewline
\hline
\end{longtable}


Expand Down

0 comments on commit 7ac7380

Please sign in to comment.