From 591e195f3eeb06237dedd9c5a66fcfe0b0a10889 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 13 May 2025 11:59:49 +0200 Subject: VA: Use common timer and timing aspect headers --- VA/include/dfatool_host.ah | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 VA/include/dfatool_host.ah (limited to 'VA/include/dfatool_host.ah') 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 +#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); + } +}; -- cgit v1.2.3