diff options
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" |