blob: 94f61018e2732bc272a9eeaa1ea5239818182404 (
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(T);
}
advice call("% input_params(...)") : after() {
Params* p = tjp->result();
input_size = p->M_ * p->m * p->N_ * p->n;
printf("[>>] TRNS | n_dpus=%u n_elements=%lu e_exp=%d\n", NR_DPUS, input_size, p->exp);
}
advice call("% trns_host(...)") : after() {
printf("[--] TRNS | n_dpus=%u n_ranks=%u n_elements=%lu e_exp=%d\n", n_dpus, n_ranks, input_size, p.exp);
}
advice execution("% main(...)") : after() {
printf("[<<] TRNS | n_dpus=%u n_elements=%lu e_exp=%d\n", NR_DPUS, input_size, p.exp);
}
};
|