Skip to content

Commit ed533b8

Browse files
authored
Merge pull request #177 from mattip/shrink-x86_64
Use DYNAMIC_LIST to shrink the shared object on x86_64 and i686
2 parents e8a5028 + 80e80ab commit ed533b8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy-openblas64"
11-
version = "0.3.27.44.4"
11+
version = "0.3.27.44.5"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

tools/build_openblas.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ if [ "$build_bits" == 64 ]; then
6464
extra="-fno-asynchronous-unwind-tables"
6565
vc_arch="X64"
6666
plat_tag="win_amd64"
67+
dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
6768
else
6869
march=pentium4
6970
extra="-mfpmath=sse -msse2"
7071
fextra="-m32"
7172
vc_arch="i386"
7273
plat_tag="win32"
74+
dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
7375
fi
7476
cflags="-O2 -march=$march -mtune=generic $extra"
7577
fflags="$fextra $cflags -frecursive -ffpe-summary=invalid,zero"
@@ -100,8 +102,9 @@ patch -p1 < ../patches-windows/revert-win-threading.patch
100102
# Build OpenBLAS
101103
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
102104
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
103-
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
105+
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \
104106
LDFLAGS="$LDFLAGS" \
107+
DYNAMIC_LIST="$dynamic_list" \
105108
COMMON_OPT="$cflags" \
106109
FCOMMON_OPT="$fflags" \
107110
MAX_STACK_ALLOC=2048 \

tools/build_steps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function do_build_lib {
120120
Linux-x86_64)
121121
local bitness=64
122122
local target_flags="TARGET=PRESCOTT"
123+
local dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
123124
;;
124125
Darwin-x86_64)
125126
local bitness=64
@@ -130,6 +131,7 @@ function do_build_lib {
130131
*-i686)
131132
local bitness=32
132133
local target_flags="TARGET=PRESCOTT"
134+
local dynamic_list="PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
133135
;;
134136
Linux-aarch64)
135137
local bitness=64

0 commit comments

Comments
 (0)