Skip to content

Commit ddda0e1

Browse files
committed
Increase NUM_THREADS on Windows to match other platforms
1 parent 242c3f8 commit ddda0e1

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
This fixes a crash in the default allocator's overflow area: overflow slots
77
re-mapped a new buffer on every allocation and eventually wrote past the end
88
of `new_release_info`. Seen on Windows ARM64 with many concurrent callers.
9+
- raise `NUM_THREADS` from 24 to 64 on Windows (amd64 and arm64), matching
10+
the Linux and macOS builds.
911

1012
### 0.3.34.481.0 (2026-10-20)
1113

‎tools/build_steps_win_arm64.bat‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ cmake .. -G Ninja ^
161161
-DSYMBOLPREFIX="scipy_" ^
162162
-DLIBNAMEPREFIX="scipy_" ^
163163
-DUSE_THREADS=1 ^
164-
-DNUM_THREADS=24 ^
164+
-DNUM_THREADS=64 ^
165165
%interface_flags%
166166

167167
if errorlevel 1 exit /b 1

‎tools/build_steps_windows.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ sed -e "s/^VERSION = .*/VERSION = ${version}/" -i.bak Makefile.rule
106106
# Build OpenBLAS
107107
CFLAGS="$CFLAGS -fvisibility=protected -fno-ident" \
108108
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
109-
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
109+
NUM_THREADS=64 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
110110
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \
111111
LDFLAGS="$LDFLAGS" \
112112
DYNAMIC_LIST="$dynamic_list" \

0 commit comments

Comments
 (0)