-
Notifications
You must be signed in to change notification settings - Fork 80
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
perf: Dory's compute_T_vec_prime should be able to use Blitzar's fixed MSM (PROOF-876) #7
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crates/proof-of-sql/src/proof_primitive/dory/dory_vmv_helper.rs
Outdated
Show resolved
Hide resolved
jacobtrombetta
force-pushed
the
perf/compute-t-vec-blitzar-PROOF-876
branch
from
June 13, 2024 21:34
ba506b0
to
f4c8b55
Compare
crates/proof-of-sql/src/proof_primitive/dory/dory_vmv_helper.rs
Outdated
Show resolved
Hide resolved
JayWhite2357
requested changes
Jun 18, 2024
crates/proof-of-sql/src/proof_primitive/dory/public_parameters.rs
Outdated
Show resolved
Hide resolved
* remove parallel iterator because blitzar_sys::sxt_multiexp_handle does not implement a sync trait
jacobtrombetta
force-pushed
the
perf/compute-t-vec-blitzar-PROOF-876
branch
from
June 18, 2024 17:51
918a3b5
to
daa8c2a
Compare
JayWhite2357
approved these changes
Jun 19, 2024
🎉 This PR is included in version 0.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale for this change
When creating a Dory proof the
compute_T_vec_prime
function requires multiple MSMs. The current implementation of this function only supports the use of the Arkworks library, which only runs on the CPU. In an effort to improve the performance of Dory, this PR introduces the Blitzar fixed MSM tocompute_T_vec_prime
when appropriate to perform the MSM computations.The commit focusing only on performance changes is available here.
What changes are included in this PR?
compute_T_vec_prime
now supports Blitzar's fixed MSM if the feature flag"blitzar"
is turned on. The CPU version using Arkworks is still supported.transpose_column
and related functions appearing in thedory_commitment_helper_gpu
class are moved into a separate class,transpose
.blitzar_handle
to theProverSetup
.par_iter()
ineval_vmv_re.rs
because*mut blitzar_sys::sxt_multiexp_handle
cannot be shared between threads safely.Are these changes tested?
Yes, on both CPU and GPU.