From eeb3ba87350631ff3ffb0a4b258d06949eba1470 Mon Sep 17 00:00:00 2001 From: Antoniu Pop Date: Thu, 19 May 2022 16:14:03 +0100 Subject: [PATCH] fix(compiler): add calls to enable either or both parts of the runtime based on compile options used. --- compiler/lib/Support/CompilerEngine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/lib/Support/CompilerEngine.cpp b/compiler/lib/Support/CompilerEngine.cpp index 67a5d1b92..9da028caf 100644 --- a/compiler/lib/Support/CompilerEngine.cpp +++ b/compiler/lib/Support/CompilerEngine.cpp @@ -217,6 +217,12 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) { return std::move(res); } + if (loopParallelize) + mlir::concretelang::dfr::_dfr_set_use_omp(true); + + if (dataflowParallelize) + mlir::concretelang::dfr::_dfr_set_required(true); + if (!mlirModuleRef) { return errorDiag("Could not parse source"); }