biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge release-4-6 into master
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
thread_mpi
/
once.c
diff --git
a/src/gromacs/gmxlib/thread_mpi/once.c
b/src/gromacs/gmxlib/thread_mpi/once.c
index a25c6db243452b4dfb844f14f57cc380e18b7d97..bee468ceea3fe522f374dbf7a0f633609eb369b8 100644
(file)
--- a/
src/gromacs/gmxlib/thread_mpi/once.c
+++ b/
src/gromacs/gmxlib/thread_mpi/once.c
@@
-137,7
+137,7
@@
void* tMPI_Once_wait(tMPI_Comm comm, void* (*function)(void*), void *param,
tMPI_Atomic_memory_barrier_rel();
/* signal that we're done */
- tMPI_Atomic_
fetch_add
(&(cev->coll.current_sync), 1);
+ tMPI_Atomic_
add_return
(&(cev->coll.current_sync), 1);
/* we need to keep being in sync */
csync->syncs++;
}