Skip to content

Build slugs: ignore the build host's CPU in the compiler fingerprint - #2404

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:slug-drop-tp
Nov 23, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:slug-drop-tp

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Made with Claude Code.

Problem

Every case in the Phoenix Case Opt (gpu-omp) job fails on recent PRs (#2366, #2381, #2354, #2329) with syscheck failed with exit code 132. The log one line above says what happened: mpirun was unable to launch the specified application as it could not access or execute an executable. The binary is missing, not an illegal instruction.

The prebuild ran on a CPU node (atl1-1-02-010-23-2, Cascade Lake) and installed syscheck as gpu-mp-d722a95ce2. The run job on a GPU node (atl1-1-02-014-9-0, Emerald Rapids) computed gpu-mp-a4dee2d44f and found nothing there.

The slug hashes compiler_fingerprint(), which includes the first line of $FC --version (#2135). For NVHPC that line names the host CPU:

nvfortran 25.5-0 64-bit target on x86-64 Linux -tp graniterapids

So a build on one CPU type and a run on another get different slugs. It only bites when the prebuild and the run land on different CPU types.

Change

compiler_fingerprint strips -tp <cpu> from the version string. Compiler path and version still key the slug.

Checks

  • New test test_compiler_fingerprint_ignores_the_build_hosts_cpu: a fake mpifort printing the nvfortran line with -tp cascadelake, then -tp emeraldrapids. It failed before the change and passes after; test_dependency_toolchain.py passes (14 tests).
  • ./mfc.sh precheck passes.

Not checked

  • A Phoenix case-opt run with this change; this PR's own Case Opt | Phoenix job is that check.
  • NVHPC compiles host code for the build CPU by default, so a binary prebuilt on a newer CPU could now really hit SIGILL on an older run node. Today the prebuild runs on the CPU partition (Cascade Lake, the oldest), so that does not arise, but pinning -tp for CI builds would remove the dependency.

nvfortran --version ends its first line with -tp <host cpu>, so a case-opt
binary prebuilt on a Cascade Lake node got a different slug from the one
the Emerald Rapids run node looked for. The run found no syscheck and
failed (reported as exit 132) for every case.
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: b0c672f

Files changed:

  • 2
  • toolchain/mfc/build.py
  • toolchain/mfc/test_dependency_toolchain.py

Findings:
No issues found. Checked in step 4: toolchain/mfc/build.py and toolchain/mfc/test_dependency_toolchain.py.

@sbryngelson
sbryngelson marked this pull request as ready for review November 22, 2026 15:40
@sbryngelson
sbryngelson requested a review from a team as a code owner November 22, 2026 15:40
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 22, 2026 15:40
@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.14%. Comparing base (398733e) to head (b0c672f).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2404   +/-   ##
=======================================
  Coverage   66.14%   66.14%           
=======================================
  Files         112      112           
  Lines       31093    31093           
  Branches     4749     4749           
=======================================
  Hits        20567    20567           
  Misses       6675     6675           
  Partials     3851     3851           

☔ 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.

@sbryngelson
sbryngelson merged commit 0cdfdf0 into MFlowCode:master Nov 23, 2026
79 of 86 checks passed
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