Skip to content

Commit

Permalink
Merge remote-tracking branch 'naveen-rn/rma-amo-changes' into tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinan committed Sep 6, 2024
2 parents 05f1c32 + 03dfb15 commit db71f8e
Show file tree
Hide file tree
Showing 41 changed files with 159 additions and 149 deletions.
16 changes: 15 additions & 1 deletion content/atomics_intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
The non-fetching routines include:
\FUNC{shmem\_atomic\_\{set, inc, add, and, or, xor\}[\_nbi]}.

\begin{DeprecateBlock}

Starting in \openshmem[1.4], all \ac{AMO} functions added "\_atomic\_" to the function
name and deprecated the equivalent functions without "\_atomic\_" in the name.

\end{DeprecateBlock}

\end{itemize}

\openshmem \ac{AMO} routines specified in this section have two variants. In
Expand Down Expand Up @@ -56,7 +63,7 @@
integer types defined in \HEADER{stdint.h} by \Cstd[99]~\S7.18.1.1 and
\Cstd[11]~\S7.20.1.1. When the \Cstd translation environment
does not provide exact-width integer types with \HEADER{stdint.h}, an
\openshmem implemementation is not required to provide support for these types.
\openshmem implementation is not required to provide support for these types.

\begin{table}[h]
\begin{center}
Expand Down Expand Up @@ -123,3 +130,10 @@
\label{bitamotypes}
\end{center}
\end{table}
]






4 changes: 2 additions & 2 deletions content/rma_intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

The destination \ac{PE} is specified as an integer representing the \ac{PE} number.
This \ac{PE} number is relative to the team associated with the
communication context being using for the operation. If no context argument is passed to the routine,
communication context being used for the operation. If no context argument is passed to the routine,
then the routine operates on the default context, which implies that
the \ac{PE} number is relative to the world team.
If the \ac{PE} number passed to the routine is invalid, being negative
Expand All @@ -44,7 +44,7 @@
\footnote{Formally, the \Cstd[99] specification is ISO/IEC~9899:1999(E).}%
~\S7.18.1.1 and \Cstd[11]~\S7.20.1.1. When the \Cstd translation environment
does not provide exact-width integer types with \HEADER{stdint.h}, an
\openshmem implemementation is not required to provide support for these types.
\openshmem implementation is not required to provide support for these types.

