A bug fix which has assumed the #chunks a job is partitioned into is the same with...
authorChao Mei <chaomei2@illinois.edu>
Thu, 2 Feb 2012 18:49:00 +0000 (12:49 -0600)
committerChao Mei <chaomei2@illinois.edu>
Thu, 2 Feb 2012 18:49:00 +0000 (12:49 -0600)
NodeHelper.C

index 25ef04198d40ea9d533f585109edf9f0de966bbd..a74b8780d07d3a036b342e6790a04baf82ec206b 100644 (file)
@@ -443,10 +443,10 @@ void CurLoopInfo::stealWork(){
         }
                 
         fnPtr(first, last, redBufs[nextChunkId], paramNum, param);
         }
                 
         fnPtr(first, last, redBufs[nextChunkId], paramNum, param);
+        reportFinished();
         
         nextChunkId = getNextChunkIdx();
     }
         
         nextChunkId = getNextChunkIdx();
     }
-    reportFinished();    
 }
 
 //======================================================================//
 }
 
 //======================================================================//