From a66f19fd7319f89224e1b6c9787ef2a9d996bde0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 11 May 2023 14:44:44 +0200 Subject: STREAM: Do not include performance data readout in performance data calculation --- Microbenchmarks/STREAM/host/app.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Microbenchmarks') diff --git a/Microbenchmarks/STREAM/host/app.c b/Microbenchmarks/STREAM/host/app.c index d77d44b..4d96e8d 100644 --- a/Microbenchmarks/STREAM/host/app.c +++ b/Microbenchmarks/STREAM/host/app.c @@ -193,8 +193,13 @@ int main(int argc, char **argv) { #else DPU_ASSERT(dpu_copy_from(dpu, DPU_MRAM_HEAP_POINTER_NAME, input_size_dpu * sizeof(T), bufferB + input_size_dpu * i, input_size_dpu * sizeof(T))); #endif - + i++; + } + if(rep >= p.n_warmup) + stop(&timer, 3); #if PERF + i = 0; + DPU_FOREACH (dpu_set, dpu) { results[i].cycles = 0; // Retrieve tasklet timings for (unsigned int each_tasklet = 0; each_tasklet < NR_TASKLETS; each_tasklet++) { @@ -204,11 +209,9 @@ int main(int argc, char **argv) { if (result.cycles > results[i].cycles) results[i].cycles = result.cycles; } -#endif i++; } - if(rep >= p.n_warmup) - stop(&timer, 3); +#endif #if PERF uint64_t max_cycles = 0; -- cgit v1.2.3