Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/shmem_calloc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
When \VAR{count} or \VAR{size} is \CONST{0}, the \FUNC{shmem\_calloc} routine
returns without performing a barrier. Otherwise, this
routine calls a procedure that is semantically equivalent to
\FUNC{shmem\_barrier\_all} on exit.
\FUNC{shmem\_sync\_all} on exit.
}

\apireturnvalues{
Expand Down
14 changes: 7 additions & 7 deletions content/shmem_malloc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
are provided so that multiple \acp{PE} in a program can allocate symmetric,
remotely accessible memory blocks. These memory blocks can then be used with
\openshmem communication routines. When no action is performed, these
routines return without performing a barrier.
Otherwise, each of these routines includes at least one
call to a procedure that is semantically equivalent to \FUNC{shmem\_barrier\_all}:
\FUNC{shmem\_malloc} and \FUNC{shmem\_align} call a
barrier on exit; \FUNC{shmem\_free} calls a barrier on entry; and
\FUNC{shmem\_realloc} may call barriers on both entry and exit, depending on
whether an existing allocation is modified and whether new memory is allocated, respectively.
routines return without performing a \FUNC{shmem\_sync\_all} or
\FUNC{shmem\_barrier\_all} operation.
Otherwise, on exit, \FUNC{shmem\_malloc} and \FUNC{shmem\_align} includes at least
one call to a procedure that is semantically equivalent to
\FUNC{shmem\_sync\_all}. The \FUNC{shmem\_free} and \FUNC{shmem\_realloc}
calls a routine that is semantically equivalent to
\FUNC{shmem\_barrier\_all} both on entry and exit.
This ensures that all
\acp{PE} participate in the memory allocation, and that the memory on other
\acp{PE} can be used as soon as the local \ac{PE} returns.
Expand Down