Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

implement GpuProofConfig abstraction #37

Merged
merged 2 commits into from
Mar 5, 2024
Merged

implement GpuProofConfig abstraction #37

merged 2 commits into from
Mar 5, 2024

Conversation

robik75
Copy link
Member

@robik75 robik75 commented Feb 16, 2024

What ❔

This PR implements a GpuProofConfig abstraction to remove a dependency on CSReferenceAssembly structure.

Why ❔

Instantiation of the CSReferenceAssembly structure is expensive so we need to enable the possibility to supply the pieces of configuration the prover needs in an alternative way. This abstraction makes it possible to generate the information either from the CSReferenceAssembly structure or directly from a Circuit structure.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via cargo fmt and linted via cargo check.

Copy link

@EmilLuta EmilLuta left a comment

Choose a reason for hiding this comment

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

AFAIU, LGTM. Thanks for the version bump!

@@ -1,6 +1,6 @@
[package]
name = "shivini"
version = "0.1.0"
version = "0.2.0"

Choose a reason for hiding this comment

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

Nice!

@robik75 robik75 changed the base branch from main to v1.4.1 February 22, 2024 07:33
@robik75 robik75 force-pushed the rr-gpu-config branch 4 times, most recently from 9a8165c to c826c67 Compare March 5, 2024 08:03
@robik75 robik75 changed the base branch from v1.4.1 to v1.4.2 March 5, 2024 08:07
@robik75 robik75 merged commit d006620 into v1.4.2 Mar 5, 2024
4 checks passed
github-merge-queue bot pushed a commit to matter-labs/zksync-era that referenced this pull request Mar 5, 2024
#1100)

## What ❔

This PR removes an expensive instantiation of a CSReferenceAssembly
structure inside the FRI GPU prover.
The prerequisite is matter-labs/era-shivini#37

## Why ❔

The instantiation of a CSReferenceAssembly structure is too expensive
and needed to be replaced with a faster alternative.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
robik75 added a commit that referenced this pull request Apr 8, 2024
This PR implements a GpuProofConfig abstraction to remove a dependency
on CSReferenceAssembly structure.

Instantiation of the CSReferenceAssembly structure is expensive so we
need to enable the possibility to supply the pieces of configuration the
prover needs in an alternative way. This abstraction makes it possible
to generate the information either from the CSReferenceAssembly
structure or directly from a Circuit structure.

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `cargo fmt` and linted via `cargo
check`.
@robik75 robik75 deleted the rr-gpu-config branch June 20, 2024 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants