summaryrefslogtreecommitdiff
path: root/TRNS/include
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 16:03:27 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 16:09:20 +0200
commit55f2653aafa38ea1d53a43c104185218e0dad1f1 (patch)
tree9e550665102e5543be8186b259586a69e7c8b83f /TRNS/include
parentc2819a30f6914267e5792b68ca8a500f0e06ce79 (diff)
Use benchmark-specific input descriptions rather than opaque "#elements"
Diffstat (limited to 'TRNS/include')
-rw-r--r--TRNS/include/dfatool_host.ah19
1 files changed, 15 insertions, 4 deletions
diff --git a/TRNS/include/dfatool_host.ah b/TRNS/include/dfatool_host.ah
index 6bdd3b5..d9065d8 100644
--- a/TRNS/include/dfatool_host.ah
+++ b/TRNS/include/dfatool_host.ah
@@ -5,21 +5,32 @@
aspect DfatoolHostTiming : public DfatoolHostDPUTiming {
+ unsigned int n_rows_f1, n_rows_f2, n_cols_f1, n_cols_f2;
+ unsigned int element_size;
+
+ virtual int getKernel() { return kernel; }
+
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\n", NR_DPUS, input_size);
+ /*
+ * Input: (M_ * m) × (N_ * n) matrix
+ */
+ n_rows_f1 = p->M_;
+ n_rows_f2 = p->m;
+ n_cols_f1 = p->N_;
+ n_cols_f2 = p->n;
+ printf("[>>] TRNS | n_dpus=%u n_rows_f1=%u n_rows_f2=%u n_cols_f1=%u n_cols_f2=%u\n", NR_DPUS, n_rows_f1, n_rows_f2, n_cols_f1, n_cols_f2);
}
advice call("% trns_host(...)") : after() {
- printf("[--] TRNS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
+ printf("[--] TRNS | n_dpus=%u n_rows_f1=%u n_rows_f2=%u n_cols_f1=%u n_cols_f2=%u\n", NR_DPUS, n_rows_f1, n_rows_f2, n_cols_f1, n_cols_f2);
}
advice execution("% main(...)") : after() {
- printf("[<<] TRNS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size);
+ printf("[<<] TRNS | n_dpus=%u n_rows_f1=%u n_rows_f2=%u n_cols_f1=%u n_cols_f2=%u\n", NR_DPUS, n_rows_f1, n_rows_f2, n_cols_f1, n_cols_f2);
}
};