diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-13 16:11:44 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-13 16:11:44 +0200 |
commit | c36996e5ca4ea047e55778004a99d9f7cad9282f (patch) | |
tree | 9ac87ecba4656828759f577ebaa394c8544d8bc0 /GEMV/include/dfatool_host.ah | |
parent | d666b713716af62708cc9fefe3ab136e7f18b5ae (diff) |
GEMV: Add AspectC++ support
Diffstat (limited to 'GEMV/include/dfatool_host.ah')
-rw-r--r-- | GEMV/include/dfatool_host.ah | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/GEMV/include/dfatool_host.ah b/GEMV/include/dfatool_host.ah new file mode 100644 index 0000000..bc2d512 --- /dev/null +++ b/GEMV/include/dfatool_host.ah @@ -0,0 +1,27 @@ +#pragma once + +#include <sys/time.h> +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + + uint32_t kernel = 1; + + DfatoolHostTiming() { + element_size = sizeof(T); + } + + advice call("% input_params(...)") : after() { + Params* p = tjp->result(); + input_size = p->n_size * p->m_size; + printf("[>>] GEMV | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } + + advice call("% gemv_host(...)") : after() { + printf("[--] GEMV | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } + + advice execution("% main(...)") : after() { + printf("[<<] GEMV | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } +}; |