summaryrefslogtreecommitdiff
path: root/TS/include/dfatool_host.ah
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-13 16:00:22 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-13 16:00:49 +0200
commitd666b713716af62708cc9fefe3ab136e7f18b5ae (patch)
treedf6f2a8a0600512da758864da343ca2b74b72dc8 /TS/include/dfatool_host.ah
parent5f8f20540a69713921b0f49ae9d28b5f56943b34 (diff)
TS: Add AspectC++ support
Diffstat (limited to 'TS/include/dfatool_host.ah')
-rw-r--r--TS/include/dfatool_host.ah25
1 files changed, 25 insertions, 0 deletions
diff --git a/TS/include/dfatool_host.ah b/TS/include/dfatool_host.ah
new file mode 100644
index 0000000..2a45918
--- /dev/null
+++ b/TS/include/dfatool_host.ah
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <sys/time.h>
+#include "dfatool_host_dpu.ah"
+
+aspect DfatoolHostTiming : public DfatoolHostDPUTiming {
+
+ 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);
+ }
+
+ advice call("% streamp(...)") : before() {
+ printf("[--] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
+ }
+
+ advice execution("% main(...)") : after() {
+ printf("[<<] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
+ }
+};