diff --git a/content/shmem_calloc.tex b/content/shmem_calloc.tex index 8eeb90be2..7c7742f1a 100644 --- a/content/shmem_calloc.tex +++ b/content/shmem_calloc.tex @@ -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{ diff --git a/content/shmem_malloc.tex b/content/shmem_malloc.tex index ccb799b14..4bdfb743e 100644 --- a/content/shmem_malloc.tex +++ b/content/shmem_malloc.tex @@ -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.