-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
openblas: try clang build #131296
openblas: try clang build #131296
Conversation
This won't work as-is, because We would either need to patch some Thoughts here, @Homebrew/core? I'm personally in favour of this change, along with using |
I guess, alternatively, we could try building with |
What is the benefit? It would be adding a dependency, and requiring us to hack the build, but I do not clearly see the gain. Also, how does that impact dependents? Specially those that rely on the Fortran OpenMP, which isn't available in libomp (but is part of libgomp). |
Can we use |
It doesn't seem like that with my local
Adding one more reason:
LLVM |
I've outlined some benefits above, but to make it more explicit: currently, building OpenBLAS with GCC means that any formula, particularly ones with dependents, with C++ code effectively has to choose between using OpenBLAS or OpenMP. If you need to use both (which seems to be the case for Unless we can build |
I see recommendations for Or maybe rebuilding
Not sure if this is possible. You can force linkage with LLVM Clang's
I think Conda Forge has done something similar. Not familiar with reading their recipes, but they may have drop-in replaced Ref: https://conda-forge.org/docs/maintainer/knowledge_base.html#switching-openmp-implementation |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?