-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[zk-token-proof] Round compute units to nice numbers #33910
[zk-token-proof] Round compute units to nice numbers #33910
Conversation
Codecov Report
@@ Coverage Diff @@
## master #33910 +/- ##
=========================================
- Coverage 81.9% 81.9% -0.1%
=========================================
Files 809 809
Lines 218062 218062
=========================================
- Hits 178672 178649 -23
- Misses 39390 39413 +23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - sounds a good idea 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
round zk-token-proof compute units to nice numbers (cherry picked from commit b0bf24b)
… of solana-labs#33910) (solana-labs#33915) [zk-token-proof] Round compute units to nice numbers (solana-labs#33910) round zk-token-proof compute units to nice numbers (cherry picked from commit b0bf24b) Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
… of solana-labs#33910) (solana-labs#33915) [zk-token-proof] Round compute units to nice numbers (solana-labs#33910) round zk-token-proof compute units to nice numbers (cherry picked from commit b0bf24b) Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
Problem
The compute units that are assigned to each zk-token-proof instructions are very specific numbers that are computed by benching the instructions on dev machines and assigning 1 CU per 33ns. Since these numbers are approximate anyway, it would be nicer to round off these CUs for easier communication as pointed out in #31788 (comment).
Summary of Changes
Rounded off the numbers for the zk-token-proof CUs. For the u128 range proof compute units, I went a little aggressive with the rounding since it will be really nice to fit that under the 200k compute budget limit.
Note: the zk-token-proof program has not yet been activated on any of the servers.
Fixes #