mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): add calls to enable either or both parts of the runtime based on compile options used.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user