update makefiles

found possible bug in valgrind or libgomp causing deadlock when running binary compiled with '-ftree-parallelize-loops' that get successfully parallelized
master
Avril 4 years ago
parent b07b60ad6f
commit 5a7ecd7ce1
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,5 +1,5 @@
COMMON_OPT_FLAGS?= -DFROM_MAIN -march=native -flto \
-march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \
-fno-stack-check -fno-strict-aliasing

@ -1,6 +1,6 @@
OPT_FLAGS?= -march=native -flto \
-march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \
-fno-stack-check -fno-strict-aliasing

@ -1,7 +1,7 @@
SRC:= day9.c map.c
OPT_FLAGS?= -march=native -flto \
-march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \
-fno-stack-check -fno-strict-aliasing
@ -11,7 +11,7 @@ C_OPT_FLAGS=$(OPT_FLAGS)
CXX_OPT_FLAGS=$(OPT_FLAGS) -felide-constructors -fno-exceptions
LD_OPT_FLAGS?=-O3 -flto
INCLUDE=../common/include
INCLUDE?=../common/include
CFLAGS?=$(COMMON_FLAGS) $(C_OPT_FLAGS) --std=gnu11
CXXFLAGS?=$(COMMON_FLAGS) $(CXX_OPT_FLAGS) --std=gnu++20

Loading…
Cancel
Save