diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:12:59 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:12:59 +0200 |
commit | 0f710b4f47dfc51e3f01473995dbb6ed5844eff1 (patch) | |
tree | f4ad22c9734851a1c5a03a83e2db93b5ef343548 /UNI/baselines/cpu/app_baseline.c | |
parent | bcdc04a1e66804be8789ad3b7cd7cf9c4353a05e (diff) |
port UNI to dfatool
Diffstat (limited to 'UNI/baselines/cpu/app_baseline.c')
-rw-r--r-- | UNI/baselines/cpu/app_baseline.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/UNI/baselines/cpu/app_baseline.c b/UNI/baselines/cpu/app_baseline.c index 39f225a..f4f303f 100644 --- a/UNI/baselines/cpu/app_baseline.c +++ b/UNI/baselines/cpu/app_baseline.c @@ -32,7 +32,7 @@ static T *create_test_file(unsigned int nr_elements) { B = (T*) malloc(nr_elements * sizeof(T)); C = (T*) malloc(nr_elements * sizeof(T)); - printf("nr_elements\t%u\t", nr_elements); + //printf("nr_elements\t%u\t", nr_elements); for (int i = 0; i < nr_elements; i++) { //A[i] = (unsigned int) (rand()); //A[i] = i+1; @@ -141,16 +141,12 @@ int main(int argc, char **argv) { nr_threads++; if (rep >= p.n_warmup) { - printf("[::] n_threads=%d e_type=%s n_elements=%d " - "| throughput_cpu_MBps=%f\n", - nr_threads, XSTR(T), file_size, - file_size * 2 * sizeof(T) / timer.time[0]); - printf("[::] n_threads=%d e_type=%s n_elements=%d " - "| throughput_cpu_MOpps=%f\n", + printf("[::] UNI CPU | n_threads=%d e_type=%s n_elements=%d " + "| throughput_MBps=%f", nr_threads, XSTR(T), file_size, + file_size * sizeof(T) / timer.time[0]); + printf(" throughput_MOpps=%f", file_size / timer.time[0]); - printf("[::] n_threads=%d e_type=%s n_elements=%d | ", - nr_threads, XSTR(T), file_size); printall(&timer, 0); } } |