diff options
Diffstat (limited to 'VA/include/dfatool_host.ah')
-rw-r--r-- | VA/include/dfatool_host.ah | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/VA/include/dfatool_host.ah b/VA/include/dfatool_host.ah new file mode 100644 index 0000000..6818333 --- /dev/null +++ b/VA/include/dfatool_host.ah @@ -0,0 +1,15 @@ +#pragma once + +#include <sys/time.h> +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + advice call("% input_params(...)") : after() { + Params* p = tjp->result(); + printf("[==] VA | n_dpus=%u n_elements=%lu e_exp=%d \n", NR_DPUS, p->input_size, p->exp); + } + + advice call("% vector_addition_host(...)") : after() { + printf("[--] VA | n_dpus=%u n_ranks=%u n_elements=%lu n_elements_per_dpu=%lu e_exp=%d \n", n_dpus, n_ranks, p.input_size, p.input_size / n_dpus, p.exp); + } +}; |