Makefile: add flag for loop parallelisation
This commit is contained in:
parent
d52e125d9c
commit
80782a58fc
5
Makefile
5
Makefile
@ -81,6 +81,11 @@ FFLAGS += -Wfatal-errors
|
|||||||
LDFLAGS += -L$(LIBDIR)
|
LDFLAGS += -L$(LIBDIR)
|
||||||
CPPFLAGS += -DREVISION=\"$(GIT_REV)$(GIT_DIRTY)\" -DPREFIX=\"$(PREFIX)\"
|
CPPFLAGS += -DREVISION=\"$(GIT_REV)$(GIT_DIRTY)\" -DPREFIX=\"$(PREFIX)\"
|
||||||
|
|
||||||
|
ifdef PARALLEL
|
||||||
|
FFLAGS += -ftree-parallelize-loops=$(PARALLEL) -fopt-info-loop
|
||||||
|
LDFLAGS += -fopenmp
|
||||||
|
endif
|
||||||
|
|
||||||
# Sync the output from jobs running in parallel
|
# Sync the output from jobs running in parallel
|
||||||
MAKEFLAGS += --output-sync
|
MAKEFLAGS += --output-sync
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user