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

Generalized Barrett Reduction #68

Merged
merged 11 commits into from
Sep 27, 2021
Merged

Generalized Barrett Reduction #68

merged 11 commits into from
Sep 27, 2021

Conversation

fboemer
Copy link
Contributor

@fboemer fboemer commented Sep 24, 2021

Switch the EltwiseMultMod implementation to "Generalized Barrett modular reduction" (Algorithm 2).

Largely, the implementation is unchanged. However, we now have a stronger certainty that the approximate modular reduction is at most off by one from the true modulus. That is, the "while" condition from Algorithm 1 is now the "if" condition of Algorithm 2 with certainty.

@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer changed the title Fboemer/mult mod test Generalized Barrett Reduction Sep 24, 2021
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer deployed to intel_workflow September 24, 2021 19:19 Active
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer marked this pull request as ready for review September 24, 2021 20:01
@fboemer fboemer requested a review from a team as a code owner September 24, 2021 20:01
Copy link
Contributor

@GelilaSeifu GelilaSeifu left a comment

Choose a reason for hiding this comment

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

This is great.

Copy link
Contributor

@hamishun hamishun left a comment

Choose a reason for hiding this comment

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

LG

@fboemer fboemer merged commit 2520a51 into main Sep 27, 2021
@fboemer fboemer deleted the fboemer/mult-mod-test branch September 27, 2021 15:17
fboemer added a commit that referenced this pull request Nov 8, 2021
Switch to generalized Barrett reduction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants