-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Calling openblas_set_num_threads in the main process of Sage can lead to segfaults #26585
Comments
comment:2
I have a suspicion that this is an openblas bug but it's not clear yet. |
comment:3
Somehow, it seems like, the |
comment:4
Hmm; I think I see the problem. Normally the only way Rather, most functions in openblas that use threads (e.g. |
comment:5
Confirmed. Simply adding |
comment:6
Added upstream pull request; if someone wants to review it I can also add the patch to Sage's openblas package. |
Upstream: Reported upstream. No feedback yet. |
This comment has been minimized.
This comment has been minimized.
comment:7
Erik openblas patch is available for testing at branch |
Branch: public/26585-openblas_patch |
Commit: |
comment:8
Cool, might as well add it to the ticket. If we need to update it later nbd. New commits:
|
Author: Erik Bray |
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release. |
Reviewer: Erik Bray |
comment:9
Fix accepted upstream as-is. |
comment:11
Good news. Thanks Erik for taking care of it! |
comment:12
Updated the title of the ticket to reflect the broader problem (if I need to look for this later I won't remember the exact example of multiplying matrices in GF(11) :) |
Changed branch from public/26585-openblas_patch to |
comment:14
I just realized this probably should have increased the patch version of the SPKG. Otherwise it won't get updated in incremental builds. It's not clear to me that this patch is immediately needed though... |
Changed commit from |
Note: This does not happen currently in Sage, but does result from attempts to add multi-threading support to fflas-ffpack.
Multiplying a 1000x1000 matrix over GF(11) causes a segfault on a 32 core server.
gdb says it comes from OpenBLAS thread manager.
but in valgrind mode, everything works just fine.
Upstream PR: https://github.com/xianyi/OpenBLAS/pull/1837/files
Upstream: Fixed upstream, but not in a stable release.
CC: @embray
Component: linear algebra
Author: Erik Bray
Branch:
9dc0772
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/26585
The text was updated successfully, but these errors were encountered: