8000 MAINT: Scipy openblas 0.3.27.44.4 by mattip · Pull Request #27140 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Scipy openblas 0.3.27.44.4 #27140

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

Merged
merged 3 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions numpy/linalg/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,18 @@ def test_matrix_rank_rtol_argument(self, rtol):
x = np.zeros((4, 3, 2))
res = np.linalg.matrix_rank(x, rtol=rtol)
assert res.shape == (4,)

def test_openblas_threading(self):
# gh-27036
# Test whether matrix multiplication involving a large matrix always
# gives the same (correct) answer
x = np.arange(500000, dtype=np.float64)
src = np.vstack((x, -10*x)).T
matrix = np.array([[0, 1], [1, 0]])
expected = np.vstack((-10*x, x)).T # src @ matrix
for i in range(200):
result = src @ matrix
mismatches = (~np.isclose(result, expected)).sum()
if mismatches != 0:
assert False, ("unexpected result from matmul, "
"probably due to OpenBLAS threading issues")
2 changes: 1 addition & 1 deletion requirements/ci32_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spin
# Keep this in sync with ci_requirements.txt
scipy-openblas32==0.3.27.44.3
scipy-openblas32==0.3.27.44.4
4 changes: 2 additions & 2 deletions requirements/ci_requirements.txt
10000
Original file line number Diff line numberDiff line change
@@ -1,4 +1,4 @@
spin
# Keep this in sync with ci32_requirements.txt
scipy-openblas32==0.3.27.44.3
scipy-openblas64==0.3.27.44.3
scipy-openblas32==0.3.27.44.4
scipy-openblas64==0.3.27.44.4
4 changes: 2 additions & 2 deletions tools/wheels/LICENSE_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This binary distribution of NumPy also bundles the following software:


Name: OpenBLAS
Files: numpy.libs/libopenblas*.so
Files: numpy.libs/libscipy_openblas*.so
Description: bundled as a dynamically linked library
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause
Expand Down Expand Up @@ -41,7 +41,7 @@ License: BSD-3-Clause


Name: LAPACK
Files: numpy.libs/libopenblas*.so
Files: numpy.libs/libscipy_openblas*.so
Description: bundled in OpenBLAS
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause-Attribution
Expand Down
4 changes: 2 additions & 2 deletions tools/wheels/LICENSE_osx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This binary distribution of NumPy also bundles the following software:

Name: OpenBLAS
Files: numpy/.dylibs/libopenblas*.so
Files: numpy/.dylibs/libscipy_openblas*.so
Description: bundled as a dynamically linked library
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause
Expand Down Expand Up @@ -40,7 +40,7 @@ License: BSD-3-Clause


Name: LAPACK
Files: numpy/.dylibs/libopenblas*.so
Files: numpy/.dylibs/libscipy_openblas*.so
Description: bundled in OpenBLAS
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause-Attribution
Expand Down
27 changes: 3 additions & 24 deletions tools/wheels/LICENSE_win32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This binary distribution of NumPy also bundles the following software:


Name: OpenBLAS
Files: numpy.libs\libopenblas*.dll
Files: numpy.libs\libscipy_openblas*.dll
Description: bundled as a dynamically linked library
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause
Expand Down Expand Up @@ -41,7 +41,7 @@ License: BSD-3-Clause


Name: LAPACK
Files: numpy.libs\libopenblas*.dll
Files: numpy.libs\libscipy_openblas*.dll
Description: bundled in OpenBLAS
Availability: https://github.com/OpenMathLib/OpenBLAS/
License: BSD-3-Clause-Attribution
Expand Down Expand Up @@ -96,7 +96,7 @@ License: BSD-3-Clause-Attribution


Name: GCC runtime library
Files: numpy.libs\libgfortran*.dll
Files: numpy.libs\libscipy_openblas*.dll
Description: statically linked to files compiled with gcc
Availability: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=libgfortran
License: GPL-3.0-with-GCC-exception
Expand Down Expand Up @@ -879,24 +879,3 @@ the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

Name: libquadmath
Files: numpy.libs\libopenb*.dll
Description: statically linked to files compiled with gcc
Availability: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=libquadmath
License: LGPL-2.1-or-later

GCC Quad-Precision Math Library
Copyright (C) 2010-2019 Free Software Foundation, Inc.
Written by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

This file is part of the libquadmath library.
Libquadmath is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

Libquadmath is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
0