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

Windows support #9

Open
ViralBShah opened this issue Dec 11, 2020 · 10 comments
Open

Windows support #9

ViralBShah opened this issue Dec 11, 2020 · 10 comments
Labels
enhancement New feature or request

Comments

@ViralBShah
Copy link

Is flexiblas supported with mingw compilers on Windows? If it is known to work, I'd love to explore the use of flexiblas as the way we work with BLAS/LAPACK in Julia. Some discussion here JuliaLang/LinearAlgebra.jl#27

@Enchufa2
Copy link

I don't know about Windows compatibility, as I'm the mere downstream packager for Fedora, but I would like to highlight that Julia was one of the exceptions we had to make for this change due to the complex setup Julia has to support parallel 32/64-bit builds with prefixes, etc. For the rest of the languages (Python SciPy & Numpy, Octave, R... and the rest of the BLAS/LAPACK consumers), it works just great (see e.g., this guide for live switching in an R session). So we would be very happy if Julia considers adding support for FlexiBLAS, as it could be better integrated into Fedora.

@ViralBShah
Copy link
Author

Ah I didn't know that the change was made to accommodate Julia. That is great. We ended up picking 64-bit BLAS/LAPACK and adopting the suffixes that we noticed many other numerical software folks were doing, and to avoid inevitable crashes when people mix things. Thank you for accommodating. When I first read about FlexiBLAS, this was the first question I had - and it was already answered in the positive. :-)

We'll start with doing it in our BinaryBuilder first, and trying it out in the package ecosystem as an experiment. I am hoping the build will just work on Windows. But if it doesn't work on Windows with mingw, we won't be able to adopt it, since we have spent a huge amount of effort over the years to ensure that Julia works across Linux, Mac and Windows.

@Enchufa2
Copy link

Sorry, maybe I wasn't clear enough. What I meant is that we made the change to accomodate the whole stack of BLAS/LAPACK consumers in Fedora to use FlexiBLAS, and we had to make an exception for Julia because we couldn't make it work with FlexiBLAS in its current state. So literally everything in Fedora uses FlexiBLAS except for Julia.

@ViralBShah
Copy link
Author

Sorry, I misunderstood. It should be fairly easy to support it on Fedora. I'll plan to try it out in the next few days.

@grisuthedragon
Copy link
Member

In the early versions of FlexiBLAS I did some work with mingw cross compiling and testing it under wine. I stopped this efforts since developing for Windows is ugly and there was no demand on it. If I remember a discussion with @Enchufa2 right, it is more urgent to include the suffixed *64 symbols in the context of Julia. I plan this feature for the long winter nights and I will include wrappers around the dlsym/dlopen routines such that the corresponding windows routines can be included. That should be the first step towards a windows version.

@grisuthedragon grisuthedragon added the enhancement New feature or request label Dec 12, 2020
@ViralBShah
Copy link
Author

I agree that is the right priority. Many projects have adopted that convention, and we have urged the Intel MKL team to support that as well (but we haven't heard back).

I'm sure the Julia community will be happy to help test.

@grisuthedragon
Copy link
Member

grisuthedragon commented Dec 12, 2020

@ViralBShah
If you know something, can you comment on JuliaLang/julia#2 if you think we need the suffix support there as well? Although I am developing BLAS and LAPACK stuff since more than 10 years, julia is the project where I recognized the usage of the suffix thing.

@ViralBShah
Copy link
Author

ViralBShah commented Dec 12, 2020

Yes we use the 64_ suffix on all platforms, and we adopted it midway into the Julia project a few years ago. We had users who clearly needed the 64-bit BLAS and there were too many issues using the 64-bit BLAS by default without mangling names. You're right though that it is not a common thing, although we followed convention set in a few other projects to resolve the crashes resulting from packages expecting a 32-bit BLAS linking to our 64-bit one that Julia ships by default.

See this discussion: JuliaLang/LinearAlgebra.jl#599
JuliaLang/julia#4923

Because of the name mangling, we are able to simultaneously support both 32-bit and 64-bit BLAS/LAPACK now in our package ecosystem.

cc @andreasnoack @staticfloat

@Enchufa2
Copy link

@ViralBShah
If you know something, can you comment on JuliaLang/julia#10 if you think we need the suffix support there as well?

You probably meant JuliaLang/julia#2, right?

@grisuthedragon
Copy link
Member

@ViralBShah
If you know something, can you comment on JuliaLang/julia#10 if you think we need the suffix support there as well?

You probably meant JuliaLang/julia#2, right?

I changed it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants