Skip to content

Improve f_check when assembly has no vendor identity - #6003

Merged
martin-frbg merged 1 commit into
OpenMathLib:developfrom
jczhang07:fix-fortran-vendor-detection
Aug 30, 2026
Merged

Improve f_check when assembly has no vendor identity#6003
martin-frbg merged 1 commit into
OpenMathLib:developfrom
jczhang07:fix-fortran-vendor-detection

Conversation

@jczhang07

Copy link
Copy Markdown
Contributor

Vendor detection in f_check greps the probe assembly (ftest.s) for a compiler identity string. Some compilers, notably Intel ifx, emit no such string, so the primary case "$data" scan fails to set a vendor.

The name-based fallback only recognizes bare compiler names, so an ifx-backed wrapper (e.g. mpif90, mpifort or the Cray ftn wrapper) is not matched either, leaving the vendor empty and resulting in a false conclusion that no Fortran compilers are available.

Append the output of $compiler --version to $data so such compilers are identified by their version banner (ifx's contains "ifx", "Intel").

Vendor detection in f_check greps the probe assembly (ftest.s) for a
compiler identity string. Some compilers, notably Intel ifx, emit no
such string, so the primary `case "$data"` scan fails to set a vendor.

The name-based fallback only recognizes bare compiler names, so an
ifx-backed wrapper (e.g. mpif90, mpifort or the Cray ftn wrapper) is not
matched either, leaving the vendor empty and resulting in a false
conclusion that no Fortran compilers are available.

Append the output of `$compiler --version` to $data so such compilers
are identified by their version banner (ifx's contains "ifx", "Intel").
@martin-frbg

Copy link
Copy Markdown
Collaborator

Thank you (guess I'll also need to check why the Frankenstein f2c ?lamch fallback didn't work for you, but that may have already been fixed by the recent #5982)

@martin-frbg
martin-frbg merged commit 0156cfe into OpenMathLib:develop Aug 30, 2026
104 of 106 checks passed
@martin-frbg martin-frbg added this to the 0.3.35 milestone Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants