Skip to content

Commit 0bb2ad5

Browse files
maleadtZentrik
authored andcommitted
OpenBLAS: Use dynamic architecture support on AArch64. (#56107)
We already do so on Yggdrasil, so this just makes both source and binary builds behave similarly. Closes #56075
1 parent 792d871 commit 0bb2ad5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Make.inc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,16 +1002,14 @@ endif
10021002
# If we are running on ARM, set certain options automatically
10031003
ifneq (,$(findstring arm,$(ARCH)))
10041004
JCFLAGS += -fsigned-char
1005-
USE_BLAS64:=0
10061005
OPENBLAS_DYNAMIC_ARCH:=0
10071006
OPENBLAS_TARGET_ARCH:=ARMV7
1007+
BINARY:=32
10081008
endif
10091009

10101010
# If we are running on aarch64 (e.g. ARMv8 or ARM64), set certain options automatically
10111011
ifneq (,$(findstring aarch64,$(ARCH)))
1012-
OPENBLAS_DYNAMIC_ARCH:=0
10131012
OPENBLAS_TARGET_ARCH:=ARMV8
1014-
USE_BLAS64:=1
10151013
BINARY:=64
10161014
endif
10171015

deps/openblas.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ endif
3131
endif
3232

3333
# 64-bit BLAS interface
34+
$(error USE_BLAS64: $(USE_BLAS64))
3435
ifeq ($(USE_BLAS64), 1)
3536
OPENBLAS_BUILD_OPTS += INTERFACE64=1 SYMBOLSUFFIX="$(OPENBLAS_SYMBOLSUFFIX)" LIBPREFIX="libopenblas$(OPENBLAS_LIBNAMESUFFIX)"
3637
ifeq ($(OS), Darwin)

0 commit comments

Comments
 (0)