mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-23 00:24:23 +00:00
23 lines
595 B
Makefile
23 lines
595 B
Makefile
-include ../../../utilities/options.mk
|
|
-include ../../../utilities/c2.mk
|
|
|
|
# -DPOLYBENCH_TIME makes Polybench output the execution time of the program
|
|
CFLAGS+= -DPOLYBENCH_TIME
|
|
# -Wall and -Wextra enable more warnings
|
|
CFLAGS+= -Wall
|
|
CFLAGS+= -Wextra
|
|
# -O3 applies all compiler optimization, improving from 800ms to 300ms
|
|
CFLAGS+= -O3
|
|
# -DTHREAD_COUNT allows us to alter the number of threads used in the whole file
|
|
CFLAGS+= -DTHREAD_COUNT=4
|
|
# Extend CFLAGS with command line parameters
|
|
CFLAGS+= ${EXTRA_CFLAGS}
|
|
|
|
# Disable make output
|
|
MAKEFLAGS+= --silent
|
|
|
|
|
|
.PHONY: bench
|
|
|
|
bench:
|
|
./.bench.sh
|