diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-13 15:39:00 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-13 15:39:00 +0200 |
commit | 5f8f20540a69713921b0f49ae9d28b5f56943b34 (patch) | |
tree | 5428de1b74dda9363a2cc95be96c7a228562c0ce | |
parent | 51829cc3c1f7a237b9f344c134985ac67926d020 (diff) |
TRNS, VA: global params are not required
-rw-r--r-- | TRNS/host/app.c | 3 | ||||
-rw-r--r-- | TRNS/include/dfatool_host.ah | 6 | ||||
-rw-r--r-- | VA/host/app.c | 3 | ||||
-rw-r--r-- | VA/include/dfatool_host.ah | 6 |
4 files changed, 8 insertions, 10 deletions
diff --git a/TRNS/host/app.c b/TRNS/host/app.c index b9a81b7..c178a19 100644 --- a/TRNS/host/app.c +++ b/TRNS/host/app.c @@ -47,7 +47,6 @@ static T* A_host; static T* A_backup; static T* A_result; -struct Params p; unsigned int kernel = 0; // Create input arrays @@ -77,7 +76,7 @@ static void trns_host(T* input, unsigned int A, unsigned int B, unsigned int b){ // Main of the Host Application int main(int argc, char **argv) { - p = input_params(argc, argv); + struct Params p = input_params(argc, argv); struct dpu_set_t dpu_set, dpu; uint32_t nr_of_dpus; diff --git a/TRNS/include/dfatool_host.ah b/TRNS/include/dfatool_host.ah index 94f6101..6bdd3b5 100644 --- a/TRNS/include/dfatool_host.ah +++ b/TRNS/include/dfatool_host.ah @@ -12,14 +12,14 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { 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); + printf("[>>] TRNS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); } 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); + printf("[--] TRNS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); } advice execution("% main(...)") : after() { - printf("[<<] TRNS | n_dpus=%u n_elements=%lu e_exp=%d\n", NR_DPUS, input_size, p.exp); + printf("[<<] TRNS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); } }; diff --git a/VA/host/app.c b/VA/host/app.c index 697731b..04f1971 100644 --- a/VA/host/app.c +++ b/VA/host/app.c @@ -47,7 +47,6 @@ static T *B; static T *C; static T *C2; -struct Params p; unsigned int kernel; // Create input arrays @@ -72,7 +71,7 @@ static void vector_addition_host(T *C, T *A, T *B, unsigned long int nr_elements int main(int argc, char **argv) { - p = input_params(argc, argv); + struct Params p = input_params(argc, argv); struct dpu_set_t dpu_set, dpu; uint32_t nr_of_dpus; diff --git a/VA/include/dfatool_host.ah b/VA/include/dfatool_host.ah index 950bff0..de781f3 100644 --- a/VA/include/dfatool_host.ah +++ b/VA/include/dfatool_host.ah @@ -11,15 +11,15 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { advice call("% input_params(...)") : after() { Params* p = tjp->result(); - printf("[>>] VA | n_dpus=%u n_elements=%lu e_exp=%d\n", NR_DPUS, p->input_size, p->exp); input_size = p->input_size; + printf("[>>] VA | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); } advice call("% vector_addition_host(...)") : after() { - printf("[--] VA | n_dpus=%u n_ranks=%u n_elements=%lu e_exp=%d\n", n_dpus, n_ranks, input_size, p.exp); + printf("[--] VA | n_dpus=%u n_elements=%lu\n", n_dpus, input_size); } advice execution("% main(...)") : after() { - printf("[<<] VA | n_dpus=%u n_elements=%lu e_exp=%d\n", NR_DPUS, input_size, p.exp); + printf("[<<] VA | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); } }; |