interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / MATHLIBS-GAPS-2026-11-06 / README.md

86 lines · 6714 bytes Raw Blame History Source

MathLibs gaps: Philox distributions, any-length FFT, cufftPlanMany layouts, unlocked plan walk

Date: 2026-11-06 (UTC). Branch feat/mathlibs-gaps, stacked on feat/mathlibs-rfft-2d-philox (PR #303, 10df33b). Receipts were produced from the tree committed as 199f3e9 (Philox distributions) and f2ef5ff (FFT, layouts, lock fix); the documentation commit 4299a5f changes no code.

Status: host tier PASS, simulator tier PASS, chip tier NOT_RUN (no GPU window is authorized for this lane). The ROADMAP row "cuFFT, cuRAND" stays PARTIAL.

What moved to Omega

om/mathlibs/mathlibs_ir.om (seeded unit, converted to src/cudapp_om_mathlibs_ir.c by om/units.sh) now also builds:

The C in src/omega_gpu_mathlibs_api.c validates layouts, stages buffers, scans for poison and launches what the unit emits. omega_gpu_fft_plan_walk and omega_gpu_fft_many_walk now build the plan under the session lock and call the callback after releasing it.

Toolchain

Files

Every receipt here comes from one rerun on 2026-11-06 at head 92f9aa4, each command inside bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 <cmd> (no NVIDIA device nodes inside, so a path that opened the device would fail); builds at -j3. The rerun replaced the earlier development runs, whose wrapping was not independently audited; host and sim output is line-for-line identical to them. The pre-fix reentry probe was linked against a library built from a detached worktree at 199f3e9.

FileCommandResult
host-run.txt./build/gpu_mathlibs_test --host-onlyrc 0, mathlibs host: PASS (477 checks)
sim-receipt.txt./build/gpu_mathlibs_test --simrc 0, mathlibs sim: PASS (6265 checks)
negative-control.txt./build/gpu_mathlibs_test --host-only --dist-fixture pd_bad.txt (one curand_uniform row changed, 3f6169c6 to 3f6169c7)rc 1, FAIL: philox dist 1 reference: 1 of 896 cuRAND rows disagree, mathlibs host: FAIL (1 of 477)
reentry-deadlock.txt./reentry-probe (reentry-probe.c: a plan_walk callback that calls omega_gpu_fft_twiddles)before the fix (199f3e9): killed by its 20 s alarm, rc 1; after (f2ef5ff): rc 0 in 0.012 s
wolfram-many-tolerances.txtradix constants, the curand_normal bound, the mixed-radix and Bluestein toleranceseach a Wolfram Language evaluation

The simulator tier is CUDA++'s own sm_121 warp simulator, not the chip. tests/gpu_mathlibs_test.c also carries the reentry regression (host_reentry, a forked child with an alarm) so make test would hang-fail on a regression.

What the receipts check

The twiddle-table oracle fix

The first host run failed 84 table checks, all at angles of exactly 3 pi / 2. libm's cos(2 pi k / n) gives -1.07e-15 there because 2 pi k / n is rounded first, while the unit, which folds the angle to a quadrant in integers, returns exactly 0. The test's reference now does the same integer reduction (ref_w: q = 4k / n, r = 4k - q n, theta = (pi / 2) r / n, then the rotation by q); the slack stays 1e-15. The unit was right; the oracle was not.

Limits