-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
BLD: Switch order of test for lapack_mkl and openblas_lapack #7232
Conversation
And what if you have mkl installed, but want to use openblas? |
mkl wouldn't ordinarily be installed in /usr/lib, /usr/local/lib, or any of the other places the config code searches by default, so unless you specify the mkl install path in site.cfg, it's not going to find it. But yeah, I get your point, the fact that system_info tries to "do the right thing" when site.cfg is incomplete means that it'll probably do the wrong thing under some circumstances. |
Fixing this more completely by always preferring things specified in |
|
I will send a follow-up PR with some doc improvements and cleanups, because I'm tired of re-discovering the wheel. A full rewrite isn't actually that hard and could make it much simpler, but the big problem is that there are no tests. And there's a lot of state, so just some unit tests really aren't enough. |
@rgommers So merge? I have no objections, but ISTM that one problem just gets exchanged for a less likely problem. |
BLD: Switch order of test for lapack_mkl and openblas_lapack
Yes, in it goes. Thanks @rmalouf |
Indeed. The logic still needs a makeover at some point; it should respect |
I just ran into this one - I wanted to build scipy against ATLAS on a machine with openblas installed. I believe I would have to edit |
correct. really |
The check for openblas_lapack comes before the check for lapack_mkl in lapack_opt_info. This means that if openblas is installed on the system in one of the usual places, distutils will find it and use it even when mkl is specific in site.cfg. Reverse the order, so it checks mkl's lapack first and then openblas, lets it use mkl when requested. (See #6669)