summaryrefslogtreecommitdiff
path: root/SEL/baselines
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-06-01 08:03:59 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-06-01 08:03:59 +0200
commit7720bd5223c96c5f46efc9033ec023fc4038da46 (patch)
treedd3a199013dfc5ea583cf93f657dd9976c63ebe0 /SEL/baselines
parent0540fa9e26e2c8e7e11fcf3e5444e4981f811e1c (diff)
port SEL NMC to dfatool
Diffstat (limited to 'SEL/baselines')
-rw-r--r--SEL/baselines/cpu/Makefile6
-rw-r--r--SEL/baselines/cpu/app_baseline.c10
2 files changed, 7 insertions, 9 deletions
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);
}
}