-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Bug in other softwareCompiler, Virtual Machine, etc. bug affecting OpenBLASCompiler, Virtual Machine, etc. bug affecting OpenBLAS
Description
This issue only appears on Windows 10 2004 (19041). It does not appear on Windows 10 1909 (18363).
On a fresh install of NumPy from pip on a 2004 machine, e.g,
pip install numpy ipython
open ipython and enter
import numpy as np
a = np.arange(13 * 13, dtype=np.float64)
a.shape = (13, 13)
a = a % 17
va, ve = np.linalg.eig(a)
This produces an error:
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
---------------------------------------------------------------------------
LinAlgError Traceback (most recent call last)
<ipython-input-1-bad305f0dfc7> in <module>
3 a.shape = (13, 13)
4 a = a % 17
----> 5 va, ve = np.linalg.eig(a)
<__array_function__ internals> in eig(*args, **kwargs)
c:\anaconda\envs\py-pip\lib\site-packages\numpy\linalg\linalg.py in eig(a)
1322 _raise_linalgerror_eigenvalues_nonconvergence)
1323 signature = 'D->DD' if isComplexType(t) else 'd->DD'
-> 1324 w, vt = _umath_linalg.eig(a, signature=signature, extobj=extobj)
1325
1326 if not isComplexType(t) and all(w.imag == 0.0):
c:\anaconda\envs\py-pip\lib\site-packages\numpy\linalg\linalg.py in _raise_linalgerror_eigenvalues_nonconvergence(err, flag)
92
93 def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
---> 94 raise LinAlgError("Eigenvalues did not converge")
95
96 def _raise_linalgerror_svd_nonconvergence(err, flag):
LinAlgError: Eigenvalues did not converge
What makes me suspect that it is OpenBLAS related is:
- It does not happen when using MKL.
- It does not happen when using LAPACK-lite that ships with NumPy and is used as a fallback.
On the other hand, it may likely be a Windows bug since:
- It does not occur before 2004.
- It does not occur when using 32-bit Python on the same system.
- It does not occur when running Pythin in WSL on the same machine whether using WSL1, which runs Linux binaries directly on Windows, or WSL2, which runs them in a hypervisor.
Any help is appreciated.
The related NumPy issue is numpy/numpy#16744.
Metadata
Metadata
Assignees
Labels
Bug in other softwareCompiler, Virtual Machine, etc. bug affecting OpenBLASCompiler, Virtual Machine, etc. bug affecting OpenBLAS