Skip to main content

Module logup_zerocheck

Module logup_zerocheck 

Source
Expand description

§Async frees and peak memory

Many logup/zerocheck GPU helpers allocate temporary device buffers and launch kernels. Those buffers are freed via cudaFreeAsync through the VPMM pool, so frees are only stream-ordered. If new allocations happen before the current stream is synchronized, physical peak memory can temporarily include both the old and new buffers even though MemTracker only sees the logical max. Callers that care about physical peak should ensure a current-stream sync after use (e.g. by calling to_host_on() on outputs or synchronizing the owning stream).

Structs§

FractionalInputSize
LogupZerocheckGpu

Enums§

FoldPleError
FractionalSumcheckError
InteractionGpuError
Round0EvalError
Round0PrepError
UnstackMatrixError

Functions§

fractional_sumcheck_gpu
GKR fractional sumcheck prover. See docs/cuda-backend/gkr-prover.md (repo root) for the protocol and implementation details.
make_synthetic_leaves
Generate random fractional leaves on device for benchmarking.
prove_zerocheck_and_logup_gpu