Add function to get information about a library that is loaded#167
Open
Add function to get information about a library that is loaded#167
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.
Contributor
Author
|
Ok, this is ready now. Here is some sample output from various libraries on my laptop: |
giordano
approved these changes
Nov 5, 2025
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Member
|
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.