Skip to content

Commit

Permalink
Unresolved issues of team_ptr and multi-init
Browse files Browse the repository at this point in the history
  • Loading branch information
wrrobin committed Oct 3, 2024
1 parent a525d83 commit 7360ca1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions content/shmem_team_ptr.tex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
when it can be accessed using memory loads and stores. Otherwise, a null
pointer is returned.

If \VAR{team} compares equal to \LibConstRef{SHMEM\_TEAM\_WORLD}, then
the behavior is identical to that of \FUNC{shmem\_ptr} with same \VAR{dest}
and \VAR{pe} arguments.
If \VAR{team} compares equal to \LibConstRef{SHMEM\_TEAM\_INVALID},
then a null pointer is returned.
If \VAR{team} is otherwise invalid, the behavior is undefined.
Expand Down
8 changes: 4 additions & 4 deletions content/threads_intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

\begin{enumerate}
\item
In the \CONST{SHMEM\_THREAD\_FUNNELED}, \CONST{SHMEM\_THREAD\_SERIALIZED}, and
\CONST{SHMEM\_THREAD\_MULTIPLE} thread levels, the \FUNC{shmem\_init\_thread} and
\FUNC{shmem\_finalize} calls must be invoked by the same thread.

In the \CONST{SHMEM\_THREAD\_FUNNELED} and \CONST{SHMEM\_THREAD\_SERIALIZED}
thread levels, all invocations of \FUNC{shmem\_init\_thread} and
\FUNC{shmem\_finalize} must be made by the same thread.
\item
Any \openshmem operation initiated by a thread is considered an action of the
\ac{PE} as a whole. The symmetric heap and symmetric variables scope are not
Expand Down

0 comments on commit 7360ca1

Please sign in to comment.