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

No repeated primes in the limb moduli for CKKS #793

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

dsuponitskiy
Copy link
Collaborator

@dsuponitskiy dsuponitskiy commented Jun 5, 2024

  1. Make sure that the vector of moduliQ in ParamsGenCKKSRNS() has no duplicate values.
  2. Push error handling to the top of the function
  3. Reorganize code and replace usint with uint32_t
  4. Add unit tests

@dsuponitskiy dsuponitskiy added the bug Something isn't working label Jun 5, 2024
@dsuponitskiy dsuponitskiy added this to the Release 1.2.0 milestone Jun 5, 2024
@dsuponitskiy dsuponitskiy self-assigned this Jun 5, 2024
@dsuponitskiy dsuponitskiy linked an issue Jun 5, 2024 that may be closed by this pull request
Copy link
Collaborator

@andreea-alexandru andreea-alexandru left a comment

Choose a reason for hiding this comment

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

Please add a unit test checking for small firstModSize = scalingModSize and for small firstModSize = scalingModSize + 1.

@dsuponitskiy You should be able to convert the examples from https://openfhe.discourse.group/t/crashes-with-specific-parameter-setting-in-ckks/1252/4 into unit tests

@dsuponitskiy dsuponitskiy force-pushed the 766-repeated-primes-in-the-moduli-for-ckks branch 2 times, most recently from 14391f7 to 151ef85 Compare June 12, 2024 17:17
Copy link
Collaborator

@andreea-alexandru andreea-alexandru 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 to me.

@dsuponitskiy dsuponitskiy force-pushed the 766-repeated-primes-in-the-moduli-for-ckks branch from 9101e87 to c5449ae Compare June 13, 2024 23:26
@yspolyakov yspolyakov merged commit 6b801f8 into dev Jun 17, 2024
26 checks passed
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.

Ensure there are no repeated primes in the limb moduli for CKKS
4 participants