audit: check Accelerate linkage for core formulae#6130
audit: check Accelerate linkage for core formulae#6130MikeMcQuaid merged 1 commit intoHomebrew:masterfrom jonchang:audit-accelerate
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Makes sense, thanks @jonchang!
|
Nice! N.B., however, that Should I change this to make an exception for veclibfort? Or should we end up removing veclibfort? (I do not favor removal, personally.) |
Yes, please |
|
Good point. I think adding an exception is probably the best idea. Want to file a follow up? I can do it later this week as well. |
|
@MikeMcQuaid I think this is actually a bit too strict. There are cases in which users may want to link accelerate, as it provides more than just linear algebra. https://developer.apple.com/documentation/accelerate I think instead we should check for linkage against veclibfort and lapack. (Veclibfort is specifically for BLAS/LAPACK provided through Accelerate, and lapack reference implementation is old and minimally maintained and outdated.) I can open a new PR with this. I hit an instance in core where a package links to Accelerate, seemingly for reasons other than linear algebra: Homebrew/homebrew-core#39418 |
|
I'm tempted to add |
|
In fact, both tests could apply on linux too. 1) veclibfort should not be ported to linux (hopefully this is already true) and 2) lapack is outdated/crusty on linux also. |
- Accelerate provides more than just BLAS and LAPACK functionality, see https://developer.apple.com/documentation/accelerate - Veclibfort exists only to wrap Accelerate's BLAS/LAPACK - LAPACK is a slow, seldom updated reference implementation - Encourage usage of OpenBLAS - Reverts PR Homebrew#6130
brew stylewith your changes locally?brew testswith your changes locally?In concert with Homebrew/homebrew-core#39809, Homebrew/homebrew-core#39226, and Homebrew/homebrew-core#37898 (comment); this new audit will check core tap formulae for undesired linkage against system Accelerate.
No new tests written since none exist for this file.