summaryrefslogtreecommitdiff
path: root/TS/include/dfatool_host.ah
blob: 2a4591826a9fb78014683114199decd7e9956baf (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
#pragma once

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

aspect DfatoolHostTiming : public DfatoolHostDPUTiming {

	DfatoolHostTiming() {
		element_size = sizeof(DTYPE);
	}

	advice call("% input_params(...)") : after() {
		Params* p = tjp->result();
		input_size = p->input_size_n;
		printf("[>>] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
	}

	advice call("% streamp(...)") : before() {
		printf("[--] TS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
	}

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