Skip to content

Add GPU Utilities for new HintBridge#40

Merged
darth-cy merged 2 commits intofeat/hint_bridgefrom
feat/hint_bridge_gpu
Mar 9, 2026
Merged

Add GPU Utilities for new HintBridge#40
darth-cy merged 2 commits intofeat/hint_bridgefrom
feat/hint_bridge_gpu

Conversation

@darth-cy
Copy link

@darth-cy darth-cy commented Mar 9, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 HintSpaceProviderChipGpu in the native GPU prover extension prior to NativeSumcheckChipGpu to 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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@darth-cy darth-cy merged commit a8de5c3 into feat/hint_bridge Mar 9, 2026
5 of 33 checks passed
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