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

perf: dynamic Dory commitment computation on the GPU should efficiently handle the offset #291

Merged
merged 7 commits into from
Oct 22, 2024

Conversation

jacobtrombetta
Copy link
Contributor

Rationale for this change

Currently the dynamic Dory commitment computation on the GPU includes zeros for all offset values. This means adding a single commit with a large offset will require a significant chunk of unnecessary memory. This PR handles offsets more efficiently truncating all zero rows of the dynamic Dory structure matrix when crating the Blitzar metadata tables.

What changes are included in this PR?

  • The blitzar_metadata_tables module now truncates rows of the dynamic Dory structure matrix that are fully contained in the offset.
  • Tests are updated in the blitzar_metadata_tables module to test the new behavior.
  • The Gamma_2 value in the dynamic_dory_commitment_helper_gpu module now uses the offset.

Are these changes tested?

Yes

@jacobtrombetta jacobtrombetta marked this pull request as ready for review October 21, 2024 20:27
Copy link
Contributor

@JayWhite2357 JayWhite2357 left a comment

Choose a reason for hiding this comment

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

I want some more tests with the offsets.

@Dustin-Ray
Copy link
Contributor

@jacobtrombetta just run cargo format or the check script and then if @JayWhite2357 is good with tests we can merge

Copy link
Contributor

@JayWhite2357 JayWhite2357 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@JayWhite2357 JayWhite2357 merged commit 5f6b66f into main Oct 22, 2024
13 checks passed
@JayWhite2357 JayWhite2357 deleted the perf/improve-dyanmic-dory-offset branch October 22, 2024 04:23
Copy link

🎉 This PR is included in version 0.33.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants