diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-11 14:44:44 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-11 14:44:44 +0200 |
commit | a66f19fd7319f89224e1b6c9787ef2a9d996bde0 (patch) | |
tree | 1006747495f57239e1fdcadf033ffa9fad31b111 /Microbenchmarks | |
parent | d4abf7974175fd74bd9e0bbd382b8cb6318fceea (diff) |
STREAM: Do not include performance data readout in performance data calculation
Diffstat (limited to 'Microbenchmarks')
-rw-r--r-- | Microbenchmarks/STREAM/host/app.c | 11 |
1 files changed, 7 insertions, 4 deletions
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; |