From 80782a58fc60a0083a69d3f6b2839457e9c24923 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Thu, 19 Sep 2024 11:56:57 +0200 Subject: [PATCH] Makefile: add flag for loop parallelisation --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8b80ddc..93df9d6 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,11 @@ FFLAGS += -Wfatal-errors LDFLAGS += -L$(LIBDIR) 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 MAKEFLAGS += --output-sync