mirror of
https://github.com/nlohmann/json.git
synced 2026-07-09 12:05:10 +00:00
c6f532d29f
The ci_nvhpc job crashes intermittently with nvc++ 25.5's llc failing during instruction selection on std::ldexp<unsigned>, a defect in LLVM that manifests when nvc++ auto-detects certain CPU targets (particularly -tp znver4) from the GitHub Actions runner's hardware. Pinning to -tp=px (generic x86-64 baseline, SSE2-only) removes this variability and is robust to future nvc++/LLVM updates. Empirical analysis of 19+ recent ci_nvhpc runs shows the crash occurs specifically with znver4 runners; non-Zen4 runs pass cleanly, and the fix trades a bit of potential codegen performance for reliability and reproducibility. Closes: nlohmann/json#136 (todo tracking) Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Niels Lohmann <mail@nlohmann.me>