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

fix(raiko): make kzg work on SP1 #205

Merged
merged 5 commits into from
May 15, 2024
Merged

fix(raiko): make kzg work on SP1 #205

merged 5 commits into from
May 15, 2024

Conversation

Brechtpd
Copy link
Contributor

@Brechtpd Brechtpd commented May 14, 2024

While testing #201 yesterday I wasn't testing in the PR branch, but in my own branch with some additional changes. Turns out some of these additional changes are also required to make c-kzg work correctly on SP1:

  • have to enable the no-threads feature in c-kzg
  • have to compile with -march=rv32im -mstrict-align -falign-functions=2, not just -mstrict-align

For consistency I also made risc zero compile with the same flags because normally risc zero has the same limitations (though somehow in practice not, so maybe some extra flags are enabled somehow elsewhere).

Also made it so now block 10136 is tested locally which was the block that failed before the fix (the old one didn't require the fix somehow). It's not tested on CI because the machine doesn't have enough memory. :(

@Brechtpd Brechtpd added this pull request to the merge queue May 15, 2024
Merged via the queue into main with commit 027c3ae May 15, 2024
13 checks passed
@Brechtpd Brechtpd deleted the kzg-sp1 branch May 15, 2024 03:28
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.

2 participants