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

Merged
merged 15 commits into from
May 15, 2025

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

@perazz perazz merged commit 3f0a304 into fortran-lang:main May 15, 2025
27 checks passed
@perazz perazz deleted the stdlib_external_blas branch May 15, 2025 15:08
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