-
Notifications
You must be signed in to change notification settings - Fork 206
Limited padding of segments to >=16 #1981
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
Conversation
69a6c82 to
e96f89e
Compare
|
|
Benchmark Results for unmodified programs 🚀
|
e96f89e to
a3dadbf
Compare
DavidLevitGurevich
left a comment
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.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, @pefontana, and @YairVaknin-starkware)
CHANGELOG.md line 5 at r1 (raw file):
#### Upcoming Changes - feat: Limited padding of builtin segments to >=16 [#1981](https://github.com/lambdaclass/cairo-vm/pull/1981)
why so many changes in this file?
vm/src/vm/runners/builtin_runner/mod.rs line 59 at r1 (raw file):
use super::cairo_pie::BuiltinAdditionalData; const MIN_N_INSTANCES_IN_BUILTIN_SEGMENT: usize = 0;
when will you change it to 16?
yuvalsw
left a comment
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.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, @pefontana, and @YairVaknin-starkware)
CHANGELOG.md line 5 at r1 (raw file):
Previously, DavidLevitGurevich wrote…
why so many changes in this file?
Done.
|
Previously, DavidLevitGurevich wrote…
Oops... Changed it to 0 to test something, forgot to change back |
YairVaknin-starkware
left a comment
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.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, and @pefontana)
vm/src/vm/runners/builtin_runner/mod.rs line 59 at r3 (raw file):
use super::cairo_pie::BuiltinAdditionalData; const MIN_N_INSTANCES_IN_BUILTIN_SEGMENT: usize = 16;
Doc (or maybe even assert somewhere) that this is a power of 2. Later code assumes it.
Code quote:
const MIN_N_INSTANCES_IN_BUILTIN_SEGMENT: usize = 16;
yuvalsw
left a comment
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.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, @pefontana, and @YairVaknin-starkware)
vm/src/vm/runners/builtin_runner/mod.rs line 59 at r3 (raw file):
Previously, YairVaknin-starkware wrote…
Doc (or maybe even assert somewhere) that this is a power of 2. Later code assumes it.
Done.
YairVaknin-starkware
left a comment
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.
Reviewable status: 0 of 2 files reviewed, 4 unresolved discussions (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, and @pefontana)
vm/src/vm/runners/builtin_runner/mod.rs line 61 at r4 (raw file):
const MIN_N_INSTANCES_IN_BUILTIN_SEGMENT: usize = 16; // Assert MIN_N_INSTANCES_IN_BUILTIN_SEGMENT is a power of 2.
Suggestion:
// Assert MIN_N_INSTANCES_IN_BUILTIN_SEGMENT is a power of 2.
const _: () = {
assert!(MIN_N_INSTANCES_IN_BUILTIN_SEGMENT.is_power_of_two());
};|
Also, note the CI failures. They were present before you pushed the above change, but you didn't attend to it, so just making sure you noticed. |
DavidLevitGurevich
left a comment
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.
Reviewed 1 of 1 files at r2, 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, @pefontana, @YairVaknin-starkware, and @yuvalsw)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1981 +/- ##
=======================================
Coverage 96.53% 96.53%
=======================================
Files 103 103
Lines 42612 42619 +7
=======================================
+ Hits 41135 41142 +7
Misses 1477 1477 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0d5a19c to
7206a2b
Compare
yuvalsw
left a comment
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.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @noaov1, @Oppen, @pefontana, and @YairVaknin-starkware)
vm/src/vm/runners/builtin_runner/mod.rs line 61 at r4 (raw file):
Previously, YairVaknin-starkware wrote…
Also, note the CI failures. They were present before you pushed the above change, but you didn't attend to it, so just making sure you noticed.
Done.
YairVaknin-starkware
left a comment
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.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @DavidLevitGurevich, @fmoletta, @gabrielbosio, @igaray, @juanbono, @noaov1, @Oppen, and @pefontana)
|
Hi, @yuvalsw! Please add context in the description of the PR so that we know why is this change necessary. |
noaov1
left a comment
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.
Reviewed 1 of 1 files at r6, 1 of 1 files at r8, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @fmoletta, @gabrielbosio, @igaray, @juanbono, @Oppen, and @pefontana)
TITLE
Description
Description of the pull request changes and motivation.
Checklist
This change is