Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1481 +/- ##
=======================================
Coverage 70.63% 70.63%
=======================================
Files 6243 6247 +4
Lines 501290 501369 +79
Branches 23516 23522 +6
=======================================
+ Hits 354100 354164 +64
- Misses 146327 146336 +9
- Partials 863 869 +6
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
|
1bab251 to
b9b102a
Compare
02f03ab to
662dea0
Compare
|
@ACSimon33 @langou Marked as ready for review, and rebased against latest |
|
@ACSimon33 @langou Rebased after various recent merges. |
|
I wonder if the documentation part of this function could/should specify how entries in this free-form name string are delimited ? As to my narrow frog-eyed view this is basically a reimplementation of openblas_get_config(), I'd like to see a single space as a legal delimiter of a simple enumeration, but ease of parsing in different languages might make an argument for something else like semicolon, fancy braces or key=value pairs ? |
|
@martin-frbg My current vision is that this is absolutely independent of any config settings, and is just intended to provide human information; hence I'm calling it "libname". I'm not sure how generally useful such a config-getting function would be; is it a "thing" for any other BLAS(-like)? |
|
To me a config getter would actually be more useful, I think. When I'm linking with MKL for example, I'm usually aware that it is MKL so just getting the library name would gain me nothing. But if it would contain more information about how it was built (is it serial, parallel, does it use vector instructions, which compiler was used, etc.), that are informations that are not that obvious from the outside. |
|
How about if I specify it's a sequence of space-separated words, with the first "word" being the name of the library (e.g. "Reference-LAPACK", and any further "words" would be individual config items? |
|
Yes, it makes sense to me to have the library name first. One issue might be if the library name itself contains spaces. MKL for example, has AOCL's I can understand that they might want to use the full name, so just requiring the name at the start of the string might be better. | We also might want to define an upper limit for the length of the string (something like 512 or 1024 chars). Then linking the test suite with other libs doesn't run over |
|
@ACSimon33 I'm starting to think it's best to have a separate My feeling about a maximum length is not to restrict it for either, but to add a second output |
Description
As discussed on #1446, this is a separate PR to add the ability for BLAS and LAPACK implementations to identify themselves in a human-consumable way, with string-returning routines. It builds on the branch from that PR, and will be left as draft until that is merged to avoid confusion.
From the Fortran side, it implements:
GET_BLAS_LIBNAMEGET_LAPACK_LIBNAMEIn C:
cblas_get_libnameLAPACKE_get_libnameThose wishing to see only the parts unique to this PR can use this link: https://github.com/mohawk2/lapack/compare/iblaver...get-libname?expand=1
Checklist