2022-11-11 12:23:45 +00:00
|
|
|
-include ../../../utilities/options.mk
|
|
|
|
-include ../../../utilities/c2.mk
|
|
|
|
|
2022-11-16 16:04:50 +00:00
|
|
|
# -DPOLYBENCH_TIME makes Polybench output the execution time of the program
|
|
|
|
CFLAGS+= -DPOLYBENCH_TIME
|
2022-11-16 00:43:59 +00:00
|
|
|
# -Wall and -Wextra enable more warnings
|
2022-11-16 16:04:50 +00:00
|
|
|
CFLAGS+= -Wall
|
|
|
|
CFLAGS+= -Wextra
|
2022-11-16 00:43:59 +00:00
|
|
|
# -O3 applies all compiler optimization, improving from 800ms to 300ms
|
2022-11-16 16:04:50 +00:00
|
|
|
CFLAGS+= -O3
|
2022-11-16 16:50:41 +00:00
|
|
|
# -DTHREAD_COUNT allows us to alter the number of threads used in the whole file
|
|
|
|
CFLAGS+= -DTHREAD_COUNT=4
|
2022-11-17 01:59:31 +00:00
|
|
|
# Extend CFLAGS with command line parameters
|
|
|
|
CFLAGS+= ${EXTRA_CFLAGS}
|
2022-11-16 16:06:16 +00:00
|
|
|
|
|
|
|
# Disable make output
|
2022-11-16 16:09:27 +00:00
|
|
|
MAKEFLAGS+= --silent
|
|
|
|
|
2022-11-17 01:59:31 +00:00
|
|
|
|
2022-11-16 16:09:27 +00:00
|
|
|
.PHONY: bench
|
|
|
|
|
|
|
|
bench:
|
2022-11-16 16:39:09 +00:00
|
|
|
./.bench.sh
|