Skip to content

[metapackage] stdlib: enable external BLAS/LAPACK #1139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

perazz
Copy link
Member

@perazz perazz commented May 13, 2025

Enable building fpm packages with stdlib linked to an external BLAS/LAPACK library

The stdlib metapackage is configure to use the external BLAS/LAPACK implementation when both blas and stdlib are enabled.

[dependencies]
stdlib = "*"
blas = "*"

The external preprocessor macros are accordingly defined:
STDLIB_EXTERNAL_BLAS
STDLIB_EXTERNAL_LAPACK

These macros allow stdlib to disable internal fallbacks and delegate linear algebra routines to the external library.

A test/example package is provided in:

example_packages/metapackage_stdlib_ext_blas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant