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"
}
for dataset in MINI_DATASET SMALL_DATASET STANDARD_DATASET LARGE_DATASET EXTRALARGE_DATASET
do
for c in $(seq 0 15)
do
cflags=""
cflags="-D$dataset"
if (( $c & 1 ))
then
@ -45,3 +47,4 @@ do
run_benchmarks
done
done

View file

@ -3,9 +3,6 @@
# -DPOLYBENCH_TIME makes Polybench output the execution time of the program
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
CFLAGS+= -Wall
CFLAGS+= -Wextra

View file

@ -2,7 +2,7 @@
# define ATAX_H
/* 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
# endif