summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-16 16:11:08 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-16 16:11:08 +0200
commit5e1c9ee75c249c4325eed7ba691a4b83f6b6f76f (patch)
tree2aec2caabf0204128f59f1d6c12bfe0af38f45c1
parent1285259acb5513d951065a7a7cf497ca8725a033 (diff)
use distinct dfatool keys for copy types
-rw-r--r--mbw.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/mbw.c b/mbw.c
index 0087e6d..b22967e 100644
--- a/mbw.c
+++ b/mbw.c
@@ -271,7 +271,7 @@ void printout(double te, double mt)
printf("e_method=MCBLOCK ");
break;
}
- printf("| data_MiB=%f time_s=%f throughput_dram_dram_MiBps=%f\n", mt, te, mt/te);
+ printf("| data_MiB=%f time_s=%f throughput_MiBps=%f\n", mt, te, mt/te);
return;
}
@@ -472,16 +472,23 @@ int main(int argc, char **argv)
for (i=0; nr_loops==0 || i<nr_loops; i++) {
te=worker();
te_sum+=te;
- printf("[::] CPU transfer | block_size_B=%llu array_size_B=%llu ", block_size, arr_size*long_size);
+ if (test_type == TEST_MEMCPY) {
+ printf("[:::] memcpy");
+ } else if (test_type == TEST_DUMB) {
+ printf("[:::] copy");
+ } else if (test_type == TEST_MCBLOCK) {
+ printf("[:::] mcblock");
+ }
+ printf(" | block_size_B=%llu array_size_B=%llu ", block_size, arr_size*long_size);
#ifdef MULTITHREADED
printf("n_threads=%ld ", num_threads);
#else
printf("n_threads=1 ");
#endif
#ifdef NUMA
- printf("from_numa_node=%d to_numa_node=%d cpu_numa_node=%d numa_distance_dram_dram=%d numa_distance_dram_cpu=%d numa_distance_cpu_dram=%d ", numa_node_a, numa_node_b, numa_node_cpu, numa_distance(numa_node_a, numa_node_b), numa_distance(numa_node_a, numa_node_cpu), numa_distance(numa_node_cpu, numa_node_b));
+ printf("from_numa_node=%d to_numa_node=%d cpu_numa_node=%d numa_distance_ram_ram=%d numa_distance_ram_cpu=%d numa_distance_cpu_ram=%d ", numa_node_a, numa_node_b, numa_node_cpu, numa_distance(numa_node_a, numa_node_b), numa_distance(numa_node_a, numa_node_cpu), numa_distance(numa_node_cpu, numa_node_b));
#else
- printf("from_numa_node=X to_numa_node=X cpu_numa_node=X numa_distance_dram_dram=X numa_distance_dram_cpu=X numa_distance_cpu_dram=X ");
+ printf("from_numa_node=X to_numa_node=X cpu_numa_node=X numa_distance_ram_ram=X numa_distance_ram_cpu=X numa_distance_cpu_ram=X ");
#endif
printout(te, mt);
}