Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate multDepth as a cryptocontext parameter #612

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

dsuponitskiy
Copy link
Collaborator

No description provided.

@dsuponitskiy dsuponitskiy added the bug Something isn't working label Dec 5, 2023
@dsuponitskiy dsuponitskiy self-assigned this Dec 5, 2023
@dsuponitskiy dsuponitskiy added this to the Release 1.1.2 milestone Dec 5, 2023
Copy link
Collaborator

@caesaretos caesaretos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenFHE is unlikely able to support more than ~100-200 multiplicative depths, and we better not claim that OpenFHE supports it (as the message implies). The upper limit 1000 has no scientific basis and better not be printed out to the user.

Something along the following message would be more meaningful.
"The multiplicative depth of entered_val may not be computationally feasible. Please try a smaller depth, such as 30, to improve performance"

Copy link
Collaborator

@caesaretos caesaretos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@dsuponitskiy dsuponitskiy merged commit 62044f6 into dev Dec 6, 2023
1 check passed
@dsuponitskiy dsuponitskiy deleted the 576-segfault-when-multiplicativedepth-is-negative branch December 13, 2023 18:40
@dsuponitskiy dsuponitskiy restored the 576-segfault-when-multiplicativedepth-is-negative branch December 13, 2023 18:40
@yspolyakov yspolyakov deleted the 576-segfault-when-multiplicativedepth-is-negative branch December 20, 2023 15:27
gong-cr pushed a commit to gong-cr/openfhe-development that referenced this pull request Mar 6, 2024
* Validate multDepth as a cryptocontext parameter

* Rephrased the error message for multiplicative depth

---------

Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault when MultiplicativeDepth is set to a value less than 0
3 participants