Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
clamchowder committed Nov 1, 2024
2 parents 4d2d101 + bbb46ab commit 40e5fbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MemoryBandwidth/MemoryBandwidth/MemoryBandwidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,17 @@ float MeasureBw(uint32_t sizeKb, uint32_t iterations, uint32_t threads, int shar
if (diff > max_diff) max_diff = diff;
}

fprintf(stderr, "Variation: %f\n", max_diff);
fprintf(stderr, "%d KB: Variation: %f\n", sizeKb, max_diff);

if (max_diff > 0.1f)
if (max_diff > 0.15f)
{
for (int i = 0; i < threads; i++)
{
threadData[i].iterations = scale_iterations_to_target(threadData[i].iterations, threadData[i].elapsed_time, max_time);
}

// give it some time to cool
Sleep(6000);
}
else
{
Expand Down

0 comments on commit 40e5fbc

Please sign in to comment.