-
Notifications
You must be signed in to change notification settings - Fork 44
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 LogupOps for SIMD backend #641
base: 05-24-Implement_GrandProductOps_for_SIMD_backend
Are you sure you want to change the base?
Implement LogupOps for SIMD backend #641
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 05-24-Implement_GrandProductOps_for_SIMD_backend #641 +/- ##
====================================================================================
+ Coverage 92.69% 93.10% +0.40%
====================================================================================
Files 77 77
Lines 10487 10847 +360
Branches 10487 10847 +360
====================================================================================
+ Hits 9721 10099 +378
+ Misses 674 653 -21
- Partials 92 95 +3 ☔ View full report in Codecov by Sentry. |
e17f7b8
to
7ae75ab
Compare
0bfd322
to
9bc0cd3
Compare
7ae75ab
to
c7b643e
Compare
9bc0cd3
to
f81829a
Compare
c7b643e
to
1910db0
Compare
f81829a
to
307f62d
Compare
1910db0
to
0757511
Compare
307f62d
to
938026c
Compare
0757511
to
953ed1c
Compare
938026c
to
02de944
Compare
953ed1c
to
d7bd619
Compare
02de944
to
eaf89a7
Compare
d7bd619
to
5e2a76a
Compare
eaf89a7
to
a418265
Compare
5e2a76a
to
98723a9
Compare
a418265
to
9cf2f96
Compare
98723a9
to
a2588b0
Compare
9cf2f96
to
1137271
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 3 of 4 files at r1, all commit messages.
Reviewable status: 3 of 4 files reviewed, 3 unresolved discussions (waiting on @andrewmilson)
crates/prover/src/core/backend/simd/lookups/gkr.rs
line 211 at r1 (raw file):
} // TODO: Code duplication of `next_logup_generic_layer`. Consider unifying these.
Don't you want to do that in this pr?
Code quote:
// TODO: Code duplication of `next_logup_generic_layer`. Consider unifying these.
crates/prover/src/core/lookups/utils.rs
line 199 at r1 (raw file):
/// Projective fraction. #[derive(Debug, Clone, Copy)] pub struct Fraction<N, D> {
Why do you need it to be that generic?
Isn't it only for Field/ExtensionField elements?
Code quote:
Fraction<N, D>
crates/prover/src/core/lookups/utils.rs
line 272 at r1 (raw file):
denominator: self.x * rhs.x, } }
Can you add a test for this?
Code quote:
fn add(self, rhs: Self) -> Fraction<T, T> {
// `1/a + 1/b = (a + b)/(a * b)`
Fraction {
numerator: self.x + rhs.x,
denominator: self.x * rhs.x,
}
}
a2588b0
to
5a31462
Compare
1137271
to
ae6f177
Compare
5a31462
to
49955d1
Compare
ae6f177
to
6dcc038
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: 2 of 4 files reviewed, 3 unresolved discussions (waiting on @shaharsamocha7)
crates/prover/src/core/backend/simd/lookups/gkr.rs
line 211 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Don't you want to do that in this pr?
I'd want to just don't think we have the traits in order to express this function as generic
crates/prover/src/core/lookups/utils.rs
line 199 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Why do you need it to be that generic?
Isn't it only for Field/ExtensionField elements?
We don't implement Field or ExtensionOf traits on packed field elements.
If we had abstract Field/Extension traits it would work
49955d1
to
b2e7df0
Compare
6dcc038
to
eda03f0
Compare
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)