summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-03-13 09:39:03 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-03-13 09:39:03 +0100
commit3cd15f8dc1abab7e89615740688418751c4d57a0 (patch)
tree1e139ba368236c48091d0a654355e420cf247c2b
parent4db503a4fc166087ba67e276bd33d5c0cd32da91 (diff)
BS: throughput is based on num queries, not input size
-rw-r--r--BS/host/app.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/BS/host/app.c b/BS/host/app.c
index 928bb8c..f772c17 100644
--- a/BS/host/app.c
+++ b/BS/host/app.c
@@ -241,10 +241,10 @@ int main(int argc, char **argv) {
#endif
// Retrieve results
+ dpu_results_t* results_retrieve[NR_DPUS];
if (rep >= p.n_warmup) {
start(&timer, 5, 0);
}
- dpu_results_t* results_retrieve[NR_DPUS];
i = 0;
DPU_FOREACH(dpu_set, dpu, i)
{
@@ -300,21 +300,21 @@ int main(int argc, char **argv) {
timer.time[5],
timer.time[6]);
printf(" throughput_cpu_MBps=%f throughput_upmem_kernel_MBps=%f throughput_upmem_total_MBps=%f",
- input_size * sizeof(DTYPE) / timer.time[2],
- input_size * sizeof(DTYPE) / (timer.time[4]),
- input_size * sizeof(DTYPE) / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5] + timer.time[6]));
+ num_querys * sizeof(DTYPE) / timer.time[2],
+ num_querys * sizeof(DTYPE) / (timer.time[4]),
+ num_querys * sizeof(DTYPE) / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5] + timer.time[6]));
printf(" throughput_upmem_wxr_MBps=%f throughput_upmem_lwxr_MBps=%f throughput_upmem_alwxr_MBps=%f",
- input_size * sizeof(DTYPE) / (timer.time[3] + timer.time[4] + timer.time[5]),
- input_size * sizeof(DTYPE) / (timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]),
- input_size * sizeof(DTYPE) / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]));
+ num_querys * sizeof(DTYPE) / (timer.time[3] + timer.time[4] + timer.time[5]),
+ num_querys * sizeof(DTYPE) / (timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]),
+ num_querys * sizeof(DTYPE) / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]));
printf(" throughput_cpu_MOpps=%f throughput_upmem_kernel_MOpps=%f throughput_upmem_total_MOpps=%f",
- input_size / timer.time[2],
- input_size / (timer.time[4]),
- input_size / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5] + timer.time[6]));
+ num_querys / timer.time[2],
+ num_querys / (timer.time[4]),
+ num_querys / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5] + timer.time[6]));
printf(" throughput_upmem_wxr_MOpps=%f throughput_upmem_lwxr_MOpps=%f throughput_upmem_alwxr_MOpps=%f\n",
- input_size / (timer.time[3] + timer.time[4] + timer.time[5]),
- input_size / (timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]),
- input_size / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]));
+ num_querys / (timer.time[3] + timer.time[4] + timer.time[5]),
+ num_querys / (timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]),
+ num_querys / (timer.time[0] + timer.time[1] + timer.time[3] + timer.time[4] + timer.time[5]));
}
} else {
printf("[" ANSI_COLOR_RED "ERROR" ANSI_COLOR_RESET "] results differ!\n");