summaryrefslogtreecommitdiff
path: root/BFS/include/dfatool_host.ah
blob: 592e6ec515d69f6cc4d184c6dc3d01494d6699c1 (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
#pragma once

#include <sys/time.h>
#include "dfatool_host_dpu.ah"

aspect DfatoolHostTiming : public DfatoolHostDPUTiming {

	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_elements=%lu\n", NR_DPUS, input_size);
	}

	advice execution("% main(...)") : after() {
		printf("[<<] BFS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
	}
};