summaryrefslogtreecommitdiff
path: root/UNI/host/app.c
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-03-11 09:40:24 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-03-11 09:40:24 +0100
commite65d3cbc1f5a46b0e58e0c51216c5c849280c082 (patch)
treeba140e397ecbab207b7e999239dd049f99be1fe0 /UNI/host/app.c
parenteac4b8aaac345cd4c6e74b1d08c2532cb3e99bdf (diff)
UNI: handle alloc/load/free overhead as parameters; vary them for fgbs24a
Diffstat (limited to 'UNI/host/app.c')
-rw-r--r--UNI/host/app.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/UNI/host/app.c b/UNI/host/app.c
index 596d0cf..2b75657 100644
--- a/UNI/host/app.c
+++ b/UNI/host/app.c
@@ -74,8 +74,6 @@ int main(int argc, char **argv) {
DPU_ASSERT(dpu_probe_init("energy_probe", &probe));
#endif
- printf("WITH_ALLOC_OVERHEAD=%d WITH_LOAD_OVERHEAD=%d WITH_FREE_OVERHEAD=%d\n", WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD);
-
// Timer declaration
Timer timer;
@@ -296,8 +294,10 @@ int main(int argc, char **argv) {
if (status) {
printf("[" ANSI_COLOR_GREEN "OK" ANSI_COLOR_RESET "] Outputs are equal\n");
if (rep >= p.n_warmup) {
- printf("[::] UNI UPMEM | n_dpus=%d n_tasklets=%d e_type=%s block_size_B=%d n_elements=%d ",
- nr_of_dpus, NR_TASKLETS, XSTR(T), BLOCK_SIZE, input_size);
+ printf("[::] UNI UPMEM | n_dpus=%d n_ranks=%d n_tasklets=%d e_type=%s block_size_B=%d n_elements=%d",
+ NR_DPUS, nr_of_ranks, NR_TASKLETS, XSTR(T), BLOCK_SIZE, input_size);
+ printf(" b_with_alloc_overhead=%d b_with_load_overhead=%d b_with_free_overhead=%d ",
+ WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD);
printf("| latency_alloc_us=%f latency_load_us=%f latency_cpu_us=%f latency_write_us=%f latency_kernel_us=%f latency_sync_us=%f latency_read_us=%f latency_free_us=%f",
timer.time[0],
timer.time[1],