feat: support GPU (bootstrapping)

This commit is contained in:
youben11
2022-07-21 14:45:28 +01:00
committed by Ayoub Benaissa
parent a487b03699
commit d169a27fc0
26 changed files with 715 additions and 47 deletions

View File

@@ -317,6 +317,14 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
return errorDiag("Optimizing Concrete failed");
}
// Transforming into GPU
if (this->compilerOptions.useGPU &&
mlir::concretelang::pipeline::transformsConcreteToGPU(mlirContext, module,
this->enablePass)
.failed()) {
return errorDiag("Transforming Concrete to GPU failed");
}
if (target == Target::CONCRETE)
return std::move(res);