summaryrefslogtreecommitdiff
path: root/GEMV/include/dfatool_host.ah
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-13 16:11:44 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-13 16:11:44 +0200
commitc36996e5ca4ea047e55778004a99d9f7cad9282f (patch)
tree9ac87ecba4656828759f577ebaa394c8544d8bc0 /GEMV/include/dfatool_host.ah
parentd666b713716af62708cc9fefe3ab136e7f18b5ae (diff)
GEMV: Add AspectC++ support
Diffstat (limited to 'GEMV/include/dfatool_host.ah')
-rw-r--r--GEMV/include/dfatool_host.ah27
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);
+ }
+};