[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.1-72-g47b0cca
Service Account
noreply at mpich.org
Wed Jul 9 10:09:39 CDT 2014
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 47b0cca8fbd4cc81bdaf966839c9111c09c4cc03 (commit)
from c244ba4905f7b1b4541cf1fbd9a84637525e4b22 (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/47b0cca8fbd4cc81bdaf966839c9111c09c4cc03
commit 47b0cca8fbd4cc81bdaf966839c9111c09c4cc03
Author: Pavan Balaji <balaji at anl.gov>
Date: Wed Jul 9 08:58:43 2014 -0500
Fix badness in fence_shm.
Array size on fence_shm was set to 0, which was not caught by most
platforms, but made solaris go all crazy.
Signed-off-by: Xin Zhao <xinzhao3 at illinois.edu>
diff --git a/test/mpi/rma/fence_shm.c b/test/mpi/rma/fence_shm.c
index 9711577..d3f53c0 100644
--- a/test/mpi/rma/fence_shm.c
+++ b/test/mpi/rma/fence_shm.c
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
MPI_Win shm_win;
int *my_base;
int one = 1;
- int result_data[0];
+ int result_data;
MTest_Init(&argc, &argv);
@@ -71,15 +71,15 @@ int main(int argc, char *argv[])
}
if (shm_rank == 0) {
- result_data[0] = 0;
+ result_data = 0;
MPI_Win_fence(MPI_MODE_NOPRECEDE, shm_win);
- MPI_Get(result_data, 1, MPI_INT, 1, 0, 1, MPI_INT, shm_win);
+ MPI_Get(&result_data, 1, MPI_INT, 1, 0, 1, MPI_INT, shm_win);
MPI_Win_fence(0, shm_win);
- if (result_data[0] != one) {
+ if (result_data != one) {
errors++;
- printf("Expected: result_data[0] = %d Actual: result_data[0] = %d\n",
- one, result_data[0]);
+ printf("Expected: result_data = %d Actual: result_data = %d\n",
+ one, result_data);
}
}
-----------------------------------------------------------------------
Summary of changes:
test/mpi/rma/fence_shm.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list