blob: b2677e11f93551ac887a43b63267550749945a08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include <sys/time.h>
#include "dfatool_host_dpu.ah"
aspect DfatoolHostTiming : public DfatoolHostDPUTiming {
unsigned long input_size;
unsigned int element_size;
virtual int getKernel() { return 1; }
DfatoolHostTiming() {
element_size = sizeof(uint32_t);
}
advice call("% input_params(...)"): after() {
printf("[>>] BFS | n_dpus=%u\n", NR_DPUS);
}
advice call("% coo2csr(...)") : after() {
struct CSRGraph *g = tjp->result();
input_size = g->numNodes;
printf("[--] BFS | n_dpus=%u n_nodes=%lu\n", NR_DPUS, input_size);
}
advice execution("% main(...)") : after() {
printf("[<<] BFS | n_dpus=%u n_nodes=%lu\n", NR_DPUS, input_size);
}
};
|