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

CVS commit program cvs at parl.clemson.edu
Fri Feb 12 16:48:40 EST 2010


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

Modified Files:
      Tag: as-branch
	simple.c 
Log Message:
skip checking stripe alignment temporarily.
minor changes in a test program.



Index: simple.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/active-storage/Attic/simple.c,v
diff -p -u -r1.1.2.8 -r1.1.2.9
--- simple.c	11 Feb 2010 22:56:50 -0000	1.1.2.8
+++ simple.c	12 Feb 2010 21:48:40 -0000	1.1.2.9
@@ -134,7 +134,7 @@ int main( int argc, char *argv[] )
       MPI_Finalize();
       exit(1);
   }
-
+#if 0
   if(use_actsto == 1) {
       if (size != 1) {
           if(rank == 0)
@@ -143,7 +143,7 @@ int main( int argc, char *argv[] )
           exit(1);
       }
   }
-
+#endif
   /* initialize random seed: */
   srand(time(NULL));
 
@@ -208,11 +208,12 @@ int main( int argc, char *argv[] )
       exit(1);
     }
 
-    if(rank == 0) printf("File is written\n\n");
-
     MPI_File_close(&fh);
   }
 
+  MPI_Barrier(MPI_COMM_WORLD);
+  if(rank == 0) printf("File is written\n\n");
+
   double *tmp = (double *)malloc( nitem * sizeof(double) );
 
   if(use_normalsto == 1) {
@@ -291,6 +292,7 @@ int main( int argc, char *argv[] )
     
     MPI_File_close(&fh);
 #endif
+
     /* MPI_SUM */
     MPI_File_open( comm, fname, MPI_MODE_RDWR, MPI_INFO_NULL, &fh );
     
@@ -303,6 +305,8 @@ int main( int argc, char *argv[] )
     
     MPI_File_close( &fh );
   }
+
+  MPI_Barrier(MPI_COMM_WORLD);
   free( buf );
   free( tmp );
  



More information about the Pvfs2-cvs mailing list