-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Windows builds #46
Comments
One options for a BLAS / LAPACK on Windows might be ATLAS. I believe this is what the NumPy PyPI wheels files use on Windows. These will not give optimal performance on may systems but may be "good enough". |
Actually OpenBLAS has pretty good support for Windows. It provides Alternatively (and maybe this is what we should do) is use MSYS2/gcc to build on Windows. This would allow AT&T assembly and Fortran to be used. There are concerns raised in the referenced thread about UCRT compatibility with MinGW-w64. Though it remains unclear how important these are generally vs for OpenBLAS alone. When talking with @mingwandroid, it sounded like we may not need to worry about this at all. Though I don't really understand the issues well enough to say and it still seems like others are concerned. So those are the main options for OpenBLAS. Please feel free to weigh in on which one is used. |
Yes, if MSYS2/gcc is an option on Windows I would be in favor of that options. My recollection is the with the C implementation, i.e. without assembly, the performance of OpenBLAS is significantly diminished. I'm a bit concerned about the UCRT issue, especially on Python 3.5 and 3.6, but I do not understand the details enough to voice anything more than concern. |
|
Hmm...that's a good point. Though we should still be able to build NumPy with MSVC. Would the file streams point be a concern with SciPy (given things in |
I suspect so, the problematic file will be |
Is there some way to mix and match MSVC and MinGW-w64? Perhaps just use the Fortran compiler from MinGW-w64 and otherwise use MSVC when building SciPy. Does this even make sense or is this just a recipe for disaster? |
I've just check the language distribution of scipy with sloccount. There is no fortran code in |
IIRC this was discussed a while ago, as an alternative to MingwPy. It's possible in theory but required quite a bit of work (can't remember what exactly). Right now the only options are:
|
Do you happen to have any references to this discussion? |
Can't find anything public - @cournape had experimented with having gfortran interface directly with MSVC, maybe he can comment. |
The idea was based on the precept that scipy used very little of the fortran runtime, which was true 7 years ago, I don't know about now. |
I don't think a whole lot changed on that front in the last 7 years. We haven't added many new Fortran extensions, the only one I can think of is |
@rgommers If you are really experimental and adventurous you could perhaps use the compiler at https://github.com/flang-compiler/flang (it's an LLVM fork of the PGI compiler) with somehing like:
to generate COFF and then use the MSVC linker. |
@rolk based on recent feedback from the Flang devs it's not yet Windows compatible (they do seem interested, but no concrete plans yet). Would be really great if someone started work on that, but that won't be me. |
Done in #77 |
Currently
conda-forge
does not build NumPy on Windows. I'm guessing this is due to OpenBLAS's poor support of the platform.The text was updated successfully, but these errors were encountered: