diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-03-08 16:28:19 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-03-08 16:29:11 +0100 |
commit | 647f975a38816f025c5758de931e2b698ba1244e (patch) | |
tree | 2555d7aba2dc9207c915606d5ab9862941ad71c3 /SCAN-RSS | |
parent | 51347235f2a4b8f9d987ede6da76527cb13d7fb7 (diff) |
SCAN-RSS: log n_ranks
Diffstat (limited to 'SCAN-RSS')
-rw-r--r-- | SCAN-RSS/host/app.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/SCAN-RSS/host/app.c b/SCAN-RSS/host/app.c index b0be68b..32cd6f2 100644 --- a/SCAN-RSS/host/app.c +++ b/SCAN-RSS/host/app.c @@ -61,14 +61,13 @@ int main(int argc, char **argv) { struct dpu_set_t dpu_set, dpu; uint32_t nr_of_dpus; + uint32_t nr_of_ranks; #if ENERGY struct dpu_probe_t probe; DPU_ASSERT(dpu_probe_init("energy_probe", &probe)); #endif - printf("WITH_ALLOC_OVERHEAD=%d WITH_LOAD_OVERHEAD=%d WITH_FREE_OVERHEAD=%d\n", WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD); - // Timer declaration Timer timer; @@ -80,6 +79,7 @@ int main(int argc, char **argv) { #if !WITH_LOAD_OVERHEAD DPU_ASSERT(dpu_load(dpu_set, DPU_BINARY, NULL)); DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); + DPU_ASSERT(dpu_get_nr_ranks(dpu_set, &nr_of_ranks)); assert(nr_of_dpus == NR_DPUS); timer.time[1] = 0; // load #endif @@ -128,6 +128,7 @@ int main(int argc, char **argv) { stop(&timer, 1); } DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); + DPU_ASSERT(dpu_get_nr_ranks(dpu_set, &nr_of_ranks)); assert(nr_of_dpus == NR_DPUS); #endif @@ -311,8 +312,8 @@ int main(int argc, char **argv) { } if (status) { printf("[" ANSI_COLOR_GREEN "OK" ANSI_COLOR_RESET "] Outputs are equal\n"); - printf("[::] SCAN-RSS UPMEM | n_dpus=%d n_tasklets=%d e_type=%s block_size_B=%d b_unroll=%d n_elements=%d", - NR_DPUS, NR_TASKLETS, XSTR(T), BLOCK_SIZE, UNROLL, input_size); + printf("[::] SCAN-RSS UPMEM | n_dpus=%d n_ranks=%d n_tasklets=%d e_type=%s block_size_B=%d b_unroll=%d n_elements=%d", + NR_DPUS, nr_of_ranks, NR_TASKLETS, XSTR(T), BLOCK_SIZE, UNROLL, input_size); printf(" b_with_alloc_overhead=%d b_with_load_overhead=%d b_with_free_overhead=%d ", WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD); printf("| latency_alloc_us=%f latency_load_us=%f latency_cpu_us=%f latency_write_us=%f latency_kernel_us=%f latency_sync_us=%f latency_read_us=%f latency_free_us=%f", |