Add GPU Utilities for new HintBridge#40
Merged
darth-cy merged 2 commits intofeat/hint_bridgefrom Mar 9, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds CUDA/GPU support for the HintSpaceProvider periphery chip used by the new HintBridge, enabling GPU-side trace generation for the hint space provider table and registering the chip in the GPU prover extension.
Changes:
- Added a
#[cfg(feature = "cuda")]GPU chip wrapper (HintSpaceProviderChipGpu) that uploads accumulated(hint_id, offset, value)triples to the GPU and invokes a CUDA tracegen kernel. - Registered
HintSpaceProviderChipGpuin the native GPU prover extension prior toNativeSumcheckChipGputo respect dispatch ordering. - Added CUDA ABI bindings and a new CUDA kernel implementation (
hint_space_provider.cu) for trace generation.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| extensions/native/circuit/src/hint_space_provider.rs | Adds CUDA-only GPU chip wrapper that drains CPU-collected hint records and generates the provider trace on GPU. |
| extensions/native/circuit/src/extension/cuda.rs | Registers the GPU hint space provider chip in the native GPU prover extension (ordering relative to sumcheck). |
| extensions/native/circuit/src/cuda_abi.rs | Adds FFI bindings for the hint space provider CUDA tracegen entrypoint. |
| extensions/native/circuit/cuda/src/hint_space_provider.cu | Implements the CUDA kernel to write provider trace rows from uploaded triples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.