-
Notifications
You must be signed in to change notification settings - Fork 170
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
Limited padding of segments to >=16 #1981
base: main
Are you sure you want to change the base?
Conversation
69a6c82
to
e96f89e
Compare
|
Benchmark Results for unmodified programs 🚀
|
e96f89e
to
a3dadbf
Compare
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?
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 |
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;
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.
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. |
TITLE
Description
Description of the pull request changes and motivation.
Checklist
This change is