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 branch 'release-4-6'
[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 5c659d095f64ab1ba555b0d711356a973172b7a1..be248ef25a98c0acc2b7da391edeb5e9900b9e64 100644
(file)
--- a/
src/gromacs/gmxlib/thread_mpi/once.c
+++ b/
src/gromacs/gmxlib/thread_mpi/once.c
@@
-141,7
+141,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_
add_return
(&(cev->coll.current_sync), 1);
+ tMPI_Atomic_
fetch_add
(&(cev->coll.current_sync), 1);
/* we need to keep being in sync */
csync->syncs++;
}