-
Notifications
You must be signed in to change notification settings - Fork 7
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
flexiblas fails to find OpenBLAS and blis, despite them being installed, but finds atlas and Accelerate #40
Comments
Configure logs: |
Above logs are relevant for OpenBLAS but not for
CMakeOutput.log |
Since macOS isn't my default Default development platform, it will take some days to get rid of the error. Can you provide some information to reproduce your environment? Intel/Arm Mac, macports or brew and how (including options) you installed openblas and blis. |
@grisuthedragon Thank you for responding! Everything is Macports, and I maintain For the time-being, please ignore OpenBLAS issue. I just got it recognized on 10.6 PPC (where it failed initially) after switching to a different version, so the error may be on our side.
Systems tested: 10.6 / |
@grisuthedragon Ok, I have found a fix for Perhaps the only remaining question is whether it is correct that only |
Can you provide me the names and locations of the different OpenBLAS shared objects? I do not have a mac at available. |
@grisuthedragon If you click on Files on the right on the following page, it will show the list with paths: https://ports.macports.org/port/OpenBLAS/details |
So the macports variant of OpenBLAS is fixed with respected to threading. It seems that it only provides one version. |
It does not seem we have any local fixes with regard to threading: https://github.com/macports/macports-ports/blob/master/math/OpenBLAS/Portfile This port tracks upstream: https://ports.macports.org/port/OpenBLAS-devel/details (with some delay). |
As far as I understand the portfile, you are builing the Pthreads version of OpenBLAS (This is the default if nothing different). Thus it would be correct, that FlexiBLAS only finds the |
@grisuthedragon Sorry to resurrect this, but
However it is not accepted:
Others are okay:
CMake configure log has this:
|
That looks like something in the BLIS library provided by macports changed. I'll try to take a look on this. |
@grisuthedragon At least not by intention. The last update was trivial: macports/macports-ports@7ce24d7 Before that there was an rpath fix which actually made it work with FlexiBLAS earlier. Nothing in between: https://github.com/macports/macports-ports/commits/master/math/blis/Portfile There was a change to linearalgebra PortGroup (which is actually slightly wrong but a better fix not yet merged) related to Also, we can see that FlexiBLAS does find |
I can try removing the port group completely, I am not sure we actually need it at all. |
UPD. Sorry, turned out |
@grisuthedragon There were no updates for the Specifically, here are differences on my machine:
vs
FlexiBLAS update on our side was trivial, no added or dropped patches or configure arguments. However, right now I reverted to FlexiBLAS 3.3.1, and it does not accept I would have suggested that it is my local issue on a PowerPC machine (which is not a standard MacPorts set-up), but I tried on macOS Sonoma with a standard MacPorts environment with Clang, and got the same outcome, So it looks like it is not a problem of FlexiBLAS, of Admittedly, I did not try every possible combo on two machines, but I tried to rule out deterministic breakages due to factors which changed in between a successful and unsuccessful builds. |
For the reference, configure from Sonoma:
|
Can you check if the following functions are available in your blis shared object?
If I compiler blis 1.0 under linux I get:
and regarding your configure output, these are missing in your blis shared object. |
This is on 14.5 arm64:
Something fails to take account of a leading underscore? |
This is on 10.6 ppc:
|
The leading underscores comes from the macOS ABI, thus this is fine and correctly translated as shown in your logs above. The linker line says:
So can you give me the output of |
I do not think it installs such a library:
|
By the way, two versions are not identical with these symbols.
vs 1.0:
But this is perhaps orthogonal to the issue discussed, since the same 0.9.0 does not work now either on my machine. |
The BLIS check only uses the "old" symbols. Thus the ones added in 1.0 do not have any influence on the check. I checked the behavior with the 1.0 on Linux and threre everything works fine. I try to organize myself a mac to test reproduce the problem. Can you compile and link the following program against BLIS
|
@grisuthedragon Looks like yes:
|
@barracuda156 That looks good and the values should be sufficient to find BlisPthread. |
So what should we do to make configure work? :) (Perhaps a silly fix of removing a check and forcing linking may do, but hopefully it can be fixed in a proper way.) |
@grisuthedragon Any update on this? I cannot update FlexiBLAS in MacPorts until this is somehow resolved (preferable here in upstream but at least locally in MacPorts otherwise). |
The text was updated successfully, but these errors were encountered: