@@ -33,7 +33,7 @@ void test(int numSize, int numChunksPerRank) {
3333 }
3434
3535 // Make sure all the chunks have been received. All the above "put" operations
36- // must have completed. Now the data cane be read.
36+ // must have completed. Now the data can be read.
3737 ddc.fence ();
3838
3939 double toc = MPI_Wtime ();
@@ -49,19 +49,17 @@ void test(int numSize, int numChunksPerRank) {
4949 std::vector<double > localData = ddc.get (chunkId);
5050
5151 for (auto val : localData) {
52- // assert(val == chunkId); // this sometimes fails
5352 if (val != chunkId) {
5453 std::cout << " rank = " << rank << " val = " << val << " should have been " << chunkId << ' \n ' ;
5554 }
55+ assert (val == chunkId);
5656 }
5757 }
5858
5959 double toc = MPI_Wtime ();
6060 timeGet += toc - tic;
6161 }
6262
63- MPI_Barrier (MPI_COMM_WORLD);
64-
6563 if (rank == 0 ) {
6664 int numChunk = ddc.getNumChunks ();
6765 int numSize = ddc.getNumSize ();
@@ -98,7 +96,7 @@ int main(int argc, char* argv[]) {
9896
9997 // Parse the command line arguments
10098 CmdLineArgParser cmdLine;
101- cmdLine.set (" -numSize" , 15000 , " Size of the data to put/get" );
99+ cmdLine.set (" -numSize" , 100000 , " Size of the data to put/get" );
102100 cmdLine.set (" -numChunksPerRank" , 1 , " Number of chunks per rank" );
103101 bool success = cmdLine.parse (argc, argv);
104102 bool help = cmdLine.get <bool >(" -help" ) || cmdLine.get <bool >(" -h" );
0 commit comments