-
Notifications
You must be signed in to change notification settings - Fork 0
Native Sumcheck Layer Evaluation #8
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
|
|
||
| self.memory_bridge | ||
| .read( | ||
| MemoryAddress::new(self.address_space, register_ptrs[0] + AB::F::from_canonical_usize(EXT_DEG * 2 - 1) + curr_prod_n), |
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.
why -1 ?
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.
I see, since curr_prod_n starts from 1.
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.
The formula is rewritten to make sure it's clear the -1 is grouped with curr_prod_n. Comment added.
|
|
||
| self.memory_bridge | ||
| .read( | ||
| MemoryAddress::new(self.address_space, register_ptrs[0] + AB::F::from_canonical_usize(EXT_DEG * 2 - 1) + ctx[1] + curr_logup_n), |
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.
why -1?
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.
The formula is rewritten to make sure it's clear the -1 is grouped with curr_logup_n. Comment added.
Summary
Add a custom opcode
SUMCHECK_LAYER_EVALfor calculating layer evaluation.v'[b] = v[b,0] * v[b,1];p'[b] = p[b,0]*q[b,1] + p[b,1]*q[b,0], q'[b] = q[b,0]*q[b,1]The new added opcode supports two modes:
p[r] = eq(0,r)*p[0] + eq(1,r)*p[1].Layout
Each row is able to process 1 product sumcheck or 1 logup sumcheck.
Performance
layout for new chip
NativeSumcheck