Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Check for known bad configurations with LLVM Flang #4180

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

mmuetzel
Copy link
Contributor

@mmuetzel mmuetzel commented Aug 5, 2023

Some features either don't compile or don't work correctly with LLVM Flang before version 17.
This PR tries to help users to avoid these known-bad configurations by emitting a message and adapting the corresponding flags.

It's still unclear if both of these known-bad configurations will actually be fixed in LLVM Flang 17 or if one of them is actually an issue that is platform-dependent (i.e., only Windows or MinGW). In the latter case, the conditions could still be adapted in the future.

The flags need to be adapted early on. At least, before system_check.cmake is included via system.cmake. That required to move the check for the Fortran compiler to earlier in the configuration process.

@mmuetzel mmuetzel changed the title CMake: Check for known bad configurations CMake: Check for known bad configurations with LLVM Flang Aug 8, 2023
@mmuetzel
Copy link
Contributor Author

Updated the PR and rebased on a current head.
Building with AVX512 still leads to failing tests with LLVM Flang 17 on Windows.

@MehdiChinoune
Copy link
Contributor

Any update with flang-18.1?

@MehdiChinoune
Copy link
Contributor

All tests pass with flang-18

@martin-frbg
Copy link
Collaborator

avx512 too ?

@MehdiChinoune
Copy link
Contributor

MehdiChinoune commented Apr 6, 2024

avx512 too ?

I don't know, I haven't passed NO_AVX512 to cmake and It builds (after applying #4616) and all tests pass.
I don't have an AVX512 PC to test on.

@martin-frbg
Copy link
Collaborator

I see - actually passing the tests on an avx512 cpu used to be the problem with recent llvm, but I will probably not get to recheck this before monday

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.

3 participants