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

feat: global memory sharding #994

Merged
merged 19 commits into from
Jul 1, 2024
Merged

Conversation

tamirhemo
Copy link
Contributor

No description provided.

@tamirhemo tamirhemo changed the base branch from main to dev June 30, 2024 00:48
@tamirhemo tamirhemo marked this pull request as ready for review June 30, 2024 18:14

let a: [AB::Expr; N] = core::array::from_fn(|i| a[i].clone().into());
let b: [AB::Expr; N] = core::array::from_fn(|i| b[i].clone().into());
// a.clone().try_into().unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove

// The byte flags give a specification of which byte is `first_eq`, i,e, the first most
// significant byte for which the element `a` is smaller than `b`. To verify the
// less-than claim we need to check that:
// * For all bytes until `first_eq` the element `a` byte is equal to the `b` byte.
Copy link
Contributor

Choose a reason for hiding this comment

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

first_lt, not first_eq?

@@ -101,6 +111,22 @@ impl SP1Prover {
"non-last shard is halted",
));
}
// The previous last initialized address of the previous shard should be equal to
// the last initialized address of the current shard.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you mean previous init, not last initialized for second part

Copy link
Contributor

Choose a reason for hiding this comment

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

(code is correct, just not comment)

));
}
// The previous last finalized address of the previous shard should be equal to
// the last finalized address of the current shard.
Copy link
Contributor

Choose a reason for hiding this comment

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

similar comment here

@jtguibas
Copy link
Contributor

jtguibas commented Jul 1, 2024

Before you merge, let's coordinate on merging it into [critical-06-26](https://github.com/succinctlabs/sp1/tree/critical-06-26),

@jtguibas jtguibas changed the base branch from dev to critical-06-26 July 1, 2024 02:08
@tamirhemo tamirhemo merged commit 8fc8416 into critical-06-26 Jul 1, 2024
4 of 5 checks passed
@tamirhemo tamirhemo deleted the tamir/memory-init-sharding branch July 1, 2024 18:06
@jtguibas jtguibas restored the tamir/memory-init-sharding branch July 2, 2024 02:11
@jtguibas jtguibas deleted the tamir/memory-init-sharding branch August 20, 2024 01:44
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