-
-
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
suite-sparse: depend on libomp
on macOS
#129100
Conversation
Upstream relies on OpenMP by default, and even warns about the lack of thread-safety without OpenMP. [1] Multiple users have also already asked for this. Fixes Homebrew#129011. [1] https://github.com/DrTimothyAldenDavis/SuiteSparse#compilation-options
Because this depends on OpenBLAS, where OpenMP is provided by GCC, it should do the same. |
That's going to be a problem for dependents, since this has C++ code, and we don't want to mix C++ standard library implementations. |
But we don't want to mix OpenMP libraries either… |
Yea, I figured that: #129011 (comment) Not really sure about the way out other than to make OpenBLAS use |
Because of #50252 (comment), I have been doing this on my own for a while (ywwry66@a47be51). And for my workflow (R user), it has been working pretty well. Apple is really giving us a hard time :( |
And there is #129512, which also fails due to mixing. |
@fxcoudert I looked at your comment again(#50252 (comment)). Has anything changed in the last 2 years? What is the status of clang + openMP these days? |
I think this is a more general issue and we should track all the packages that are build with gcc only and document why. I see two main reasons, a.) OpenMP, but that can be mostly be achieved with clang + libomp these days, b.) Fortran and OpenMP, this one is harder, but it would be work a try to build with the new |
I don't think things have changed at all since my 2020 comment. Flang is not stable / production-ready. Apple still does not ship libomp with its system compiler. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
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>
?Upstream relies on OpenMP by default, and even warns about the lack of
thread-safety without OpenMP.
Multiple users have also already asked for this.
Fixes #129011.