[Pvfs2-cvs] commit by sson in pvfs2/test/active-storage: simple.c

CVS commit program cvs at parl.clemson.edu
Thu Feb 11 17:42:46 EST 2010


Update of /projects/cvsroot/pvfs2/test/active-storage
In directory parlweb1:/tmp/cvs-serv18343/test/active-storage

Modified Files:
      Tag: as-branch
	simple.c 
Log Message:
fixed a bug in case of simple actsto operations in pipeline.sm.
(it was returning local sum instead of global sum)



Index: simple.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/active-storage/Attic/simple.c,v
diff -p -u -r1.1.2.6 -r1.1.2.7
--- simple.c	11 Feb 2010 16:47:50 -0000	1.1.2.6
+++ simple.c	11 Feb 2010 22:42:46 -0000	1.1.2.7
@@ -141,6 +141,13 @@ int main( int argc, char *argv[] )
   if(use_gen_file == 1) {
     int t, result;
 
+    if (size != 1) {
+        if(rank == 0)
+            printf("active storage should be run with only 1 process!!!\n");
+        MPI_Finalize();
+        exit(1);
+    }
+
     MPI_File_open( comm, fname, MPI_MODE_RDWR | MPI_MODE_CREATE, MPI_INFO_NULL, &fh );
 
     /* Set the file view */



More information about the Pvfs2-cvs mailing list