-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
build/pkgs/openblas: Stop openblas from using explicit make -j N
; but use make -j 1
on ubuntu-trusty
#36671
Conversation
This gets rid of the excessive
Entering the build container shows:
Looks like we are running into the ancient bug https://savannah.gnu.org/bugs/?15919 ("Make-3.81 rc1 hangs with -j 2 but not with -j 1") |
….81 (ubuntu-trusty)
make -j1
on ubuntu-trusty
make -j1
on ubuntu-trusty
make -j N
; but use make -j 1
on ubuntu-trusty
Doesn't by itself succeed in fixing the concurrency bugs described in #34899. On fedora-38-minimal (https://github.com/mkoeppe/sage/actions/runs/6779033300/job/18425466208) I see
Also failing on fedora-39-minimal
|
…ed in separate make invocations
Documentation preview for this PR (built with commit 6d1a957; changes) is ready! 🎉 |
Let's get this in please. |
On OS X, this slows down the |
Is this with setting |
Yes, |
# Ensure USE_TLS=1 ; see https://github.com/sagemath/sage/issues/27256 | ||
OPENBLAS_CONFIGURE="$OPENBLAS_CONFIGURE USE_TLS=1" | ||
|
||
if ! (sdh_make libs netlib shared $OPENBLAS_CONFIGURE); then | ||
if ! (sdh_make libs $OPENBLAS_CONFIGURE && sdh_make netlib $OPENBLAS_CONFIGURE && sdh_make shared $OPENBLAS_CONFIGURE); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to separate the make
targets like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change appears to fix the build failures mentioned in #36671 (comment)
And does |
The machine doesn't act sluggish, but "Activity Monitor" shows a lot of CPU activity. Without this PR, I get the same behavior (high load) regardless of whether Let's merge it. |
Thank you! |
…cit `make -j N`; but use `make -j 1` on `ubuntu-trusty` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> OpenMathLib/OpenBLAS#828 <!-- Why is this change required? What problem does it solve? --> Fixes part of sagemath#34899 (comment) Tests at https://github.com/mkoeppe/sage/actions/runs/6779033300: openblas finishes successfully in https://github.com/mkoeppe/sage/action s/runs/6779033300/job/18425453802#step:11:3863 <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36671 Reported by: Matthias Köppe Reviewer(s): John H. Palmieri, Matthias Köppe
OpenMathLib/OpenBLAS#828
Fixes part of #34899 (comment)
Tests at https://github.com/mkoeppe/sage/actions/runs/6779033300: openblas finishes successfully in https://github.com/mkoeppe/sage/actions/runs/6779033300/job/18425453802#step:11:3863
📝 Checklist
⌛ Dependencies