\begin{table}[h]
\begin{center}
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_atomic_add.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the atomic add operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number upon which
\dest{} is to be updated.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_and.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise AND operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_atomic_compare_swap.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
type as \VAR{dest}.}
\apiargument{IN}{value}{The value to be atomically written to the remote \ac{PE}.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number upon which
\VAR{dest} is to be updated.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_atomic_compare_swap_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
\apiargument{IN}{value}{The value to be atomically written to the remote
\ac{PE}.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number upon which
\VAR{dest} is to be updated.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
6 changes: 3 additions & 3 deletions content/shmem_atomic_fetch.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
the default context.}
\apiargument{IN}{source}{Symmetric address of the source data object.
The type of \source{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number from which
\VAR{source} is to be fetched.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} on which \VAR{source} resides
relative to the team associated with the given \VAR{ctx} when provided, or the
default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_add.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the atomic fetch-and-add operation. The
type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\VAR{dest} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_add_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the atomic fetch-and-add operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\VAR{dest} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_and.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise AND operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_and_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise AND operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_inc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@
the default context.}
\apiargument{OUT}{dest}{Symmetric address of the destination data object.
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\dest{} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}


Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_inc_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \VAR{fetch} should match that implied in the SYNOPSIS section.}
\apiargument{OUT}{dest}{Symmetric address of the destination data object.
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\dest{} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}


Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \VAR{fetch} should match that implied in the SYNOPSIS section.}
\apiargument{OUT}{source}{Symmetric address of the source data object.
The type of \source{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number from which
\VAR{source} is to be fetched.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_or.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise OR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_or_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise OR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_xor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise XOR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_fetch_xor_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise XOR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_inc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@
the default context.}
\apiargument{OUT}{dest}{Symmetric address of the destination data object.
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\dest{} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_or.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise OR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_set.tex
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the atomic set operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\VAR{dest} is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_atomic_swap.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The value to be atomically written to the remote \ac{PE}.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{ An integer that indicates the \ac{PE} number on which
\dest{} is to be updated.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_atomic_swap_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
\apiargument{IN}{value}{The value to be atomically written to the remote
\ac{PE}.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer that indicates the \ac{PE} number on which
\dest{} is to be updated.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 2 additions & 3 deletions content/shmem_atomic_xor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
The type of \dest{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{value}{The operand to the bitwise XOR operation.
The type of \VAR{value} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{An integer value for the \ac{PE} on which \VAR{dest}
is to be updated.}

\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
3 changes: 3 additions & 0 deletions content/shmem_g.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
\apiargument{IN}{source}{Symmetric address of the source data object.
The type of \source{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{pe}{The number of the remote \ac{PE} on which \VAR{source} resides.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} on which \VAR{source} resides
relative to the team associated with the given \VAR{ctx} when provided, or the
default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 3 additions & 2 deletions content/shmem_get.tex
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
The type of \source{} should match that implied in the SYNOPSIS section.}
\apiargument{IN}{nelems}{Number of elements in the \dest{} and \source{} arrays.
For \FUNC{shmem\_getmem} and \FUNC{shmem\_ctx\_getmem}, elements are bytes.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE}.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
The get routines provide a method for copying a contiguous symmetric data
object from a different \ac{PE} to a contiguous data object on the local
object from a remote \ac{PE} to a contiguous data object on the local
\ac{PE}. The routines return after the data has been delivered to the
\dest{} array on the local \ac{PE}.
}
Expand Down
5 changes: 3 additions & 2 deletions content/shmem_get_nbi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@
\apiargument{IN}{nelems}{Number of elements in the \dest{} and \source{}
arrays. For \FUNC{shmem\_getmem\_nbi} and
\FUNC{shmem\_ctx\_getmem\_nbi}, elements are bytes.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE}.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
The get routines provide a method for copying a contiguous symmetric data
object from a different \ac{PE} to a contiguous data object on the local
object from a remote \ac{PE} to a contiguous data object on the local
\ac{PE}. The routines return after initiating the operation. The operation is considered
complete after a subsequent call to \FUNC{shmem\_quiet}.
At the completion of \FUNC{shmem\_quiet}, the
Expand Down
3 changes: 2 additions & 1 deletion content/shmem_ibget.tex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
arrays.}
\apiargument{IN}{nblocks}{Number of blocks to be copied from the \source{} array
to the \dest{} array.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE}.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
5 changes: 3 additions & 2 deletions content/shmem_ibput.tex
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@
arrays.}
\apiargument{IN}{nblocks}{Number of blocks to be copied from the \source{} array
to the \dest{} array.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE}.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}


\apidescription{
The \FUNC{shmem\_ibput} routines provide a method for copying strided data
blocks (specified by \VAR{sst}) of an array from a \source{} array on the
blocks (of size \VAR{bsize}) with stride (specified by \VAR{sst}) of an array from a \source{} array on the
local \ac{PE} to locations specified by stride \VAR{dst} on a \dest{} array
on specified remote \ac{PE}. The routines return when the data has
been copied out of the \VAR{source} array on the local \ac{PE} but not
Expand Down
3 changes: 2 additions & 1 deletion content/shmem_iget.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
indicates contiguous data.}
\apiargument{IN}{nelems}{Number of elements in the \dest{} and \source{}
arrays.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE}.}
\apiargument{IN}{pe}{\ac{PE} number of the remote \ac{PE} relative to the team associated
with the given \VAR{ctx} when provided, or the default context otherwise.}
\end{apiarguments}

\apidescription{
Expand Down
Loading

0 comments on commit db71f8e

Please sign in to comment.