From a01072ddc111066d0bbffc660dbbb2b62422e171 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 8 Jan 2023 17:17:11 +0000 Subject: [PATCH] Handle the possibility of OpenBLAS not including LAPACK APIs [ci skip] --- docs/markdown/Dependencies.md | 3 ++- mesonbuild/dependencies/blas_lapack.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 8943d17669b7..bbfe5cbfe25c 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -317,7 +317,7 @@ These dependencies can never be found for non-OSX hosts. ## BLAS and LAPACK -*(added 0.64.0)* +*(added 1.1.0)* Enables compiling and linking against BLAS and LAPACK libraries. BLAS and LAPACK are generic APIs, which can be provided by a number of different @@ -374,6 +374,7 @@ openblas_dep = dependency('openblas', 'interface: ilp64', # can be lp64 or ilp64 (or auto?) 'symbol-suffix: 64_', # check/auto-detect? default to 64_ or no suffix? 'cblas', + 'lapack', # OpenBLAS can be built without LAPACK support ] ) diff --git a/mesonbuild/dependencies/blas_lapack.py b/mesonbuild/dependencies/blas_lapack.py index b3b935639513..77e7608df085 100644 --- a/mesonbuild/dependencies/blas_lapack.py +++ b/mesonbuild/dependencies/blas_lapack.py @@ -47,6 +47,8 @@ Other Notes: - OpenBLAS can be built with NOFORTRAN, in that case it's CBLAS + f2c'd LAPACK +- OpenBLAS can be built without LAPACK support, Arch Linux currently does this + (see https://github.com/scipy/scipy/issues/17465) - OpenBLAS library can be renamed with an option in its Makefile - Build options: - conda-forge: https://github.com/conda-forge/openblas-feedstock/blob/49ca08fc9d1ff220804aa9b894b9a6fe5db45057/recipe/conda_build_config.yaml