-
Notifications
You must be signed in to change notification settings - Fork 465
Building blas and lapack as shared libraries #611
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
Comments
Could you try the follwing quick tweak?
$(BLASLIB): $(ALLOBJ)
$(AR) $(ARFLAGS) $@ $^
$(RANLIB) $@ by $(BLASLIB): $(ALLOBJ)
$(AR) $(ARFLAGS) $@ $^
$(RANLIB) $@
ld -shared -o ../../librefblas.so $^ in
This is not a solution, just something you can do to get a shared library quickly. It works on my Linux machine. Please, feel welcomed to submit a PR to add this functionality on LAPACK. Thanks! |
That worked to produce the librefblas.so. Thank you! For the liblapack.so...is it required to link the librefblas library? For example, does it need to be linked as such: |
One correction in my last suggestion: use
I would just use |
Sounds good to me - thanks for that! Easy enough two liner for a pull request ... could use the "how-to" there..
|
Hi, Compilatin librefblas.so was sucessfully. It is reproduces many of this information:
and finally it is end with:
In SRC/Makefile I was change:
to:
I was use: "sudo make lapacklib" command - sudo because folder ovner is root. What I was doing wrong? How to fix this? Regards! |
OK, in my case, properly solution is:
to:
to:
This should produce 4 files in lapack dir:
So we have both: static (.a) and shared(.so) libraries for BLAS and LAPACK. Regards! |
Great. Thanks for the "how-to" @boboshaq. Sounds good to me. Closing the issue now. |
Digging everywhere, there doesn't seem to be any working or consistent method for building librefblas.so and liblapack.so using make. The cmake option is not an option, as inconsistencies in the results would not classify as a production ready build process, and the currently supported process is make.
Is it possible to get some guidance on how to do this? I've seen some old examples online but none of them are working on the 3.10.0 branch.
The text was updated successfully, but these errors were encountered: