1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2025-02-16 17:13:57 +00:00

Improve makefile flags

This commit is contained in:
Steffo 2022-11-16 17:04:50 +01:00
parent 7fc2506cc7
commit cf79cb0924
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,10 +1,15 @@
-include ../../../utilities/options.mk
-include ../../../utilities/c2.mk
# Do not use EXTRALARGE_DATASET, int will overflow
# -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
# -fopenmp enables OpenMP
# Do not use EXTRALARGE_DATASET, int will overflow
CFLAGS+= -DLARGE_DATASET
# -Wall and -Wextra enable more warnings
CFLAGS+= -Wall
CFLAGS+= -Wextra
# -O3 applies all compiler optimization, improving from 800ms to 300ms
CFLAGS+= -O3
# -g3 enables some useful debug things
CFLAGS= -DLARGE_DATASET -fopenmp -Wall -Wextra -O3 -g3
CFLAGS+= -g3