libxmp/libxmpf in Omni Compiler  1.3.4
xmpco_sync.c File Reference
#include "xmpco_internal.h"
Include dependency graph for xmpco_sync.c:

Functions

void XMPCO_sync_all ()
 
void XMPCO_sync_all_auto ()
 
void XMPCO_sync_all_withComm (MPI_Comm comm)
 

Function Documentation

◆ XMPCO_sync_all()

void XMPCO_sync_all ( )
12 {
13  int stat = 0;
14 
15  if (_XMPCO_is_subset_exec()) {
17  _XMPCO_debugPrint("SYNCALL on subset(%d images) done\n",
19  return;
20  }
21 
22  _count_syncall += 1;
23  xmp_sync_all(&stat);
24  if (stat != 0)
25  _XMPCO_fatal("SYNCALL failed with stat=%d", stat);
26 
27  _XMPCO_debugPrint("SYNCALL done (_count_syncall=%d, stat=%d)\n",
28  _count_syncall, stat);
29 }
Here is the call graph for this function:

◆ XMPCO_sync_all_auto()

void XMPCO_sync_all_auto ( )
35 {
36  int stat = 0;
37 
38  if (_XMPCO_is_subset_exec()) {
40  _XMPCO_debugPrint("SYNCALL AUTO on subset(%d images) done\n",
42  return;
43  }
44 
45  _count_syncall_auto += 1;
46  xmp_sync_all(&stat);
47  if (stat != 0)
48  _XMPCO_fatal("SYNCALL_AUTO failed with stat=%d", stat);
49 
50  _XMPCO_debugPrint("SYNCALL_AUTO done (_count_syncall_auto=%d, stat=%d)\n",
51  _count_syncall_auto, stat);
52 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ XMPCO_sync_all_withComm()

void XMPCO_sync_all_withComm ( MPI_Comm  comm)
55 {
56  int stat = 0;
57 
58  xmp_sync_memory(&stat);
59  if (stat != 0)
60  _XMPCO_fatal("SYNC MEMORY inside SYNC ALL failed with stat=%d", stat);
61  stat = MPI_Barrier(comm);
62  if (stat != 0)
63  _XMPCO_fatal("MPI_Barrier inside SYNC ALL failed with stat=%d", stat);
64  return;
65 }
Here is the caller graph for this function:
_XMPCO_debugPrint
void _XMPCO_debugPrint(char *format,...)
Definition: xmpco_msg.c:20
_XMPCO_consume_comm_current
MPI_Comm _XMPCO_consume_comm_current(void)
Definition: xmpco_lib.c:315
XMPCO_sync_all_withComm
void XMPCO_sync_all_withComm(MPI_Comm comm)
Definition: xmpco_sync.c:54
_XMPCO_fatal
void _XMPCO_fatal(char *format,...)
Definition: xmpco_msg.c:4
xmp_sync_memory
void xmp_sync_memory(const int *status)
Execute sync_memory()
Definition: xmp_coarray.c:1405
_XMPCO_get_currentNumImages
int _XMPCO_get_currentNumImages(void)
Definition: xmpco_lib.c:143
_XMPCO_is_subset_exec
BOOL _XMPCO_is_subset_exec(void)
Definition: xmpco_lib.c:176
xmp_sync_all
void xmp_sync_all(const int *status)
Execute sync_all()
Definition: xmp_coarray.c:1423