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"
|
||||
}
|
||||
|
||||
for c in $(seq 0 15)
|
||||
for dataset in MINI_DATASET SMALL_DATASET STANDARD_DATASET LARGE_DATASET EXTRALARGE_DATASET
|
||||
do
|
||||
cflags=""
|
||||
for c in $(seq 0 15)
|
||||
do
|
||||
cflags="-D$dataset"
|
||||
|
||||
if (( $c & 1 ))
|
||||
then
|
||||
|
@ -44,4 +46,5 @@ do
|
|||
make "EXTRA_CFLAGS=$cflags" clean all
|
||||
|
||||
run_benchmarks
|
||||
done
|
||||
done
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue