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:
parent
c91361ba88
commit
a86d078546
3 changed files with 25 additions and 25 deletions
|
@ -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 dataset in MINI_DATASET SMALL_DATASET STANDARD_DATASET LARGE_DATASET EXTRALARGE_DATASET
|
||||||
|
do
|
||||||
for c in $(seq 0 15)
|
for c in $(seq 0 15)
|
||||||
do
|
do
|
||||||
cflags=""
|
cflags="-D$dataset"
|
||||||
|
|
||||||
if (( $c & 1 ))
|
if (( $c & 1 ))
|
||||||
then
|
then
|
||||||
|
@ -45,3 +47,4 @@ do
|
||||||
|
|
||||||
run_benchmarks
|
run_benchmarks
|
||||||
done
|
done
|
||||||
|
done
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue