-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[flang] OpenBLAS 0.3.27 (with openmp) not buildable on windows with flang 18 #86463
Comments
@llvm/issue-subscribers-flang-ir Author: None (h-vetinari)
I had been under the impression that flang had already been able to compile BLAS/LAPACK and OpenBLAS successfully (c.f. https://github.com//issues/64750, https://github.com//issues/67675, https://github.com//issues/70458).
However, while trying1 to use flang 18.1.2 to compile the latest OpenBLAS 0.3.26 (aside from from backporting a small fix due to flang 18 being stricter on unknown flags), things fail pretty early with what looks like a parsing problem...
Looking for the error message, the only open issue I've found is #61281, but that issue explicitly says "This case is OK in OpenMP". There's also #74348 (which got fixed in 18.1) and #72792 (where it's unclear when/what was fixed). Footnotes
|
Hm, this might somehow be related to #86459? |
While building OpenBLAS with flang built from main still fails, the good news is that this particular failure seems to have been resolved. Now we're failing at:
At first glance, this looks like a problem in OpenBLAS, thus I opened: OpenMathLib/OpenBLAS#4768 |
OK, so the missing |
OK, so the non-openmp build actually passed (even though it generated logs so big that I cannot seem to download them, presuambly from warning spam). So the question reduces to OpenBLAS on windows with openmp enabled. PS. ~500MB of logs, ~5.3 million lines |
How are you building flang and openmp? I wonder if #90888 could be related. |
Everything is built stand-alone but from a consistent version (or commit, in this case). I'm using indentation to indicate dependency:
That definitely sounds plausible! I could test that patch on top of our openmp builds and see if it changes anything, if that helps. |
Looking a bit closer, it could just be that we need to set |
So I managed to build |
I'm happy to report that (using a small fix to explicitly link There's some issues with the OpenMP configuration for the Fortran bits not correctly being picked up by CMake's Leaving this open for a little while longer in case there are comments, but otherwise this can be closed now. :) |
I had been under the impression that flang had already been able to compile BLAS/LAPACK and OpenBLAS successfully (c.f. #64750, #67675, #70458).
However, while trying to use flang 19.0.0 (as of edf5782) to compile OpenBLAS 0.3.27, there's a missing
omp_lib
modulePreviously:
While trying1 to use flang 18.1.2 to compile the latest OpenBLAS 0.3.26 (aside from from backporting a small fix due to flang 18 being stricter on unknown flags), things fail pretty early with what looks like a parsing problem...
Looking for the error message, the only open issue I've found is #61281, but that issue explicitly says "This case is OK in OpenMP". There's also #74348 (which got fixed in 18.1) and #72792 (where it's unclear when/what was fixed).
Footnotes
despite the title of the PR, the error here is for the case with
USE_OPENMP=0
, i.e. no OpenMP; with OpenMP I still have to fix stuff aroundOpenMP_Fortran
↩The text was updated successfully, but these errors were encountered: