Add low-level wrappers for BLAS and LAPACK #1386
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@ViralBShah I was at the Householder Symposium last week and had a discussion with Julien Langou (@langou), the main maintainer of reference-LAPACK, about what we’re doing in Julia for BLAS / LAPACK and our nice LBT feature.
Some feedback I got is that Julien doesn’t understand why we don’t expose all the arguments of the BLAS / LAPACK routines, and why we took the liberty of fusing
om*
/un*
routines but notsy*
/he*
.What I concluded with Julien is that we should maybe expose the low-level wrappers directly and call them from our higher-level interfaces.
This would make it easier to update with new releases and would also give users the ability to reuse buffers, which is currently a significant limitation of our API.
I also think it would help Julien interact more easily with us.
He’s starting to get interested in using Julia for unit testing reference-LAPACK and teaching!
A few months ago, I wrote a script to generate wrappers for Fortran routines implemented in F77 (for HSL), and I was able to adapt it for BLAS / LAPACK.
It is similar to what we obtain with
Clang.jl
from the C header files.I open the PR as a draft for now to get feedback.