Work

ALADIN UCT_CURL v1.4: Current Density J = ∇×B to 2 Machine Epsilon, GPU = CPU Bit-for-Bit, for Native-Cylindrical Z-Pinch MHD

Year: 2026
Type: article
Abstract: ALADIN UCT_CURL v1.4 is the current-density kernel (slot 09, J = ∇×B, μ0 = 1) of the ALADIN native-cylindrical GPU MHD Driver v4.0 for Z-pinch and J × B research. J feeds the Lorentz force, the Hall and resistive EMFs and Ohmic heating. Highlights• README Z-pinch (B_φ = r/2): |J_z − 1| = 4.4e-16 = 2 ε in FP64 and 2.4e-7 = 2 ε in FP32, with J_r = J_φ = 0 exactly, the same bits on GPU and CPU. The stencil reproduces this field exactly, so what remains is pure floating-point rounding. On general fields the accuracy is second order (v1.3 campaigns).• GPU = CPU bit for bit: 0 differing values out of 764 514 (223 842 test values including subnormal FP32 fields, plus 540 672 values from the Driver's own resistive + Hall run), FP64 and FP32.• In Driver v4.0 the resistive + Hall run (SMK-00 S7) went from 6.7e-16 GPU vs CPU to 0. With HLLD v05.2 (Zenodo 24408600), all three Driver smoke-test trajectories are now bit-identical on GPU and CPU. What v1.4 changes. Only the build and the dispatch; the stencil source is byte-identical to the certified v1.3.• CPU: the stencil's own CUDA source compiled with g++ (-ffp-contract=off), replacing a NumPy re-implementation whose different operation order left differences of up to 2.7e-20.• GPU: NVRTC directly with -fmad=false -ftz=false -prec-div=true -prec-sqrt=true (the previous cupy.RawKernel build contracted operations into fused multiply-adds, giving differences of up to 4.2e-15); PTX checked free of .ftz.• run_curl(backend="cpu" | "cupy" | "auto") now obeys the backend the Driver asks for; v1.3 used the GPU whenever CuPy was installed.These issues were found by the Driver's kernel-wise GPU-vs-CPU probe (KW-00). Verification (NVIDIA L4 and x86-64 g++ 13.3): campaign CURL-06, 17 of 17 VERIFIED.• 11 new tests.• The full v1.3 suite, unmodified, on CPU and GPU: 041–049 PASS, and the campaigns 01–04 regression 40/40 on every backend. Test 050 reports FAIL for exactly one reason, its source-hash guard, which accepts only the v1.3 file; this is stated in full in the report.• compute-sanitizer memcheck, racecheck and initcheck: clean. Scope. This release certifies the kernel. ALADIN Driver v4.0 itself is not certified here: its campaign DRV-01 is pending. Bitwise GPU = CPU agreement is verified on an NVIDIA L4 against x86-64 g++ 13.3; other hardware is expected but not tested. Included: the source, the v1.3 reference, campaigns 01–06, raw CPU and GPU results, sanitizer logs, the frozen Driver states, the README benchmark output, the 10-page verification report and SHA256SUMS. Author: Mihai Alexandru Bucurenciu (ALADIN), ORCID 0009-0006-4457-557X.AI assistant Team: SuperGrok, Claude, ChatGPT
Language: English
Open Access status: green
OpenAlex ID: W7236704211
FWCI:
Cites:
Cited by:
Related to: 10