Skip to content
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

Remove next references in lookups / permutations #2141

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

georgwiese
Copy link
Collaborator

Currently, when we run the Goldilocks RISC-V machine with --linker-mode bus results in:

Double application of "'" on: main_binary::operation_id because of #2140. This PR hot-fixes it, so we can run benchmarks using the bus. Only adds 3 witness columns (1 in binary, 2 in shift).

@georgwiese georgwiese marked this pull request as ready for review November 25, 2024 10:41
Schaeff
Schaeff previously approved these changes Nov 25, 2024
@Schaeff Schaeff added this pull request to the merge queue Nov 25, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 25, 2024
Currently, when we run the Goldilocks RISC-V machine with `--linker-mode
bus` results in:

`Double application of "'" on: main_binary::operation_id` because of
#2140. This PR hot-fixes it, so we can run benchmarks using the bus.
Only adds 3 witness columns (1 in binary, 2 in shift).
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2024
@leonardoalt
Copy link
Member

Tests fail

Comment on lines 183 to 189
#[cfg(feature = "estark-polygon")]
#[test]
#[ignore = "Too slow"]
fn vec_median_estark_polygon() {
let case = "vec_median";
verify_riscv_crate(case, &[5u64, 11, 15, 75, 6, 5, 1, 4, 7, 3, 2, 9, 2], true);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test appears to be identical to vec_median!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but it was made a separate test because it runs in its own job, it's the only riscv test that's run with estark-polygon

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning I dont think we should remove it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I undid it!

I'm not sure I understood this though, if they are the same, why can't we run the other one with the estark-polygon feature? Could be nice to add a comment about that as well.

Anyway, not the topic of this PR...

@@ -69,7 +73,7 @@ pub fn verify_riscv_asm_string<T: FieldElement, S: serde::Serialize + Send + Syn
pipeline.rollback_from_witness();
let executor_trace: Vec<_> = execution.trace.into_iter().collect();
let pipeline = pipeline.add_external_witness_values(executor_trace);
test_plonky3_pipeline::<T>(pipeline);
test_mock_backend(pipeline);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives much better error messages.

@georgwiese georgwiese mentioned this pull request Nov 26, 2024
@leonardoalt leonardoalt added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit f1db48d Nov 26, 2024
14 checks passed
@leonardoalt leonardoalt deleted the remove-next-references branch November 26, 2024 08:36
leonardoalt pushed a commit that referenced this pull request Nov 26, 2024
Currently, when we run the Goldilocks RISC-V machine with `--linker-mode
bus` results in:

`Double application of "'" on: main_binary::operation_id` because of
#2140. This PR hot-fixes it, so we can run benchmarks using the bus.
Only adds 3 witness columns (1 in binary, 2 in shift).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants