Makefile: add flag for loop parallelisation

This commit is contained in:
Michele Guerini Rocco 2024-09-19 11:56:57 +02:00 committed by rnhmjoj
parent d52e125d9c
commit 80782a58fc
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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