Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch to check -
cmake/GPU.cmake:186-207does add-march=nativeto every Fortran target in Release, and nvfortran accepts the flag (rc 0), soCHECK_FORTRAN_COMPILER_FLAGsucceeds and it lands on the command line afterCMAKE_Fortran_FLAGS. But measured on nvfortran 25.5,-tpwins over a later-march=nativerather than the other way round.Same subroutine,
-O3 -fast, object disassembled:-tp=px-tp=zen3-march=native-tp=px -march=native-march=nativeon its own reproduces-tp=zen3exactly on this Zen 3 host, so it is honoured rather than ignored - but combined with-tp=pxthe emitted ISA profile is identical to-tp=pxalone. So the baseline is not defeated here.Worth adding what the same measurement says about whether this PR would help at all: neither target emits AVX-512 on this host (
zmmcount 0 for both), and-tp=pxstill emitsymm, so "px" is not an SSE2 baseline. It caps the ISA rather than eliminating vectorisation, which is the relevant part - a build host with AVX-512 would emitzmmunder native tuning and those are the instructions an older node would fault on.That said, #1865 excludes the offending node directly, at no performance cost and following the existing
node_excludeprecedent, so it is the better immediate fix. This PR is the systemic version and carries a real cost (Phoenix Bench numbers will move), so it should probably wait on whether the exclusion holds.