diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-13 11:59:49 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-13 11:59:49 +0200 |
commit | 591e195f3eeb06237dedd9c5a66fcfe0b0a10889 (patch) | |
tree | 4daa94bdc644015afac7cd27b4ecf93299a8d79b /VA/include/dfatool_host.ah | |
parent | ffba7bb7077fe4c1fc3493ef45d71cadfef53782 (diff) |
VA: Use common timer and timing aspect headers
Diffstat (limited to 'VA/include/dfatool_host.ah')
-rw-r--r-- | VA/include/dfatool_host.ah | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/VA/include/dfatool_host.ah b/VA/include/dfatool_host.ah new file mode 100644 index 0000000..6818333 --- /dev/null +++ b/VA/include/dfatool_host.ah @@ -0,0 +1,15 @@ +#pragma once + +#include <sys/time.h> +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + advice call("% input_params(...)") : after() { + Params* p = tjp->result(); + printf("[==] VA | n_dpus=%u n_elements=%lu e_exp=%d \n", NR_DPUS, p->input_size, p->exp); + } + + advice call("% vector_addition_host(...)") : after() { + printf("[--] VA | n_dpus=%u n_ranks=%u n_elements=%lu n_elements_per_dpu=%lu e_exp=%d \n", n_dpus, n_ranks, p.input_size, p.input_size / n_dpus, p.exp); + } +}; |