Repository navigation
BLD: update OpenBLAS to 0.3.21 and clean up openblas download test - #22525
Conversation
|
At this time the openblas-libs ppc64le 64-bit interface build times out, I hope to get the archive uploaded soon. But ppc64le is a best-effort platform, so I think it is OK to move forward without that build. Edit: using the 32-bit interfaces instead. |
|
close/reopen |
|
Windows 64-bit wheel builds and regular builds are failing with Windows 32-bit builds are passing. |
|
@matthew-brett maybe this is due to using |
c1b8c9a to
559476c
Compare
559476c to
f5ae8d5
Compare
7e1c167 to
0120f1e
Compare
|
progress: 32-bit interface builds (openblas) are passing 64-bit (openblas64) are failing. |
99ffd4d to
02ed5fe
Compare
|
it may make sense to add threadpoolctl to test dependencies? |
10f6ed5 to
33df8da
Compare
|
Whew. Finally I got the Now how do I show the active dylib search path? |
742e223 to
c11f07c
Compare
c11f07c to
bc58400
Compare
| # if: github.repository == 'numpy/numpy' | ||
|
|
||
| name: CircleCI artifact redirector | ||
|
|
There was a problem hiding this comment.
A small cleanup to improve the UX when looking at the github action summaries
| for d in ext.runtime_library_dirs: | ||
| for f in glob(d + '/*.dll'): | ||
| copy_file(f, self.extra_dll_dir) | ||
| ext.runtime_library_dirs = [] |
There was a problem hiding this comment.
This change is connected to the use of a DLL directly from the OpenBLAS build, rather than pulling out the libopenblas.a and wrapping it via gfortran to create another DLL. Apparently numpy/distutils was never set up to do this before.
| # Not clear why this is needed but it seems on x86_64 this is not the default | ||
| # and without it f2py tests fail | ||
| export DYLD_LIBRARY_PATH=/usr/local/lib | ||
| fi |
There was a problem hiding this comment.
This took way to long to work out.
|
Travis CI build is failing for ppc64le when using 64-bit interfaces. I will |
|
Assuming CI passes I think this is ready for review. If desired, I could clean up the git history into meaningful commits, or the whole thing could be squash-merged. |
|
Windows + pypy is segfaulting I suspect the |
678d628 to
b64b86f
Compare
|
CI is passing |
|
This will close #22502 |
| # use OpenBLAS build, not system ATLAS | ||
| - DOWNLOAD_OPENBLAS=1 | ||
| - NPY_USE_BLAS_ILP64=1 | ||
| # - NPY_USE_BLAS_ILP64=1 # the openblas build fails |
|
Thanks Matti. I suspect this isn't the last time we will deal with these problems :) |
…f float64 (#197547) ### Summary Fixes #200245 Fixes: intel/torch-xpu-ops#5074 Related: intel/torch-xpu-ops#4313 Related: intel/torch-xpu-ops#2618 Removes the XPU `expectedFailure` for `TestCommon.test_numpy_ref` (`linalg.tensorinv`, `float64`) from the OpInfo in `torch/testing/_internal/opinfo/definitions/linalg.py`. No `linalg.tensorinv` or XPU kernel code is changed. The XPU result was always correct. The `expectedFailure` was hiding a wrong **NumPy reference** in the PyTorch XPU CI environment, and that environment was fixed by #199535. ### Root cause - `test_numpy_ref` compares `torch.linalg.tensorinv` on XPU against `np.linalg.tensorinv` computed on the CPU host. - NumPy <= 1.23.x bundles OpenBLAS <= 0.3.20, which returns wrong results for LU-based routines (inv/solve/det) on Intel Xeon Sapphire Rapids and Granite Rapids CPUs (numpy/numpy#22502, fixed in OpenBLAS 0.3.21 / NumPy 1.24.0 via numpy/numpy#22525). Detailed analysis: intel/torch-xpu-ops#2618. - PyTorch XPU CI images used Python 3.10, for which `.ci/docker/requirements-ci.txt` pins `numpy==1.23.2`, on affected host CPUs. As a result the reference was wrong and the test failed. - The failure was originally attributed to PVC / oneMKL. That turned out to be incorrect: the deciding factor was the host CPU + NumPy/OpenBLAS version, not the GPU. ### Validation Intel BMG: ``` python test_ops_xpu.py TestCommonXPU.test_numpy_ref_linalg_tensorinv_xpu_float64 -v ``` - before: FAILED (unexpected success) - after: OK (complex128 variant also passes) PyTorch XPU CI: rebased onto `viable/strict` 5de236d which includes #199535. Pull Request resolved: #197547 Approved by: https://github.com/dvrogozh, https://github.com/BBBela, https://github.com/chuanqi129, https://github.com/atalman
…f float64 (pytorch#197547) ### Summary Fixes pytorch#200245 Fixes: intel/torch-xpu-ops#5074 Related: intel/torch-xpu-ops#4313 Related: intel/torch-xpu-ops#2618 Removes the XPU `expectedFailure` for `TestCommon.test_numpy_ref` (`linalg.tensorinv`, `float64`) from the OpInfo in `torch/testing/_internal/opinfo/definitions/linalg.py`. No `linalg.tensorinv` or XPU kernel code is changed. The XPU result was always correct. The `expectedFailure` was hiding a wrong **NumPy reference** in the PyTorch XPU CI environment, and that environment was fixed by pytorch#199535. ### Root cause - `test_numpy_ref` compares `torch.linalg.tensorinv` on XPU against `np.linalg.tensorinv` computed on the CPU host. - NumPy <= 1.23.x bundles OpenBLAS <= 0.3.20, which returns wrong results for LU-based routines (inv/solve/det) on Intel Xeon Sapphire Rapids and Granite Rapids CPUs (numpy/numpy#22502, fixed in OpenBLAS 0.3.21 / NumPy 1.24.0 via numpy/numpy#22525). Detailed analysis: intel/torch-xpu-ops#2618. - PyTorch XPU CI images used Python 3.10, for which `.ci/docker/requirements-ci.txt` pins `numpy==1.23.2`, on affected host CPUs. As a result the reference was wrong and the test failed. - The failure was originally attributed to PVC / oneMKL. That turned out to be incorrect: the deciding factor was the host CPU + NumPy/OpenBLAS version, not the GPU. ### Validation Intel BMG: ``` python test_ops_xpu.py TestCommonXPU.test_numpy_ref_linalg_tensorinv_xpu_float64 -v ``` - before: FAILED (unexpected success) - after: OK (complex128 variant also passes) PyTorch XPU CI: rebased onto `viable/strict` 5de236d which includes pytorch#199535. Pull Request resolved: pytorch#197547 Approved by: https://github.com/dvrogozh, https://github.com/BBBela, https://github.com/chuanqi129, https://github.com/atalman
The builds have changed slightly:
tools/openblas_support.pyandthreadpoolctlMaybe related to #22502