[mpich2-commits] r7960 - mpich2/trunk/test/mpi/rma

dinan at mcs.anl.gov dinan at mcs.anl.gov
Mon Feb 14 18:31:21 CST 2011


Author: dinan
Date: 2011-02-14 18:31:21 -0600 (Mon, 14 Feb 2011)
New Revision: 7960

Modified:
   mpich2/trunk/test/mpi/rma/strided_acc_indexed.c
Log:
Fixed iteration fail.  Wasn't affecting the validity of the test, but now you
can bump up the number of iterations without looping forever.
 


Modified: mpich2/trunk/test/mpi/rma/strided_acc_indexed.c
===================================================================
--- mpich2/trunk/test/mpi/rma/strided_acc_indexed.c	2011-02-14 20:20:01 UTC (rev 7959)
+++ mpich2/trunk/test/mpi/rma/strided_acc_indexed.c	2011-02-15 00:31:21 UTC (rev 7960)
@@ -28,7 +28,7 @@
 static int verbose = 0;
 
 int main(int argc, char **argv) {
-    int i, j, rank, nranks, peer, bufsize, errors;
+    int itr, i, j, rank, nranks, peer, bufsize, errors;
     double *win_buf, *src_buf;
     MPI_Win buf_win;
 
@@ -55,7 +55,7 @@
 
     /* Perform ITERATIONS strided accumulate operations */
 
-    for (i = 0; i < ITERATIONS; i++) {
+    for (itr = 0; itr < ITERATIONS; itr++) {
       MPI_Aint idx_loc[SUB_YDIM];
       int idx_rem[SUB_YDIM];
       int blk_len[SUB_YDIM];



More information about the mpich2-commits mailing list