1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-26 01:54:22 +00:00

Run bench with all dataset sizes

This commit is contained in:
Steffo 2022-11-17 14:58:32 +01:00
parent c91361ba88
commit a86d078546
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 25 additions and 25 deletions

View file

@ -16,9 +16,11 @@ run_benchmarks() {
echo " Average of $runs runs: " $(awk "BEGIN{printf(\"%.3g\", $avgt)}") "seconds" echo " Average of $runs runs: " $(awk "BEGIN{printf(\"%.3g\", $avgt)}") "seconds"
} }
for c in $(seq 0 15) for dataset in MINI_DATASET SMALL_DATASET STANDARD_DATASET LARGE_DATASET EXTRALARGE_DATASET
do do
cflags="" for c in $(seq 0 15)
do
cflags="-D$dataset"
if (( $c & 1 )) if (( $c & 1 ))
then then
@ -44,4 +46,5 @@ do
make "EXTRA_CFLAGS=$cflags" clean all make "EXTRA_CFLAGS=$cflags" clean all
run_benchmarks run_benchmarks
done
done done

View file

@ -3,9 +3,6 @@
# -DPOLYBENCH_TIME makes Polybench output the execution time of the program # -DPOLYBENCH_TIME makes Polybench output the execution time of the program
CFLAGS+= -DPOLYBENCH_TIME CFLAGS+= -DPOLYBENCH_TIME
# -DLARGE_DATASET increases the size of arrays, making everything easier to profile
# Do not use EXTRALARGE_DATASET, int will overflow
CFLAGS+= -DLARGE_DATASET
# -Wall and -Wextra enable more warnings # -Wall and -Wextra enable more warnings
CFLAGS+= -Wall CFLAGS+= -Wall
CFLAGS+= -Wextra CFLAGS+= -Wextra

View file

@ -2,7 +2,7 @@
# define ATAX_H # define ATAX_H
/* Default to STANDARD_DATASET. */ /* Default to STANDARD_DATASET. */
# if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET) # if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(STANDARD_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
# define STANDARD_DATASET # define STANDARD_DATASET
# endif # endif