diff options
Diffstat (limited to 'VA/include/dfatool_host.ah')
-rw-r--r-- | VA/include/dfatool_host.ah | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/VA/include/dfatool_host.ah b/VA/include/dfatool_host.ah new file mode 100644 index 0000000..e74f466 --- /dev/null +++ b/VA/include/dfatool_host.ah @@ -0,0 +1,29 @@ +#pragma once + +#include <sys/time.h> +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + unsigned long n_rows; + unsigned int element_size; + + virtual int getKernel() { return 1; } + + DfatoolHostTiming() { + element_size = sizeof(T); + } + + advice call("% input_params(...)") : after() { + Params* p = tjp->result(); + n_rows = p->input_size; + printf("[>>] VA | n_dpus=%u n_rows=%lu\n", NR_DPUS, n_rows); + } + + advice call("% vector_addition_host(...)") : after() { + printf("[--] VA | n_dpus=%u n_rows=%lu\n", n_dpus, n_rows); + } + + advice execution("% main(...)") : after() { + printf("[<<] VA | n_dpus=%u n_rows=%lu\n", NR_DPUS, n_rows); + } +}; |