mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-11 21:25:05 -05:00
feat(compiler): add Dataflow/RT dialect and code generation for dataflow auto parallelization.
This commit is contained in:
@@ -84,6 +84,8 @@ void CompilerEngine::setVerifyDiagnostics(bool v) {
|
||||
this->verifyDiagnostics = v;
|
||||
}
|
||||
|
||||
void CompilerEngine::setAutoParallelize(bool v) { this->autoParallelize = v; }
|
||||
|
||||
void CompilerEngine::setGenerateClientParameters(bool v) {
|
||||
this->generateClientParameters = v;
|
||||
}
|
||||
@@ -215,6 +217,13 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
|
||||
return errorDiag("Tiling of HLFHELinalg operations failed");
|
||||
}
|
||||
|
||||
// Auto parallelization
|
||||
if (this->autoParallelize &&
|
||||
mlir::zamalang::pipeline::autopar(mlirContext, module, enablePass)
|
||||
.failed()) {
|
||||
return StreamStringError("Auto parallelization failed");
|
||||
}
|
||||
|
||||
if (target == Target::HLFHE)
|
||||
return std::move(res);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user