Skip to content

Keep modular arithmetic state on the GPU - #54

Merged
QiuYe-QAQ merged 11 commits into
mainfrom
qy/gpu-resident-modpow-bigdeci
Aug 30, 2026
Merged

QiuYe-QAQ merged 11 commits into
mainfrom
qy/gpu-resident-modpow-bigdeci

Conversation

@QiuYe-QAQ

@QiuYe-QAQ QiuYe-QAQ commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • reuse BigDeci significand scratch and keep CUDA failure fallback inside MPFR
  • add shared-budget GPU-resident modular arithmetic with odd Montgomery and even Barrett reduction
  • keep modulus, constants, exponent, accumulator, intermediates, and sliding-window table on one CUDA stream
  • select window width from calibrated NTT multiply/square costs
  • verify odd/even and exponent-density cases through existing public API harnesses
  • cache remote CUDA toolkit installs for iterative Native validation

Validation

  • six-platform Native matrix
  • Linux and Windows x86-64 CUDA artifact builds
  • existing public API tests and CudaVerify only; no new test files
  • RTX 3050 remote-artifact checks with zero CPU fallback for resident NTT cases
  • no local Native build

@QiuYe-QAQ
QiuYe-QAQ requested a review from a team as a code owner August 30, 2026 22:29
@QiuYe-QAQ QiuYe-QAQ added type: feature New feature or enhancement ci:native Run the six-platform native build matrix labels Aug 30, 2026
@github-actions github-actions Bot added the Tests: Passed All tests passed label Aug 30, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit 3f23bd0 into main Aug 30, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:native Run the six-platform native build matrix Tests: Passed All tests passed type: feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant