Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c732488
Expose mutable lookup slots for direct witness population
gabriel-barrett Oct 20, 2026
ed65a7c
Rebuild shape-only lookup witnesses from the committed trace
gabriel-barrett Oct 31, 2026
c29720a
Merge formal-aiur/lazy-lookups into main
samuelburnham Nov 3, 2026
d13dc8d
Read spilled preprocessed traces from host in the CUDA lookup graph
samuelburnham Nov 3, 2026
0e662c5
Read fixed matrices from the preprocessed commitment for shape-only l…
samuelburnham Nov 4, 2026
b895ab4
Build host stage-two lookup traces one circuit at a time
samuelburnham Nov 4, 2026
c7fe490
Keep generated-trace commitments resident and concurrent when memory …
samuelburnham Nov 4, 2026
3de4ed5
Reserve trace writers' device workspace in commitment admission
samuelburnham Nov 4, 2026
f120089
Admit restoring released generator state before it is rebuilt
samuelburnham Nov 5, 2026
0348301
Build stage-one LDEs in a sliding window instead of fixed waves
samuelburnham Nov 5, 2026
bcf3fc8
Stop the LDE window on a panic and keep it serial without parallel
samuelburnham Nov 5, 2026
648fb13
Drop the standing quarter-device CUDA memory reserve
samuelburnham Nov 18, 2026
0797a0f
fix: Reject public values in lookup expressions at compile time
gabriel-barrett Nov 20, 2026
a4518bd
fix: Reject row selectors in lookup expressions at compile time
gabriel-barrett Nov 20, 2026
fc4336b
A5: streaming stage-2 lookup evaluation and CPU disk-backed LDE spilling
johnchandlerburnham Nov 21, 2026
5b4f87a
S0-1: alloc-free chunked quotient_values, unused row skip, fused alph…
johnchandlerburnham Nov 21, 2026
cc4f748
S0/S1-3: multi-buffer SIMD BLAKE3 Merkle, hash-before-spill, parallel…
johnchandlerburnham Nov 21, 2026
58da590
Generalize ExtensionOf/ExtensionParams for stock Plonky3 CubicTrinomi…
johnchandlerburnham Nov 22, 2026
3cedcbf
Implement Protocol v6 hardening: BLAKE3 domain separation, VK digest,…
johnchandlerburnham Nov 22, 2026
4118671
Port CUDA backend to Goldilocks F_p^3 (X^3 - X - 1), Protocol v6 BLAK…
johnchandlerburnham Nov 22, 2026
6171f18
Add comprehensive Goldilocks F_p^3 and Protocol v6 integration tests,…
johnchandlerburnham Nov 22, 2026
6625511
Let concurrent device allocators reserve memory from admission
samuelburnham Nov 22, 2026
edb031d
fix(security): enforce exact MerkleCap root counts in MMCS and before…
johnchandlerburnham Nov 22, 2026
ca241b4
fix(security): enforce MerkleCap root counts (C2) and fix M24/L9 CUDA…
johnchandlerburnham Nov 22, 2026
b32f5e6
Merge origin/formal-aiur/gpu-overlap (bcf3fc8) into jcb/v5-merkle-cap…
johnchandlerburnham Nov 22, 2026
98a0860
feat(v6-zk): implement 128-bit hiding PCS, BLAKE3-CTR salting, and CU…
johnchandlerburnham Nov 22, 2026
5ce7473
Merge jcb/v5-merkle-cap-fix (b32f5e60 / gpu-overlap) into jcb/fp3-v6-zk
johnchandlerburnham Nov 22, 2026
04b10be
fix(cuda): resolve Blackwell --features parallel,cuda clippy and test…
johnchandlerburnham Nov 23, 2026
310c5a3
feat(plonkish): support Blake3Domain derive_key mode in compact and g…
johnchandlerburnham Nov 23, 2026
2386165
feat(cuda): support multi-ary FRI folding (max_log_arity > 1) for v5,…
johnchandlerburnham Nov 23, 2026
85c4758
Merge formal-aiur/lde-admission (6625511) into jcb/fp3-v6-zk
johnchandlerburnham Nov 23, 2026
f10294e
Merge gb/lookup-selector-fix (a4518bd) into jcb/fp3-v6-zk
johnchandlerburnham Nov 23, 2026
48e6e06
fix(cuda): align v6-zk hiding PCS/MMCS and witness tests with DeviceM…
johnchandlerburnham Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ links = "multi_stark_cuda"
[workspace]

[dependencies]
blake3 = "1"
getrandom = "0.4"
tracing = "0.1"
itertools = { version = "0.14", optional = true }
rayon = { version = "1", optional = true }
Expand Down Expand Up @@ -42,7 +44,6 @@ optional = true
features = ["cuda"]

[dev-dependencies]
blake3 = "1"
criterion = "0.5"
p3-baby-bear = { git = "https://github.com/Plonky3/Plonky3", rev = "3152b14a89067c83775a8076cc262ffc48a1fd7c" }
rand = "0.10"
Expand Down
13 changes: 9 additions & 4 deletions cuda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ prover pipeline device-resident:

Large traces can be retained in pinned host memory and uploaded in bounded
windows when keeping every source matrix resident would exceed device memory.
The spill policy reserves one quarter of reported device memory by default and
uses `cudaMemGetInfo` at runtime instead of assuming a particular GPU size.
This retains the exact CPU storage layout and proof bytes.
Each phase admits its allocations against the free memory it measures at
runtime (`cudaMemGetInfo` plus the allocation pool's unused pages, which the
driver returns to new requests when it runs short) instead of assuming a
particular GPU size. Memory allocated on the device by another thread while a
phase runs is invisible to that measurement, so such an allocator holds a
`multi_stark::cuda::DeviceMemoryReservation` of its size from before the
phases it overlaps until its allocation is live. This retains the exact CPU
storage layout and proof bytes.

The ordinary `TwoAdicSubgroupDft` implementation remains available for direct
host-matrix users and transfer-inclusive microbenchmarks.
Expand Down Expand Up @@ -61,7 +66,7 @@ Useful environment variables:
- `MULTI_STARK_CUDA_DEVICE`: device used by the prover and microbenchmarks
(default: `0`; `CUDA_VISIBLE_DEVICES` remapping is also honored)
- `MULTI_STARK_CUDA_MIN_FREE_BYTES`: device headroom retained by spilling
source traces (default: one quarter of total device memory)
source traces (default: none)

Only native cubins are emitted. This avoids a newer toolkit's PTX being chosen
by a slightly older driver instead of a compatible native cubin.
Expand Down
3 changes: 3 additions & 0 deletions cuda/goldilocks.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ __device__ __forceinline__ uint64_t canonical_add(uint64_t a,uint64_t b){
if(sum<a)return sum+GOLDILOCKS_EPSILON;
return sum>=GOLDILOCKS_P?sum-GOLDILOCKS_P:sum;
}
__device__ __forceinline__ uint64_t canonical_sub(uint64_t a,uint64_t b){
return a>=b?a-b:GOLDILOCKS_P-(b-a);
}
__device__ __forceinline__ uint64_t canonical_mul(uint64_t a,uint64_t b){
const uint64_t low=a*b,high=__umul64hi(a,b),high_high=high>>32;
uint64_t reduced_low=low-high_high;
Expand Down
Loading