Skip to content

NVHPC 25.5 GPU: chemistry species differ from CPU and NVHPC 25.11 once optimization is on; minimal reproducer needs reducing and reporting #2399

Open

Description

@sbryngelson

Tracking the investigation behind #2181 (124D7972, skipped on NVHPC < 25.11 GPU builds in #2380).

Reproducer

The uniform-box H2/air ignition test in the gas-chemistry validation PR (26 cells, constant volume, 1200 K, dt = 2e-8, 100 us, about 14 s). Max species difference from the GNU CPU run: 4.2e-4 at 40 us, 3.6e-4 at 60 us, 2.5e-4 at 100 us on an A100 with NVHPC 25.5 (OpenACC), first visible in the radicals during the induction period, density and energy agree.

Isolation so far

  • Exact match: NVHPC 25.11 GPU (also with CUDA 12.9 and without -Mfprelaxed), NVHPC 25.5 CPU, GNU, and every --debug build including 25.5 GPU (-O0 -C -Mbounds -gpu=debug) and a release build with -O0.
  • Needs -O1 or higher on the 25.5 GPU path. Not caused by -Mfprelaxed, FMA contraction, IPO, inlining of the chemistry module, or per-file -O0 on m_chemistry and m_thermochem (the last may not reach the device-code pass).
  • PTX: the floating-point instruction streams of the chemistry kernels match between 25.5 and 25.11; only control flow and stack use differ. A standalone kernel feeding 401 states along the trajectory through the MFC thermochemistry routines is bit-identical on 25.5 and 25.11 GPU, so those routines alone are not the trigger.
  • Looks like a ulp-level seed amplified by the induction period (about e-fold per 1.2 us).

Next

Per-module -O0 bisect that reaches device code; extract s_chemistry_reaction_substep with its private list and data clauses; dump the first species source vector at full precision; report to NVIDIA with the minimal reproducer. Compiler bug is likely, not proven.

AI-assisted (Claude Code).

Activity

  1. added
    bugSomething isn't working or doesn't seem right
    on Nov 22, 2026
  2. sbryngelson commented on Nov 22, 2026

    @sbryngelson
    MemberAuthor

    Related pull requests: #2180 and #2181 (Phoenix CI), #2380 (skip for NVHPC < 25.11 GPU, merged), #2374 (gas chemistry validation, open), #2202 (NVHPC 26.x, merged).

    AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or doesn't seem right

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions