[mpich2-commits] r8028 - mpich2/trunk/test/mpi/rma
dinan at mcs.anl.gov
dinan at mcs.anl.gov
Wed Feb 23 14:17:03 CST 2011
Author: dinan
Date: 2011-02-23 14:17:03 -0600 (Wed, 23 Feb 2011)
New Revision: 8028
Modified:
mpich2/trunk/test/mpi/rma/contention_put.c
mpich2/trunk/test/mpi/rma/contention_putget.c
mpich2/trunk/test/mpi/rma/strided_putget_indexed.c
Log:
Fixed iteration variable aliasing in strided_putget_indexed. Added copyright
notice to other tests.
Modified: mpich2/trunk/test/mpi/rma/contention_put.c
===================================================================
--- mpich2/trunk/test/mpi/rma/contention_put.c 2011-02-23 19:31:52 UTC (rev 8027)
+++ mpich2/trunk/test/mpi/rma/contention_put.c 2011-02-23 20:17:03 UTC (rev 8028)
@@ -1,3 +1,9 @@
+/* -*- Mode: C; c-basic-offset:4 ; -*- */
+/*
+ * (C) 2001 by Argonne National Laboratory.
+ * See COPYRIGHT in top-level directory.
+ */
+
/** Contended RMA put test -- James Dinan <dinan at mcs.anl.gov>
*
* Each process issues COUNT put operations to non-overlapping locations on
Modified: mpich2/trunk/test/mpi/rma/contention_putget.c
===================================================================
--- mpich2/trunk/test/mpi/rma/contention_putget.c 2011-02-23 19:31:52 UTC (rev 8027)
+++ mpich2/trunk/test/mpi/rma/contention_putget.c 2011-02-23 20:17:03 UTC (rev 8028)
@@ -1,3 +1,9 @@
+/* -*- Mode: C; c-basic-offset:4 ; -*- */
+/*
+ * (C) 2001 by Argonne National Laboratory.
+ * See COPYRIGHT in top-level directory.
+ */
+
/** Contended RMA put/get test -- James Dinan <dinan at mcs.anl.gov>
*
* Each process issues COUNT put and get operations to non-overlapping
Modified: mpich2/trunk/test/mpi/rma/strided_putget_indexed.c
===================================================================
--- mpich2/trunk/test/mpi/rma/strided_putget_indexed.c 2011-02-23 19:31:52 UTC (rev 8027)
+++ mpich2/trunk/test/mpi/rma/strided_putget_indexed.c 2011-02-23 20:17:03 UTC (rev 8028)
@@ -23,7 +23,7 @@
#define YDIM 1024
#define SUB_XDIM 8
#define SUB_YDIM 255
-#define ITERATIONS 1
+#define ITERATIONS 10
static int verbose = 0;
@@ -62,10 +62,10 @@
int blk_len[SUB_YDIM];
MPI_Datatype src_type, dst_type;
- for (i = 0; i < SUB_YDIM; i++) {
- MPI_Get_address(&src_buf[i*XDIM], &idx_loc[i]);
- idx_rem[i] = i*XDIM;
- blk_len[i] = SUB_XDIM;
+ for (j = 0; j < SUB_YDIM; j++) {
+ MPI_Get_address(&src_buf[j*XDIM], &idx_loc[j]);
+ idx_rem[j] = j*XDIM;
+ blk_len[j] = SUB_XDIM;
}
MPI_Type_indexed(SUB_YDIM, blk_len, idx_rem, MPI_DOUBLE, &src_type);
More information about the mpich2-commits
mailing list