#pragma once #include #include "dfatool_host_dpu.ah" aspect DfatoolHostTiming : public DfatoolHostDPUTiming { unsigned long n_elements; 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 = p->max_rows; printf("[>>] NW | n_dpus=%u n_elements=%lu\n", NR_DPUS, n_elements); } advice call("% srand(...)") : after() { printf("[--] NW | n_dpus=%u n_elements=%lu\n", NR_DPUS, n_elements); } advice execution("% main(...)") : after() { printf("[<<] NW | n_dpus=%u n_elements=%lu\n", NR_DPUS, n_elements); } };