Skip to content

Commit

Permalink
use DYNAMIC_LIST to limit the number of kernels compiled into the wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Jul 25, 2024
1 parent ca41d89 commit 6484495
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "scipy-openblas64"
version = "0.3.27.63.1"
version = "0.3.27.63.2"
requires-python = ">=3.7"
description = "Provides OpenBLAS for python packaging"
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion tools/build_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ OPENBLAS_VERSION=$(git describe --tags --abbrev=8)
# Variable used in creating output libraries
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 \
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \
DYNAMIC_LIST="PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX" \
LDFLAGS="$LDFLAGS" \
COMMON_OPT="$cflags" \
FCOMMON_OPT="$fflags" \
Expand Down
6 changes: 3 additions & 3 deletions tools/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ function do_build_lib {
case $(get_os)-$plat in
Linux-x86_64)
local bitness=64
local target_flags="TARGET=PRESCOTT"
local target_flags="TARGET=PRESCOTT DYNAMIC_LIST=\"PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX\""
;;
Darwin-x86_64)
local bitness=64
local target_flags="TARGET=CORE2"
local target_flags="TARGET=CORE2 DYNAMIC_LIST=\"CORE2 NEHALEM SANDYBRIDGE HASWELL SKYLAKEX\""
# Pick up the gfortran runtime libraries
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
;;
*-i686)
local bitness=32
local target_flags="TARGET=PRESCOTT"
local target_flags="TARGET=PRESCOTT DYNAMIC_LIST=\"PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
;;
Linux-aarch64)
local bitness=64
Expand Down

0 comments on commit 6484495

Please sign in to comment.