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-PHILOX-RFFT-ND-2026-11-06 / wolfram-constants-and-tolerances.txt

50 lines · 2854 bytes Raw Blame History
1Wolfram Language evaluations (Wolfram MCP WolframLanguageEvaluator), MathLibs lane, 2026-11-06.
2
3Philox4x32-10 constants
4 FromDigits["D2511F53",16] -> 3528531795 (M0)
5 FromDigits["CD9E8D57",16] -> 3449720151 (M1)
6 FromDigits["9E3779B9",16] -> 2654435769 (W0)
7 FromDigits["BB67AE85",16] -> 3144134277 (W1)
8 Table[Mod[r*2654435769, 2^32], {r,0,9}] -> {0,2654435769,1013904242,3668340011,2027808484,387276957,3041712726,1401181199,4055616968,2415085441}
9 Table[Mod[r*3144134277, 2^32], {r,0,9}] -> {0,3144134277,1993301258,842468239,3986602516,2835769497,1684936478,534103459,3678237736,2527404717}
10 2^32 - 2^27 -> 4160749568
11
12FFT error bounds (normwise relative error against an f64 DFT; u = 2^-24, f32 round to nearest)
13 u=2^-24; mu=2u+10^-15; g2=2u/(1-2u); eta=Sqrt[2] g2 (1+mu)+mu; n4=Floor[lg/2]; n2=Mod[lg,2];
14 bb[n] = (1+u)^(2 n4+n2) (1+eta)^(n4+n2-1) - 1 (Stockham radix-4/radix-2 complex FFT of n = 2^lg points)
15 rr[n] = Sqrt[n] (n+10) 2^-53 / (1 - (n+10) 2^-53) (error of the f64 reference DFT)
16 c = u + eta (1+u); kk = Sqrt[u^2+c^2] + Sqrt[2] u (1+c) -> 4.367712960e-7 (one split/merge butterfly, twiddle rounded)
17 er[m] = 2 bb[m/2] + Sqrt[2] kk (1 + bb[m/2]) (R2C of m reals: m/2-point complex FFT then split)
18 ec[m] = bb[m/2] (1 + Sqrt[2] kk) + Sqrt[2] kk (C2R: merge then m/2-point complex FFT)
19 tol[e, r] = (e + r) / (1 - r)
20 nd[dims] = tol[Product[1+bb[d]] - 1, Product[1+rr[d]] - 1] (one 1-D pass per axis; transposes are exact copies)
21
22 Derivation of er/ec: with S the split map, ||S D|| <= 2 ||D|| for an error D in the half-length transform Z;
23 ||Z|| <= ||X_half|| <= Sqrt[2] ||Z||; the rounding of the split itself is at most Sqrt[2] kk ||Z||. C2R inverts the
24 roles (merge first, its rounding Sqrt[2] kk, then the complex FFT).
25
26 n R2C tol[er[n],rr[n]] C2R tol[ec[n],rr[n]]
27 8 8.561065560e-7 7.368972629e-7
28 16 1.550909633e-6 1.084298912e-6
29 32 1.670119030e-6 1.143903636e-6
30 64 2.364922423e-6 1.491305459e-6
31 128 2.484131961e-6 1.550910301e-6
32 256 3.178935896e-6 1.898312525e-6
33 512 3.298146214e-6 1.957918122e-6
34 1024 3.992952496e-6 2.305322551e-6
35 2048 4.112168690e-6 2.364934000e-6
36 4096 4.806991727e-6 2.712355043e-6
37
38 dims nd tolerance
39 {4,4} 2.384186066e-7
40 {8,16} 9.928263778e-7
41 {32,64} 1.806839531e-6
42 {16,2048} 2.620863531e-6
43 {2048,4} 2.213856570e-6
44 {4,4,4} 3.576279313e-7
45 {4,8,16} 1.112035792e-6
46 {16,16,16} 1.578647047e-6
47 {8,4,32} 1.459437580e-6
48
49These are the constants FFT_TOL / R2C_TOL / C2R_TOL / ND_SHAPES in tests/gpu_mathlibs_test.c; the 1-D complex table
50(bb with rr) is the one of evidence/MATHLIBS-RNG-FFT-2026-10-27/wolfram-constants.txt, recomputed and unchanged.