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

chore(gpu): improve compression tests #1571

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

pdroalves
Copy link
Contributor

@pdroalves pdroalves commented Sep 20, 2024

  • the logic was wrong when the integer is split in multiple GLWEs
  • now the test pseudo-randomly mix unsigned, signed, and booleans

closes: https://github.com/zama-ai/tfhe-rs-internal/issues/714

PR content/description

Check-list:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Relevant issues are marked as resolved/closed, related issues are linked in the description
  • Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification

@cla-bot cla-bot bot added the cla-signed label Sep 20, 2024
@pdroalves pdroalves force-pushed the pa/chore/improve_compression_test branch 2 times, most recently from 199123e to 1308197 Compare September 20, 2024 17:33
@pdroalves pdroalves force-pushed the pa/chore/improve_compression_test branch from 1308197 to 852dbea Compare September 24, 2024 13:14
@zama-bot zama-bot removed the approved label Sep 24, 2024
@pdroalves pdroalves force-pushed the pa/chore/improve_compression_test branch 4 times, most recently from c607a65 to bc516b6 Compare September 25, 2024 19:00
@pdroalves pdroalves force-pushed the pa/chore/improve_compression_test branch from bc516b6 to e4f76fd Compare September 25, 2024 19:30
- the logic was wrong when the integer is split in multiple GLWEs
- now the test pseudo-randomly mix unsigned, signed, and booleans
@pdroalves pdroalves force-pushed the pa/chore/improve_compression_test branch from e4f76fd to 1be155b Compare September 25, 2024 19:39
@pdroalves pdroalves merged commit 4bb115e into main Sep 26, 2024
33 checks passed
@pdroalves pdroalves deleted the pa/chore/improve_compression_test branch September 26, 2024 10:50
@@ -141,7 +141,7 @@ extern "C" {
gpu_count: u32,
lwe_array_out: *mut c_void,
glwe_in: *const c_void,
indexes_array: *const c_void,
indexes_array: *const u32,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the c++ entry point should be modified as well if you change this, right now it takes void*. We should always pass u32 for indexes arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants