forked from openshmem-org/specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshmem_p.tex
51 lines (39 loc) · 1.39 KB
/
shmem_p.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\apisummary{
Copies one data item to a remote \ac{PE}.
}
\begin{apidefinition}
\begin{C11synopsis}
void shmem_p(TYPE *dest, TYPE value, int pe);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{RMA} types specified by Table \ref{stdrmatypes}.
\begin{Csynopsis}
void shmem_<TYPENAME>_p(TYPE *dest, TYPE value, int pe);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{RMA} types and has a corresponding \TYPENAME{} specified by Table \ref{stdrmatypes}.
\begin{apiarguments}
\apiargument{IN}{addr}{The remotely accessible array element or scalar data object
which will receive the data on the remote \ac{PE}.}
\apiargument{IN}{value}{The value to be transferred to \VAR{addr} on the
remote \ac{PE}.}
\apiargument{IN}{pe}{The number of the remote \ac{PE}.}
\end{apiarguments}
\apidescription{
These routines provide a very low latency put capability for single elements of
most basic types.
As with \FUNC{shmem\_put}, these routines start the remote transfer and may
return before the data is delivered to the remote \ac{PE}. Use
\FUNC{shmem\_quiet} to force completion of all remote \PUT{} transfers.
}
\apireturnvalues{
None.
}
\apinotes{
None.
}
\begin{apiexamples}
\apicexample
{The following example uses \FUNC{shmem\_p} in a \Cstd[11] program.}
{./example_code/shmem_p_example.c}
{}
\end{apiexamples}
\end{apidefinition}