perf(stark): GPU transfer-residency#862
Draft
jotabulacios wants to merge 12 commits into
Draft
Conversation
Collaborator
Author
|
/bench-gpu |
GPU Benchmark (ABBA) —
|
This file contains hidden or 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
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.
GPU transfer-residency: keep composition + FRI + DEEP resident on device
Motivation
The GPU prover shipped large intermediates across PCIe every prove: the extended
composition LDE crossed the bus three times (D2H, re-upload for Merkle, re-upload
for DEEP), the FRI layer evals were copied to host for the query phase, and the
DEEP→FRI bridge did D2H + CPU bit-reverse + H2D before the first fold. The GPU
sat idle waiting on these round-trips.
Description
Keep the intermediates on the device; gather only what the openings need.
Merkle tree, R3 OOD, and R4 openings from it; drop the host D2H when a table's
DEEP inputs are all resident (others keep the host fallback). Cross-stream
ordering via a recorded "LDE-ready" event.
opening values from device instead of copying full layers to host.
first fold reads
br(2j)/br(2j+1), folding the bit-reverse into the fold andremoving the D2H + CPU bit-reverse + H2D bridge.