feat(compiler/gpu): Integrate gpu crypto optimization

This commit is contained in:
Quentin Bourgerie
2022-10-14 17:48:43 +02:00
committed by Ayoub Benaissa
parent a5047586f4
commit d934553950
4 changed files with 15 additions and 4 deletions

View File

@@ -198,6 +198,10 @@ llvm::Error CompilerEngine::determineFHEParameters(CompilationResult &res) {
return llvm::Error::success();
}
CompilationFeedback feedback;
// Make sure to use the gpu constraint of the optimizer if we use gpu
// backend.
compilerOptions.optimizerConfig.use_gpu_constraints =
compilerOptions.emitGPUOps;
auto v0Params = getParameter(descr.get().value(), feedback,
compilerOptions.optimizerConfig);
if (auto err = v0Params.takeError()) {