[mpich] MPICH primary repository branch, master, updated. v3.1.1-80-g02813e2
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "MPICH primary repository". The branch, master has been updated via 02813e26c1746a11167be3454fb9912673af0711 (commit) from 877fa1a6bec9b3377f73b7c905f3d57651c4048c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://git.mpich.org/mpich.git/commitdiff/02813e26c1746a11167be3454fb9912673... commit 02813e26c1746a11167be3454fb9912673af0711 Author: Pavan Balaji <[email protected]> Date: Fri Jul 11 12:47:27 2014 -0500 Use global variable for MPI_PUT operations. We were using a stack variable earlier, so when FLUSH from a different thread tried to send that data out it couldn't access that address. Signed-off-by: Xin Zhao <[email protected]> diff --git a/test/mpi/threads/rma/multirma.c b/test/mpi/threads/rma/multirma.c index eb9d5b5..4501dca 100644 --- a/test/mpi/threads/rma/multirma.c +++ b/test/mpi/threads/rma/multirma.c @@ -15,14 +15,16 @@ #define LOOPS 100000 MPI_Win win; -int errs = 0; +int errs = 0, dummy; MTEST_THREAD_RETURN_TYPE run_test(void *arg) { int i; for (i = 0; i < LOOPS; i++) { - MPI_Put(&i, 1, MPI_INT, 0, 0, 1, MPI_INT, win); + /* send a global variable, rather than a stack variable, so + * other threads can access the address during flush */ + MPI_Put(&dummy, 1, MPI_INT, 0, 0, 1, MPI_INT, win); MPI_Win_flush(0, win); } ----------------------------------------------------------------------- Summary of changes: test/mpi/threads/rma/multirma.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- MPICH primary repository
participants (1)
-
noreply@mpich.org