Acts as optimization barrier between different segments. It also ensures that all pending memory operations of this image have been completed.
void _gfortran_caf_sync_memory (int *stat, char *errmsg, size_t errmsg_len)
stat | intent(out) Stores the status STAT= and may be NULL. |
errmsg | intent(out) When an error occurs, this will be set to an error message; may be NULL. |
errmsg_len | intent(in) the buffer size of errmsg |
__asm__ __volatile__ ("":::"memory")
to prevent code movements.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/_005fgfortran_005fcaf_005fsync_005fmemory.html