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

fix(gpu): fix memory error in mul #1417

Merged
merged 1 commit into from
Jul 26, 2024
Merged

fix(gpu): fix memory error in mul #1417

merged 1 commit into from
Jul 26, 2024

Conversation

agnesLeroy
Copy link
Contributor

@agnesLeroy agnesLeroy commented Jul 25, 2024

This PR fixes a memory error observed on the 4090 benchmarks:
https://github.com/zama-ai/tfhe-rs/actions/runs/10014320825/job/27703372553

PR content/description

When reusing an int_radix_lut object it is absolutely necessary to call the int_radix_lut constructor with memory reuse, otherwise it may cause memory errors.

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 Jul 25, 2024
@agnesLeroy agnesLeroy requested a review from bbarbakadze July 25, 2024 09:23
@agnesLeroy agnesLeroy added the 4090_bench Launch integer bench on our CI 4090 desktop label Jul 25, 2024
@github-actions github-actions bot removed the 4090_bench Launch integer bench on our CI 4090 desktop label Jul 25, 2024
@bbarbakadze
Copy link
Contributor

Great job finding and fixing the memory bug

@agnesLeroy agnesLeroy merged commit 4021812 into main Jul 26, 2024
140 of 144 checks passed
@agnesLeroy agnesLeroy deleted the al/fix_mul_mem branch July 26, 2024 08:50
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