-
Notifications
You must be signed in to change notification settings - Fork 857
Fix circuit benchmarks #1686
Fix circuit benchmarks #1686
Conversation
Two benchmark tests are failing:
|
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 tried to look into the two failing benchmarks and didn't find quick solutions.
Share you some of my initial thoughts.
@@ -31,7 +31,7 @@ mod tests { | |||
let proof_gen_prfx = crate::constants::PROOFGEN_PREFIX; | |||
let proof_ver_prfx = crate::constants::PROOFVER_PREFIX; | |||
let degree: u32 = var("DEGREE") | |||
.unwrap_or_else(|_| "15".to_string()) | |||
.unwrap_or_else(|_| "26".to_string()) |
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.
It could be that 26 is too big so that it triggers the Halo2 error. We can try tweaking somewhere else.
I changed line 52 from 2usize.pow(degree),
to 2usize.pow(degree - 1),
and got a ConstraintSystemFailure instead.
We can also create a new issue to specifically fix bytecode circuit benchmark.
block.circuits_params.max_rws = 10_000; | ||
block.circuits_params.max_copy_rows = 10_000; |
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 think we have to calculate this to get a number that works. We can fix in the next PR.
@ChihChengLiang thanks for taking a look! |
fac9b8d
to
af17779
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.
LGTM.
IIUC, after this PR, we should have the rest of the benchmarks working.
Bytecode and copy circuit remain failing and will be fixed in future PRs.
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.
LGTM with the changes CC mentioned! :)
5867b5f
Description
This PR aims to get the benchmark tests running.
Issue Link
#1646
Type of change
Contents
Rationale
[design decisions and extended information]
How Has This Been Tested?