blob: 19019a576c0907db4a9c1491ea3539e5f7420eab (
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
31
|
#pragma once
#include <sys/time.h>
#include "dfatool_host_dpu.ah"
aspect DfatoolHostTiming : public DfatoolHostDPUTiming {
unsigned long n_elements, n_queries;
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 = INPUT_SIZE;
n_queries = p->num_querys;
printf("[>>] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries);
}
advice call("% binarySearch(...)") : after() {
printf("[--] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries);
}
advice execution("% main(...)") : after() {
printf("[<<] BS | n_dpus=%u n_elements=%lu n_queries=%lu\n", NR_DPUS, n_elements, n_queries);
}
};
|