You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Corrupted GEMM results on macOS arm64 (M1 / firestorm) #930
A scheduled lock file update caused the macOS arm64 CI of scikit-learn to use blis instead of the usual OpenBLAS and uncovered at least one bug in blis on that platform as a result.
I asked an agent to isolate a minimal reproducer in Python and C. It boils down to a single faulty DGEMM call. Here is a PR created by the agent that uses the macOS arm64 runner of GitHub Actions to reproduce the problem:
changed the title [-]Incorrect GEMM results on macOS arm64 (M1 / firestorm)[/-][+]Corrupted GEMM results on macOS arm64 (M1 / firestorm)[/+]on Jun 4, 2026
This is definitely a high-severity bug so thanks for reporting and sorry I couldn't get to it sooner! Can you please see if #933 fixes your downstream issue? I have some other PRs and issues queued up so when I work through those I will backport this and anything else pressing to the 1.x, 2.x, and 3.x release series.
Activity
[-]Incorrect GEMM results on macOS arm64 (M1 / firestorm)[/-][+]Corrupted GEMM results on macOS arm64 (M1 / firestorm)[/+]ogrisel commentedon Jun 10, 2026
For the sake of making this bug report self sufficient, here are the main repro files from the linked PR above:
C code
S_100_10.txt
V_100_10.txt
devinamatthews commentedon Jun 23, 2026
Confirmed. Looks like it fails for all N which are multiples of 6 + 7 or 22 and RANK > 1.
devinamatthews commentedon Jun 24, 2026
This is definitely a high-severity bug so thanks for reporting and sorry I couldn't get to it sooner! Can you please see if #933 fixes your downstream issue? I have some other PRs and issues queued up so when I work through those I will backport this and anything else pressing to the 1.x, 2.x, and 3.x release series.
devinamatthews commentedon Jun 24, 2026
FYI I added a couple layers of protection to catch other kernel errors in the future.