-
Notifications
You must be signed in to change notification settings - Fork 371
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
fix: runtime sharding #181
Conversation
// Every `shard_size` cycles, increment shard and reset clk within the shard. | ||
if self.state.global_clk % self.shard_size == 0 && !self.unconstrained { | ||
// If there's not enough cycles left for another instruction, move to the next shard. | ||
if !self.unconstrained && max_syscall_cycles + self.state.clk >= self.shard_size * 4 { |
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.
can you leave a comment as to why the self.shard_size * 4
is the max_clk?
@@ -75,7 +77,14 @@ pub fn debug_constraints<F: PrimeField, EF: ExtensionField<F>, A>( | |||
builder.is_transition = F::zero(); | |||
} | |||
|
|||
air.eval(&mut builder); | |||
let result = catch_unwind(AssertUnwindSafe(|| { |
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.
do you mean to keep this in?
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.
yeah i think its useful
also changes
debug_constraints
to print the offending row