UoB-HPC / BabelStream

STREAM, for lots of devices written in many programming models
Other
313 stars 109 forks source link

initElapsedS & readElapsedS calculation right? #196

Open WhaoSH opened 1 month ago

WhaoSH commented 1 month ago

In main.cpp #342 #343, the calculation of initElapsedS & readElapsedS is confusing, why initElapsedS=(read2 - read1), while readElapsedS=(init2 - init1)?

 auto initElapsedS = std::chrono::duration_cast<std::chrono::duration<double>>(read2 - read1).count();
 auto readElapsedS = std::chrono::duration_cast<std::chrono::duration<double>>(init2 - init1).count();
tomdeakin commented 1 month ago

Thanks for reporting this - we have a bug fix coming in a PR.

tomdeakin commented 1 month ago

Will be fixed by #186

gonzalobg commented 1 month ago

Fixed by #186 .