From 55f2653aafa38ea1d53a43c104185218e0dad1f1 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 14 May 2025 16:03:27 +0200 Subject: Use benchmark-specific input descriptions rather than opaque "#elements" --- TS/include/dfatool_host.ah | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'TS/include') diff --git a/TS/include/dfatool_host.ah b/TS/include/dfatool_host.ah index 2a45918..4192c73 100644 --- a/TS/include/dfatool_host.ah +++ b/TS/include/dfatool_host.ah @@ -5,21 +5,27 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + unsigned long ts_size, query_length; + unsigned int element_size; + + virtual int getKernel() { return kernel; } + DfatoolHostTiming() { element_size = sizeof(DTYPE); } advice call("% input_params(...)") : after() { Params* p = tjp->result(); - input_size = p->input_size_n; - printf("[>>] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + ts_size = p->input_size_n; + query_length = p->input_size_m; + printf("[>>] TS | n_dpus=%u n_elements_ts=%lu n_elements_query=%lu\n", NR_DPUS, ts_size, query_length); } advice call("% streamp(...)") : before() { - printf("[--] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + printf("[--] TS | n_dpus=%u n_elements_ts=%lu n_elements_query=%lu\n", NR_DPUS, ts_size, query_length); } advice execution("% main(...)") : after() { - printf("[<<] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + printf("[<<] TS | n_dpus=%u n_elements_ts=%lu n_elements_query=%lu\n", NR_DPUS, ts_size, query_length); } }; -- cgit v1.2.3