File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -367,11 +367,16 @@ void StarComplexityGen::fillStarMap(unsigned numStars)
367
367
starMapPopulated=syclQ ().submit ([&](auto & handler) {
368
368
handler.depends_on (resultSwapped);
369
369
handler.host_task ([&]() {
370
- resultBufferConsumed=0 ;
371
370
populateStarMap ();
372
371
});
373
372
});
374
373
374
+ // reset resultBufferConsumed to number of compute threads outstanding
375
+ resultBufferConsumed=0 ;
376
+ for (auto & i: compute)
377
+ if (eventStatus (i)!=sycl::info::event_command_status::complete)
378
+ resultBufferConsumed+=numOps;
379
+
375
380
backedResultsReset=syclQ ().parallel_for
376
381
(blockSize,starMapPopulated,[block=&*block](auto i){block->backedResult [i].reset ();});
377
382
};
@@ -383,7 +388,7 @@ void StarComplexityGen::fillStarMap(unsigned numStars)
383
388
{
384
389
if (eventStatus (backedResultsReset)==sycl::info::event_command_status::complete)
385
390
consumeResults (i+blockSize>=block->numGraphs );
386
- cout<<" pausing... " <<endl ;
391
+ cout<<" . " <<flush ;
387
392
backedResultsReset.wait ();
388
393
}
389
394
Original file line number Diff line number Diff line change 21
21
#starC.blockSize(40320)
22
22
23
23
starC .generateElementaryStars (nodes )
24
- #for numStars in range(1,maxStars+1):
25
- for numStars in range (6 ,8 ):
24
+ for numStars in range (1 ,maxStars + 1 ):
26
25
starC .fillStarMap (numStars )
27
26
print ('completed' ,numStars ,datetime .now ())
28
27
starC .canonicaliseStarMap ()
You can’t perform that action at this time.
0 commit comments