diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-30 16:32:47 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-30 16:32:47 +0200 |
commit | ecf6521037c5a9340b137e3bf5df87790c33c58a (patch) | |
tree | 778fa7b9069e10aa6050f7bd896f606d4cfa9293 /VA/baselines/cpu | |
parent | f167444c7acf9d0a558b076681c821915f6781b4 (diff) |
VA: new dfatool format; -O and reproduction benchmarks
Diffstat (limited to 'VA/baselines/cpu')
-rw-r--r-- | VA/baselines/cpu/Makefile | 6 | ||||
-rw-r--r-- | VA/baselines/cpu/app_baseline.c | 9 | ||||
-rwxr-xr-x | VA/baselines/cpu/run-opti.sh | 11 |
3 files changed, 18 insertions, 8 deletions
diff --git a/VA/baselines/cpu/Makefile b/VA/baselines/cpu/Makefile index 3171e19..fb7c383 100644 --- a/VA/baselines/cpu/Makefile +++ b/VA/baselines/cpu/Makefile @@ -16,13 +16,15 @@ va_O2: app_baseline.c run: va ./va -t 4 +# -w/-e are not part of upstream config + .PHONY: run_O0 run_O0: va_O0 - ./va_O0 -t 4 + ./va_O0 -t 4 -w 1 -e 100 .PHONY: run_O2 run_O2: va_O2 - ./va_O2 -t 4 + ./va_O2 -t 4 -w 1 -e 100 .PHONY: clean clean: diff --git a/VA/baselines/cpu/app_baseline.c b/VA/baselines/cpu/app_baseline.c index 3fdc10b..1ac6c14 100644 --- a/VA/baselines/cpu/app_baseline.c +++ b/VA/baselines/cpu/app_baseline.c @@ -137,16 +137,13 @@ 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("[::] VA CPU | n_threads=%d e_type=%s n_elements=%d " + "| throughput_MBps=%f", nr_threads, XSTR(T), file_size, file_size * 3 * sizeof(T) / timer.time[0]); - printf("[::] n_threads=%d e_type=%s n_elements=%d " - "| throughput_cpu_MOpps=%f\n", + printf(" throughput_MOpps=%f", nr_threads, XSTR(T), file_size, file_size / timer.time[0]); - printf("[::] n_threads=%d e_type=%s n_elements=%d |", - nr_threads, XSTR(T), file_size); printall(&timer, 0); } } diff --git a/VA/baselines/cpu/run-opti.sh b/VA/baselines/cpu/run-opti.sh new file mode 100755 index 0000000..0a3a4a3 --- /dev/null +++ b/VA/baselines/cpu/run-opti.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +HOST="$(hostname)" + +echo $HOST + +make clean + +make run_O0 | sed 's/CPU/CPU O0/' | tee "${HOST}-O0.txt" + +make run_O2 | sed 's/CPU/CPU O2/' | tee "${HOST}-O2.txt" |