summaryrefslogtreecommitdiff
path: root/BS/include/dfatool_host.ah
diff options
context:
space:
mode:
Diffstat (limited to 'BS/include/dfatool_host.ah')
-rw-r--r--BS/include/dfatool_host.ah31
1 files changed, 31 insertions, 0 deletions
diff --git a/BS/include/dfatool_host.ah b/BS/include/dfatool_host.ah
new file mode 100644
index 0000000..19019a5
--- /dev/null
+++ b/BS/include/dfatool_host.ah
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <sys/time.h>
+#include "dfatool_host_dpu.ah"
+
+aspect DfatoolHostTiming : public DfatoolHostDPUTiming {
+
+ unsigned long n_elements, n_queries;
+ unsigned int element_size;
+
+ virtual int getKernel() { return 1; }
+
+ DfatoolHostTiming() {
+ element_size = sizeof(uint32_t);
+ }
+
+ advice call("% input_params(...)"): after() {
+ Params* p = tjp->result();
+ 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_queries=%lu\n", NR_DPUS, n_elements, n_queries);
+ }
+
+ advice execution("% main(...)") : after() {
+ printf("[<<] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries);
+ }
+};