Skip to content

Improve f_check when assembly has no vendor identity - #6003

Open
jczhang07 wants to merge 1 commit into
OpenMathLib:developfrom
jczhang07:fix-fortran-vendor-detection
Open

Improve f_check when assembly has no vendor identity#6003
jczhang07 wants to merge 1 commit into
OpenMathLib:developfrom
jczhang07:fix-fortran-vendor-detection

Conversation

@jczhang07

Copy link
Copy Markdown

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").
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.

1 participant