From 0159b84141a827e9e96df7ddf25c32c6df8dfb6d Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 1 Jan 2020 21:28:48 +0200 Subject: ENH: build fallback lapack_lite with 64-bit integers on 64-bit platforms Build the lapack fallback library (used when no LAPACK installed) with 64-bit integer size when building on a 64-bit platform. --- numpy/linalg/setup.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/linalg/setup.py') diff --git a/numpy/linalg/setup.py b/numpy/linalg/setup.py index 6315a34b4..bfc0203d2 100644 --- a/numpy/linalg/setup.py +++ b/numpy/linalg/setup.py @@ -31,6 +31,10 @@ def configuration(parent_package='', top_path=None): else: lapack_info = get_info('lapack_opt', 0) # and {} + if not lapack_info and sys.maxsize > 2**32: + # Build lapack-lite in 64-bit integer mode + config.add_define_macros([('HAVE_BLAS_ILP64', None)]) + def get_lapack_lite_sources(ext, build_dir): if not lapack_info: print("### Warning: Using unoptimized lapack ###") -- cgit v1.2.1