-
Notifications
You must be signed in to change notification settings - Fork 109
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
allocating batch inverse #977
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #977 +/- ##
==========================================
- Coverage 92.38% 92.32% -0.06%
==========================================
Files 105 105
Lines 14232 14228 -4
Branches 14232 14228 -4
==========================================
- Hits 13148 13136 -12
- Misses 1010 1018 +8
Partials 74 74 ☔ View full report in Codecov by Sentry. |
47ddd44
to
9633c54
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 all commit messages.
Reviewable status: 0 of 9 files reviewed, 1 unresolved discussion (waiting on @ohad-starkware)
crates/prover/src/core/backend/cpu/circle.rs
line 175 at r2 (raw file):
.zip(itwiddles.array_chunks_mut::<CHUNK_SIZE>()) .for_each(|(src, dst)| { batch_inverse_in_place(src, dst);
I don't think we want the in_place suffix here.
Code quote:
batch_inverse_in_place
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 9 files reviewed, 1 unresolved discussion (waiting on @shaharsamocha7)
crates/prover/src/core/backend/cpu/circle.rs
line 175 at r2 (raw file):
Previously, shaharsamocha7 wrote…
I don't think we want the in_place suffix here.
here or in general?
this can be made to use the chunked batch inverse after it's merged up the stack
I do need to expose both interfaces because we are batch inversing constant sized array so a -> vec interface is not sufficient
9633c54
to
8aee306
Compare
d0a0209
to
f55a84a
Compare
8aee306
to
7bc346b
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 5 of 9 files at r2.
Reviewable status: 5 of 9 files reviewed, 4 unresolved discussions (waiting on @ohad-starkware)
crates/prover/src/core/fields/mod.rs
line 39 at r2 (raw file):
/// Assumes dst is initialized and of the same length as column. fn batch_inverse_classic<T: FieldExpOps>(column: &[T], dst: &mut [T]) {
Consider to state somehow that this is relevant for the in_place variant
Suggestion:
/// Assumes dst is initialized and of the same length as column.
fn batch_inverse_in_place_slow<T: FieldExpOps>(column: &[T], dst: &mut [T]) {
crates/prover/src/core/fields/mod.rs
line 99 at r2 (raw file):
// TODO(Ohad): chunks, parallelize. pub fn batch_inverse<F: FieldExpOps>(column: &[F]) -> Vec<F> {
Can we test this instead of directly batch_inverse_in_place?
Code quote:
pub fn batch_inverse<F: FieldExpOps>(column: &[F]) -> Vec<F> {
crates/prover/src/core/backend/cpu/mod.rs
line 109 at r2 (raw file):
} // TODO(Ohad): remove.
why?
Code quote:
// TODO(Ohad): remove.
crates/prover/src/core/backend/cpu/quotients.rs
line 135 at r2 (raw file):
} CM31::invert_many(&denominators)
rename as discussed
Code quote:
CM31::invert_many
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: 5 of 9 files reviewed, 4 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
crates/prover/src/core/backend/cpu/mod.rs
line 109 at r2 (raw file):
Previously, shaharsamocha7 wrote…
why?
weird location for this test
crates/prover/src/core/backend/cpu/quotients.rs
line 135 at r2 (raw file):
Previously, shaharsamocha7 wrote…
rename as discussed
Done.
crates/prover/src/core/fields/mod.rs
line 39 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Consider to state somehow that this is relevant for the in_place variant
it's a subroutine (not pub)
crates/prover/src/core/fields/mod.rs
line 99 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Can we test this instead of directly batch_inverse_in_place?
done.
7bc346b
to
3ae5d1d
Compare
3ae5d1d
to
b0d17cb
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 9 files at r2, 6 of 6 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ohad-starkware)
No description provided.