-
Notifications
You must be signed in to change notification settings - Fork 23
Add function to get information about a library that is loaded #167
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
base: main
Are you sure you want to change the base?
Conversation
There is no way to get a version directly from Apple Accelerate (separate from the LAPACK version), but we can at least detect the backend is accelerate by looking for an Apple-only symbol.
|
Ok, this is ready now. Here is some sample output from various libraries on my laptop: |
giordano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🎉
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
|
This looks great (although I am looking at the output not reviewing the source code where I have little to add). Would it be useful to also try and detect LAPACKE? Also, not relevant here, but it would be helpful to report how many forwards out of the whole list are detected (as in % of coverage). |
It can be useful to get information about the underlying BLAS library that is being used to capture its version, and also which dynamic architecture is being used (for libraries that provide that information).
This is a bit of a mess implementation wise, because every library provide information differently, and with different APIs. This function outputs a single string that contains the library information (independent of how/if the library actually provides it).
This is done as a separate lookup function instead of going in the library info struct to preserve the API/ABI of those elements. In the future, this can be exposed through the Julia BLAS/LBT module and included in the printing of the LBT config.
I am raising this as a draft right now because there are no tests yet, so I still need to add those.