Answers are grounded in this paper and cite their sources.
PRIM v01 is kernel 01 of the ALADIN native-cylindrical GPU MHD Driver for Z-pinch and J×B research. It converts the conserved state (ρ, m, E) and the constrained-transport face magnetic field into primitive variables (ρ, v, p). It is one CUDA/C++ source that runs on the GPU through NVRTC and on the CPU through g++/OpenMP, in FP64 and FP32. What PRIM provides: A pressure error bound in every cell. PRIM returns b with |p − p_exact| ≤ b·p. The bound is derived by rounding-error analysis, with its assumptions stated, and verified numerically against an 80-bit oracle in both the normal and the subnormal range. A cell is flagged UNRESOLVED when p keeps fewer than 3 significant digits, as happens at low plasma β. Refusal instead of floors. Three kinds of cell are refused, with NaN outputs and a flag: non-positive density or any non-finite input; total energy below kinetic plus magnetic energy; finite inputs whose intermediates overflow. The adiabatic index must satisfy 1 < γ ≤ 2. An explicit flag policy for the Driver, consistent with HLLD v05.1. A consistent cell-centred field. It is the constrained-transport face average, the same one HLLD v05.1 and UCT-EMF v02 use. Bit-identical GPU and CPU results, including the subnormal range. An inverse, conserved(), which converts primitive variables back to the conserved state. Results (campaign PRIM-01, run 4): GPU leg (NVIDIA L4) 17 / 17 VERIFIED; CPU leg 11 / 11 VERIFIED. compute-sanitizer: 0 errors and 0 hazards. The pressure bound is never exceeded. The worst case uses 0.32 of the bound over 758 733 normal-range cells (ρ from 1e-8 to 1e8, β from 1e-12 to 1e6) and 0.29 over 375 k underflow-range cells. Every velocity is the correctly rounded m/ρ. Refusal is exact and local, and overflow is refused. GPU = CPU bit for bit, in the normal and the subnormal range. The README normalised Z-pinch is recovered to 1.1e-16, and HLLD fed with PRIM’s output keeps exact balance. In FP32, p keeps 3 digits only down to β ≈ 1e-4; in FP64, down to β ≈ 1e-12. Development record: publication review of run 1 led to overflow refusal, γ validation, underflow terms in the bound and the written derivation (run 2). Run 2 then failed in FP32 on the GPU. Diagnosis traced the failure to CuPy’s RawModule, which appends -ftz=true after user options and so flushes FP32 subnormals whatever the user passes. Run 4 compiles through NVRTC directly and checks the PTX. All runs and probes are preserved. The bundle contains the kernel, the independent oracle, the campaign with predeclared thresholds, both legs’ results, the sanitizer logs, the Driver adapter, the README benchmark, the full history, and the verification report. Author: Mihai Alexandru Bucurenciu (ALADIN), ORCID 0009-0006-4457-557X.
No takes yet. Share an insight, caveat, or question.
Mihai Alexandru Bucurenciu (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: