-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove MSVC limitation #3561
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
Remove MSVC limitation #3561
Conversation
Thank you. The assumption so far was simply that one would either use msvc or install both gcc and gfortran. (Probably need to check that NOFORTRAN gets set automatically for msvc without gfortran) |
Actually, the NOFORTRAN flag was set to NO using vspkg, but even removing that LAPACK was disabled by the BUILD_WITHOUT_LAPACK, which is automatically set for MSVC. I'm unsure if BUILD_WITHOUT_LAPACK should be removed of just set to OFF by default. What do you think? |
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.
I think the BUILD_WITHOUT_LAPACK option itself needs to stay
It seems that the pipeline (Windows_flang_cmake) hit the time limit. It compiled successfully, but was stopped around the 29th test over 115, also some tests failed. |
Yes, that failure is strange as clang/flang builds should be unaffected by your PR. (Also the failed tests are BLAS i.e. C code with only the test drivers in Fortran) Maybe the conda llvm got upgraded yesterday |
Many thanks for the clarification! Indeed, I noticed they were C-related, but I wasn't sure whether there was any side effect of the PR |
Are there any news? May I help you in any way? |
Sorry for the delay - I have been trying to figure out how your PR managed to break the Windows clang/flang CI job, although the changes it brings looked to be unrelated. |
No problem for the delay, I was just curious about how the changes involving the flag affected the compilation. Also, thank you for your time, indeed it was a really unexpected side-effect! |
Thank you for merging the pull request! I'll now update my |
Where is the script which setups/builds flang on windows? Maybe I can steal it and add it to vcpkg ;) I assume that this is flang-classic? |
We just grab the package from conda, guess you'd need to dig around in https://github.com/conda-forge/flang-feedstock/tree/main/recipe or contact @isuruf |
Hi there! I've tweaked the
CMakeFiles.txt
to allowLAPACK
to be compiled inMSVC
usingvcpkg
. Essentially I've patchedvcpkg
to provide thegfortran
compiler as default Fortran compiler.The build steps are:
vcpkg
,vcpkg install openblas
.A reproducible pipeline example can be found here.
If this pull request will be accepted, I'll update my
vcpkg
fork to this ref and submit a pull request to integrate this changes.