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

Update tfhe-rs-bool-emitter: cggi to tfhe-rs-bool fpga ready code #569

Merged
merged 1 commit into from Mar 29, 2024

Conversation

WoutLegiest
Copy link
Collaborator

  • Update the tfhe-rs-bool emitter to now emit working FPGA tfhe-rs-bool code
  • Remove the and_packed operations
  • Update the tests to work with the new emitted code and the removal of the packed operations

@WoutLegiest WoutLegiest requested review from j2kun and asraa March 27, 2024 20:27
@WoutLegiest WoutLegiest self-assigned this Mar 27, 2024
Copy link

google-cla bot commented Mar 27, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@@ -165,29 +168,70 @@ void TfheRustBoolEmitter::emitAssignPrefix(Value result) {
os << "let " << variableNames->getNameForValue(result) << " = ";
}

void TfheRustBoolEmitter::emitReferenceConversion(Value value) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: could you also add a quick assertion here that the value element type is a EncryptedUint (or maybe add this to the doc-string in the header file that it's expected to run on shaped types of encrypted values?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The tfhe-rs-bool emitter only produces EncryptedBools
I added an additional check

@WoutLegiest WoutLegiest added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Mar 29, 2024
@copybara-service copybara-service bot merged commit ef52e8d into google:main Mar 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants