Skip to content

Commit 3a4e776

Browse files
committed
BUG: lock umath_linalg lapack calls when no BLAS is detected
1 parent ccff7fb commit 3a4e776

File tree

3 files changed

+81
-1
lines changed

3 files changed

+81
-1
lines changed

numpy/_core/config.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108
#mesondefine HAVE_LDOUBLE_IBM_DOUBLE_DOUBLE_LE
109109
#mesondefine HAVE_LDOUBLE_IBM_DOUBLE_DOUBLE_BE
110110

111+
#mesondefine HAVE_EXTERNAL_LAPACK
112+
111113
#ifndef __cplusplus
112114
/* #undef inline */
113115
#endif

numpy/_core/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ if cc.has_function_attribute('visibility:hidden') and host_machine.system() != '
506506
endif
507507
cdata.set('NPY_VISIBILITY_HIDDEN', visibility_hidden)
508508

509+
# if not set, we're using lapack_lite
510+
if have_lapack
511+
cdata.set10('HAVE_EXTERNAL_LAPACK', have_blas)
512+
endif
509513

510514
config_h = configure_file(
511515
input: 'config.h.in',

0 commit comments

Comments
 (0)