Lines Matching refs:sync
7 PetscSFWindowSyncType sync; /* FENCE, LOCK, or ACTIVE synchronization */ member
237 PetscErrorCode PetscSFWindowSetSyncType(PetscSF sf, PetscSFWindowSyncType sync) in PetscSFWindowSetSyncType() argument
241 PetscValidLogicalCollectiveEnum(sf, sync, 2); in PetscSFWindowSetSyncType()
242 PetscTryMethod(sf, "PetscSFWindowSetSyncType_C", (PetscSF, PetscSFWindowSyncType), (sf, sync)); in PetscSFWindowSetSyncType()
246 static PetscErrorCode PetscSFWindowSetSyncType_Window(PetscSF sf, PetscSFWindowSyncType sync) in PetscSFWindowSetSyncType_Window() argument
251 w->sync = sync; in PetscSFWindowSetSyncType_Window()
270 PetscErrorCode PetscSFWindowGetSyncType(PetscSF sf, PetscSFWindowSyncType *sync) in PetscSFWindowGetSyncType() argument
274 PetscAssertPointer(sync, 2); in PetscSFWindowGetSyncType()
275 PetscUseMethod(sf, "PetscSFWindowGetSyncType_C", (PetscSF, PetscSFWindowSyncType *), (sf, sync)); in PetscSFWindowGetSyncType()
279 static PetscErrorCode PetscSFWindowGetSyncType_Window(PetscSF sf, PetscSFWindowSyncType *sync) in PetscSFWindowGetSyncType_Window() argument
284 *sync = w->sync; in PetscSFWindowGetSyncType_Window()
427 … MPI_Datatype unit, void *rootdata, void *leafdata, PetscSFWindowSyncType sync, PetscBool epoch, P… in PetscSFGetWindow() argument
506 if (sync == PETSCSF_WINDOW_SYNC_LOCK) { in PetscSFGetWindow()
545 …if (sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_lock(MPI_LOCK_EXCLUSIVE, rank, MPI_MODE… in PetscSFGetWindow()
547 if (sync == PETSCSF_WINDOW_SYNC_LOCK) { in PetscSFGetWindow()
555 switch (sync) { in PetscSFGetWindow()
650 …eWindow(PetscSF sf, MPI_Datatype unit, void *array, PetscSFWindowSyncType sync, PetscBool epoch, P… in PetscSFRestoreWindow() argument
687 switch (sync) { in PetscSFRestoreWindow()
721 …if (sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_fence(MPI_MODE_NOPUT | MPI_MODE_NOSUCCE… in PetscSFRestoreWindow()
797 switch (w->sync) { in PetscSFSetUp_Window()
813 …tscSFWindowSetSyncType", PetscSFWindowSyncTypes, (PetscEnum)w->sync, (PetscEnum *)&w->sync, NULL)); in PetscSFSetFromOptions_Window()
892 if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) { in PetscSFRegisterPersistent_Window()
962 …ort=%s\n", PetscSFWindowFlavorTypes[w->flavor], PetscSFWindowSyncTypes[w->sync], sf->rankorder ? "… in PetscSFView_Window()
992 synctype = w->sync; in PetscSFDuplicate_Window()
1015 …PetscCall(PetscSFGetWindow(sf, unit, (void *)rootdata, leafdata, w->sync, PETSC_TRUE, MPI_MODE_NOP… in PetscSFBcastBegin_Window()
1019 if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) { in PetscSFBcastBegin_Window()
1044 if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) { in PetscSFBcastEnd_Window()
1052 …PetscCall(PetscSFRestoreWindow(sf, unit, (void *)rootdata, w->sync, PETSC_TRUE, MPI_MODE_NOSTORE |… in PetscSFBcastEnd_Window()
1069 …PetscCall(PetscSFGetWindow(sf, unit, rootdata, (void *)leafdata, w->sync, PETSC_TRUE, MPI_MODE_NOP… in PetscSFReduceBegin_Window()
1074 …if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_lock(MPI_LOCK_SHARED, ranks[i], MPI_… in PetscSFReduceBegin_Window()
1076 if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_unlock(ranks[i], win)); in PetscSFReduceBegin_Window()
1090 …PetscCall(PetscSFRestoreWindow(sf, unit, rootdata, w->sync, PETSC_TRUE, MPI_MODE_NOSUCCEED, PETSC_… in PetscSFReduceEnd_Window()
1117 …PetscCall(PetscSFGetWindow(sf, unit, rootdata, (void *)leafdata, w->sync, PETSC_TRUE, MPI_MODE_NOP… in PetscSFFetchAndOpBegin_Window()
1129 …if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_lock(MPI_LOCK_SHARED, ranks[i], 0, w… in PetscSFFetchAndOpBegin_Window()
1131 if (w->sync == PETSCSF_WINDOW_SYNC_LOCK) PetscCallMPI(MPI_Win_unlock(ranks[i], win)); in PetscSFFetchAndOpBegin_Window()
1152 …PetscCall(PetscSFRestoreWindow(sf, unit, rootdata, w->sync, PETSC_TRUE, MPI_MODE_NOSUCCEED, PETSC_… in PetscSFFetchAndOpEnd_Window()
1179 w->sync = PETSCSF_WINDOW_SYNC_FENCE; in PetscSFCreate_Window()