-
Notifications
You must be signed in to change notification settings - Fork 60
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
Cannot build with OpenBLAS due to missing -lpthread #63
Comments
Hi. What is the content of
As far as I understand, |
Does not work, cmake tries to interpret it instead of treating it as a string:
|
I'm sorry. We're missing the double quotes. So:
If it still does not work, I would replace -lpthread by the complete path for the pthread library. This is what I would do. If it does not work, I can install OpenBLAS to try to help you. |
Defining the variables like this leads to other issues, CMake generates an invalid Makefile, where the name of the target includes the path to the BLAS lib.
|
Thanks for the attempts. I've come up with a simple solution: cmake -D USE_OPTIMIZED_LAPACK_BLAS=ON -D BLA_VENDOR=OpenBLAS .. # configure step
cmake --build build # build step |
Building Scalapack with OpenBLAS as the optimized BLAS/LAPACK library fails, because OpenBLAS builds demand that pthread is linked, unless OpenBLAS has been built without its default shared-memory threading enabled. See below for abridged build log.
This is probably something CMake could detect, based on the build information that OpenBLAS makes available about itself, or just detect OpenBLAS and always tack on -lpthread.
The text was updated successfully, but these errors were encountered: