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:
parent
7fc2506cc7
commit
cf79cb0924
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue