mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-17 16:11:26 -05:00
fix(compiler): explicit global_p_error disable high error warning
This commit is contained in:
@@ -287,7 +287,9 @@ llvm::Error checkPErrorSolution(Solution solution, optimizer::Config config) {
|
||||
return StreamStringError() << "Cannot find crypto parameters";
|
||||
}
|
||||
|
||||
if (/*descr.dag &&*/ !config.display && /*naive_user &&*/
|
||||
bool naive_config = (std::isnan(config.global_p_error) &&
|
||||
config.p_error <= WARN_ABOVE_GLOBAL_ERROR_RATE);
|
||||
if (!config.display && naive_config &&
|
||||
solution.global_p_error > WARN_ABOVE_GLOBAL_ERROR_RATE) {
|
||||
llvm::errs() << "WARNING: high error rate, more details with "
|
||||
"--display-optimizer-choice\n";
|
||||
|
||||
Reference in New Issue
Block a user