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" --- BS/include/dfatool_host.ah | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'BS/include') diff --git a/BS/include/dfatool_host.ah b/BS/include/dfatool_host.ah index 2f55c40..19019a5 100644 --- a/BS/include/dfatool_host.ah +++ b/BS/include/dfatool_host.ah @@ -5,6 +5,9 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + unsigned long n_elements, n_queries; + unsigned int element_size; + virtual int getKernel() { return 1; } DfatoolHostTiming() { @@ -13,15 +16,16 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { advice call("% input_params(...)"): after() { Params* p = tjp->result(); - input_size = INPUT_SIZE + p->num_querys; - printf("[>>] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + n_elements = INPUT_SIZE; + n_queries = p->num_querys; + printf("[>>] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries); } advice call("% binarySearch(...)") : after() { - printf("[--] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + printf("[--] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries); } advice execution("% main(...)") : after() { - printf("[<<] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + printf("[<<] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries); } }; -- cgit v1.2.3