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

combining OpenBLAS with LAPACK #203

Closed
boegel opened this issue Mar 22, 2013 · 5 comments
Closed

combining OpenBLAS with LAPACK #203

boegel opened this issue Mar 22, 2013 · 5 comments
Labels

Comments

@boegel
Copy link
Contributor

boegel commented Mar 22, 2013

At first, I thought that OpenBLAS only provided BLAS functionality, but to my surprise the libopenblas.a library also provide LAPACK functionality.

Can you shed some light on what exactly OpenBLAS provides? Does it contain fully-featured LAPACK functionality, or only bits and pieces that were optimized?

Do you still need to build LAPACK and link with it if you require full LAPACK? And if you still need -llapack, in what order should they be linked? lopenblas -llapack, to ensure that the optimized LAPACK functions in OpenBLAS are found first by the linker?

Is this documented somewhere? I only could find a small hint on the wiki w.r.t. OpenBLAS providing some (?) LAPACK functionality.

I've also noticed that the OpenBLAS Makefile automatically download LAPACK. Is there any option to provide it the desired LAPACK tarball somehow, e.g. because the system you're building on can't go online?
If not, I'd be interested in adding that feature in the Makefile, since I require it. ;)

@samueljohn
Copy link

I think it downloads the latest lapack reference implementation during build. There it's complete, I assume. But my last update was that lapack functions are not optimized, aren't they?

@boegel
Copy link
Contributor Author

boegel commented Mar 22, 2013

It download LAPACK yes, but does it include all of it in libopenblas.a? That's really not clear to me right now...

@boegel
Copy link
Contributor Author

boegel commented Mar 22, 2013

#182 has a related dicussion, which seems to suggest that libopenblas.a only offers some parts of LAPACK (see #182 (comment)). It's not fully clear though, at least to me.

@boegel
Copy link
Contributor Author

boegel commented Mar 22, 2013

OK, I think I figured it out...

You can make OpenBLAS build without including LAPACK in it, by specifying NO_LAPACK=1 on the make command line. By default, it includes a full LAPACK lib (with some parts optimized).

@xianyi
Copy link
Collaborator

xianyi commented Apr 8, 2013

I think I can close it.

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

No branches or pull requests

3 participants