[mpich-discuss] initialization issue in strided_get_indexed

sreeram potluri potluri at cse.ohio-state.edu
Mon Dec 12 06:53:14 CST 2011


Hi Team,

We have seen a validation error with the strided_get_indexed test in our
internal testing with MVAPICH2. This appears to be an initialization issue
with the benchmark. The path below fixes it in one way. Please accept the
change if appropriate.

Index: mpi/rma/strided_get_indexed.c
===================================================================
--- mpi/rma/strided_get_indexed.c (revision 5064)
+++ mpi/rma/strided_get_indexed.c (working copy)
@@ -48,8 +48,10 @@
     if (rank == 0)
         if (verbose) printf("MPI RMA Strided Get Test:\n");

-    for (i = 0; i < XDIM*YDIM; i++)
+    for (i = 0; i < XDIM*YDIM; i++) {
         *(win_buf + i) = 1.0 + rank;
+        *(loc_buf + i) = 1.0 + rank;
+    }

     MPI_Win_create(win_buf, bufsize, 1, MPI_INFO_NULL, MPI_COMM_WORLD,
&buf_win);

Regards
Sreeram Potluri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111212/3d9d2a27/attachment.htm>


More information about the mpich-discuss mailing list