From 242c3f8372aee15a3abceb36818b8aa8c15038dd Mon Sep 17 00:00:00 2001 From: Nikhil Dabas Date: Wed, 28 Oct 2026 10:11:59 +0000 Subject: [PATCH 1/2] Update to v0.3.34-497 --- CHANGELOG.md | 7 +++++++ OpenBLAS | 2 +- openblas_commit.txt | 2 +- pyproject.toml | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39d527e6..3cfeec7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## OpenBLAS v0.3.34 (v0.3.34) +### 0.3.34.497.0 (2026-10-28) + +- update to OpenBLAS develop 791b02a1, which includes OpenMathLib/OpenBLAS#6105. + This fixes a crash in the default allocator's overflow area: overflow slots + re-mapped a new buffer on every allocation and eventually wrote past the end + of `new_release_info`. Seen on Windows ARM64 with many concurrent callers. + ### 0.3.34.481.0 (2026-10-20) - update to latest develop HEAD, fix `NO_LIBGFORTRAN` patch diff --git a/OpenBLAS b/OpenBLAS index 5137bb62..791b02a1 160000 --- a/OpenBLAS +++ b/OpenBLAS @@ -1 +1 @@ -Subproject commit 5137bb62b4ca24fa88873809b845ffc18e601256 +Subproject commit 791b02a1a00c996b66a894f6df93421c53b62d80 diff --git a/openblas_commit.txt b/openblas_commit.txt index c5fd8e91..58892b2e 100644 --- a/openblas_commit.txt +++ b/openblas_commit.txt @@ -1 +1 @@ -v0.3.34-481-g5137bb62 +v0.3.34-497-g791b02a1 diff --git a/pyproject.toml b/pyproject.toml index cbf16624..1d9fba61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,8 @@ build-backend = "setuptools.build_meta" [project] name = "scipy-openblas64" -# 0.3.34-481-g5137bb62 -version = "0.3.34.481.0" +# v0.3.34-497-g791b02a1 +version = "0.3.34.497.0" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md" From ddda0e1b7b4dedda8ff16e0287573a8ca62e0f00 Mon Sep 17 00:00:00 2001 From: Nikhil Dabas Date: Wed, 28 Oct 2026 10:12:43 +0000 Subject: [PATCH 2/2] Increase NUM_THREADS on Windows to match other platforms --- CHANGELOG.md | 2 ++ tools/build_steps_win_arm64.bat | 2 +- tools/build_steps_windows.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cfeec7b..bb510557 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ This fixes a crash in the default allocator's overflow area: overflow slots re-mapped a new buffer on every allocation and eventually wrote past the end of `new_release_info`. Seen on Windows ARM64 with many concurrent callers. +- raise `NUM_THREADS` from 24 to 64 on Windows (amd64 and arm64), matching + the Linux and macOS builds. ### 0.3.34.481.0 (2026-10-20) diff --git a/tools/build_steps_win_arm64.bat b/tools/build_steps_win_arm64.bat index 02b4488d..00a47565 100755 --- a/tools/build_steps_win_arm64.bat +++ b/tools/build_steps_win_arm64.bat @@ -161,7 +161,7 @@ cmake .. -G Ninja ^ -DSYMBOLPREFIX="scipy_" ^ -DLIBNAMEPREFIX="scipy_" ^ -DUSE_THREADS=1 ^ - -DNUM_THREADS=24 ^ + -DNUM_THREADS=64 ^ %interface_flags% if errorlevel 1 exit /b 1 diff --git a/tools/build_steps_windows.sh b/tools/build_steps_windows.sh index 3a792989..b76e9e4d 100644 --- a/tools/build_steps_windows.sh +++ b/tools/build_steps_windows.sh @@ -106,7 +106,7 @@ sed -e "s/^VERSION = .*/VERSION = ${version}/" -i.bak Makefile.rule # Build OpenBLAS CFLAGS="$CFLAGS -fvisibility=protected -fno-ident" \ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \ - NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \ + NUM_THREADS=64 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \ BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \ LDFLAGS="$LDFLAGS" \ DYNAMIC_LIST="$dynamic_list" \