From 7720bd5223c96c5f46efc9033ec023fc4038da46 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 1 Jun 2023 08:03:59 +0200 Subject: port SEL NMC to dfatool --- SEL/baselines/cpu/Makefile | 6 ++++-- SEL/baselines/cpu/app_baseline.c | 10 +++------- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'SEL/baselines') diff --git a/SEL/baselines/cpu/Makefile b/SEL/baselines/cpu/Makefile index 02d930c..81f6d17 100644 --- a/SEL/baselines/cpu/Makefile +++ b/SEL/baselines/cpu/Makefile @@ -16,13 +16,15 @@ sel_O2: app_baseline.c run: sel ./sel -i 1258291200 -t 4 +# upstream code does not include -e 20 and does 3 iterations instead + .PHONY: run_O0 run_O0: sel_O0 - ./sel_O0 -i 1258291200 -t 4 + ./sel_O0 -i 1258291200 -t 4 -e 20 .PHONY: run_O2 run_O2: sel_O2 - ./sel_O2 -i 1258291200 -t 4 + ./sel_O2 -i 1258291200 -t 4 -e 20 .PHONY: clean clean: diff --git a/SEL/baselines/cpu/app_baseline.c b/SEL/baselines/cpu/app_baseline.c index 04a569f..6ee1cae 100644 --- a/SEL/baselines/cpu/app_baseline.c +++ b/SEL/baselines/cpu/app_baseline.c @@ -147,16 +147,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", + printf("[::] SEL CPU | n_threads=%d e_type=%s n_elements=%d " + "| throughput_MBps=%f", 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", - nr_threads, XSTR(T), file_size, + 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); } } -- cgit v1.2.3