Skip to content

Test: skip 124D7972 on NVHPC < 25.11 GPU builds (known difference, #2181) - #2380

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:test-skip-nvhpc255-gpu-chem
Nov 21, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:test-skip-nvhpc255-gpu-chem

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Summary

Adds an explicit, narrowly scoped expected-difference skip to the test harness for 124D7972 (2D -> Chemistry -> IBM -> Injecting Body -> Coarse Ignition), tracked on #2181. Tolerances are NOT widened and no golden file changes.

The skip applies only when all of these hold: a GPU build (--gpu acc|mp), FC --version reports nvfortran, and its version is below 25.11. An unparsable version, another compiler, a CPU build, or NVHPC >= 25.11 all run the test as before. Each skipped case prints a visible line: skipped 124D7972 (...): known difference on NVHPC < 25.11 GPU, see #2181, and counts in the skipped total.

Why: the Phoenix CI pins nvhpc/25.5, and this one test fails there deterministically (var 287 of D/cons.1.00.000060.dat: 0.245725 vs golden 0.244511, relative 5e-3 vs tolerance 1e-3), which keeps the Phoenix test lanes red and hides other regressions. A smaller uniform-box reproducer shows the same class of difference (species up to 4e-4, 25.5 GPU only); see the comments on #2181. Not caused by -Mfprelaxed, FMA, optimization level, or CUDA toolkit; the root cause (NVHPC 25.5 GPU codegen/runtime) is not identified.

Build 124D7972
NVHPC 25.5 GPU (A100, H200, V100; acc and omp) fails
NVHPC 25.11 GPU passes
NVHPC 25.5 CPU (GitHub NVHPC 25.5 (cpu) lanes) passes

This reduces NVIDIA coverage of one chemistry test on the pinned Phoenix compiler until #2181 is resolved. The data lives in one constant (NVHPC_GPU_KNOWN_DIFFERENCE_UUIDS in toolchain/mfc/test/test.py), so removing the entry restores the test. A later PR (#2374, test 009447E8) will add its own entry; it is not on master and is not added here.

Testing

  • Unit test of the decision function (toolchain/mfc/test/test_nvhpc_known_difference.py): 25.5 and 24.5 GPU skip; 25.11 and 26.1 do not; unparsable and empty version, CPU build, gfortran, a Cray-style version line, and other UUIDs do not skip. 11 passed.
  • ./mfc.sh precheck passes (run by the commit hook).
  • On a wingtip NVIDIA machine, the real __filter was driven with a patched ARG and the real FC --version probe: NVHPC 25.5 with --gpu acc and --gpu mp skip with the reason line; NVHPC 25.5 CPU, NVHPC 25.11 GPU and CPU, and FC=gfortran --gpu acc keep the test selected.

Not verified

  • No full test run, and no Phoenix CI run: chemistry builds take about 90 minutes, so the end-to-end effect on the Phoenix lanes is unconfirmed.
  • Phoenix sets FC to the HPC-X mpifort wrapper; the version probe is FC --version, which for NVHPC's wrapper reports the nvfortran line, but I did not run that exact wrapper.
  • Other tests that may fail on NVHPC 25.5 GPU are not covered.

This PR was made with Claude Code (AI).

@sbryngelson

Copy link
Copy Markdown
Member Author

Verified on Phoenix: the CI environment sets FC to $NVHPC_ROOT/comm_libs/mpi/bin/mpifort, and with the NVHPC compiler directory on PATH that wrapper's --version prints nvfortran 25.5-0 64-bit target on x86-64 Linux -tp graniterapids, which is the line the version check reads. So the skip fires on the Phoenix GPU lanes.

AI-assisted (Claude Code).

@sbryngelson
sbryngelson marked this pull request as ready for review November 21, 2026 18:45
@sbryngelson
sbryngelson requested a review from a team as a code owner November 21, 2026 18:45
@sbryngelson
sbryngelson requested review from danieljvickers and removed request for a team November 21, 2026 18:45
@sbryngelson
sbryngelson merged commit 9063820 into MFlowCode:master Nov 21, 2026
22 of 32 checks passed
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: 2427de3

Files changed:

  • 3
  • docs/documentation/testing.md
  • toolchain/mfc/test/test.py
  • toolchain/mfc/test/test_nvhpc_known_difference.py

Findings:

  • medium toolchain/mfc/test/test.py: The version probe uses os.environ["FC"]. If a cluster sets FC to a wrapper such as mpifort or ftn, --version may not print nvfortran .... The regex then fails and the skip never applies, so the known-different case runs and fails on GPU with NVHPC 25.5. The docs say it is skipped on old nvfortran. This is low confidence, because the Phoenix modules probably set FC=nvfortran. If that is not the case, the regex should also accept the nvfortran banner that wrappers print, or the docs should state the assumption.

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.78%. Comparing base (4264341) to head (2427de3).
⚠️ Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2380      +/-   ##
==========================================
+ Coverage   65.72%   65.78%   +0.05%     
==========================================
  Files         111      111              
  Lines       30549    30586      +37     
  Branches     4673     4681       +8     
==========================================
+ Hits        20079    20120      +41     
+ Misses       6699     6677      -22     
- Partials     3771     3789      +18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant