-
Notifications
You must be signed in to change notification settings - Fork 79
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
Implement trace generator for fibonacci. #674
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f3e308f
to
c629f7d
Compare
5d208c1
to
de2e6d8
Compare
c629f7d
to
f39cfea
Compare
de2e6d8
to
7635b6b
Compare
f39cfea
to
3aa5079
Compare
7635b6b
to
667d583
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #674 +/- ##
==========================================
+ Coverage 90.09% 90.13% +0.04%
==========================================
Files 75 76 +1
Lines 10053 10059 +6
Branches 10053 10059 +6
==========================================
+ Hits 9057 9067 +10
+ Misses 915 910 -5
- Partials 81 82 +1 ☔ View full report in Codecov by Sentry. |
3aa5079
to
673b1b3
Compare
667d583
to
3c78c05
Compare
673b1b3
to
50be746
Compare
3c78c05
to
e710e4a
Compare
50be746
to
ca2c907
Compare
e710e4a
to
0fd6240
Compare
ca2c907
to
2f0aac7
Compare
b5fcd66
to
84ef79b
Compare
2f0aac7
to
0d56bd7
Compare
84ef79b
to
2d40280
Compare
2d40280
to
6ff8f56
Compare
0d56bd7
to
93dd654
Compare
483dabf
to
45989be
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 9 of 12 files at r3, all commit messages.
Reviewable status: 9 of 12 files reviewed, 2 unresolved discussions (waiting on @alonh5 and @shaharsamocha7)
crates/prover/src/examples/fibonacci/air.rs
line 51 at r3 (raw file):
.registry .get_generator::<FibonacciTraceGenerator>("fibonacci"); // TODO(AlonH): Take instead of clone.
left by accident?
crates/prover/src/examples/fibonacci/component.rs
line 137 at r3 (raw file):
#[derive(Clone)] pub struct FibonacciTraceGenerator {
Option
crates/prover/src/examples/fibonacci/component.rs
line 172 at r3 (raw file):
registry: &mut ComponentGenerationRegistry, ) -> ColumnVec<CircleEvaluation<CpuBackend, BaseField, BitReversedOrder>> { let component = registry.get_generator_mut::<Self>(component_id);
Suggestion:
trace_generator
crates/prover/src/examples/wide_fibonacci/simd.rs
line 53 at r3 (raw file):
// TODO(AlonH): Remove this once the Cpu and Simd implementations are aligned. #[derive(Clone)]
The way to get rid of this struct is to have a separate WideFibSimdTraceGenerator and implementing TraceGenerator
crates/prover/src/trace_generation/mod.rs
line 54 at r3 (raw file):
fn write_trace(&mut self) -> Vec<CircleEvaluation<B, BaseField, BitReversedOrder>> { vec![]
temporary, right?
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: 9 of 12 files reviewed, 2 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
crates/prover/src/examples/fibonacci/air.rs
line 51 at r3 (raw file):
Previously, ohad-starkware (Ohad) wrote…
left by accident?
Yes, thanks.
crates/prover/src/examples/fibonacci/component.rs
line 137 at r3 (raw file):
Previously, ohad-starkware (Ohad) wrote…
Option
WDYM?
crates/prover/src/examples/wide_fibonacci/simd.rs
line 53 at r3 (raw file):
Previously, ohad-starkware (Ohad) wrote…
The way to get rid of this struct is to have a separate WideFibSimdTraceGenerator and implementing TraceGenerator
We will still need this struct then, it just own't implement TraceGenerator.
crates/prover/src/trace_generation/mod.rs
line 54 at r3 (raw file):
Previously, ohad-starkware (Ohad) wrote…
temporary, right?
Yes, added a TODO to remove it.
5e17a6e
to
1e0cc3d
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 1 of 12 files at r3, 2 of 3 files at r4.
Reviewable status: 11 of 12 files reviewed, all discussions resolved (waiting on @shaharsamocha7)
crates/prover/src/examples/fibonacci/component.rs
line 139 at r4 (raw file):
pub struct FibonacciTraceGenerator { log_size: Option<u32>, claim: Option<BaseField>,
Suggestion:
input: Option<FibonacciInput>
1e0cc3d
to
1e85cf1
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.
Reviewable status: 10 of 12 files reviewed, all discussions resolved (waiting on @ohad-starkware and @shaharsamocha7)
crates/prover/src/examples/fibonacci/component.rs
line 139 at r4 (raw file):
pub struct FibonacciTraceGenerator { log_size: Option<u32>, claim: Option<BaseField>,
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.
Reviewed 2 of 2 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @shaharsamocha7)
93dd654
to
f8d5799
Compare
1e85cf1
to
239af41
Compare
f8d5799
to
9bb7d3a
Compare
239af41
to
70c76e0
Compare
9bb7d3a
to
4e36e51
Compare
70c76e0
to
640151c
Compare
4e36e51
to
ddf0fe6
Compare
640151c
to
b9ac5d3
Compare
ddf0fe6
to
2ce2998
Compare
b9ac5d3
to
a12c233
Compare
a12c233
to
9b98357
Compare
This change is