Skip to content

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

Merged
perazz merged 15 commits into
fortran-lang:mainfrom
perazz:stdlib_external_blas
May 15, 2025
Merged

[metapackage] stdlib: enable external BLAS/LAPACK#1139
perazz merged 15 commits into
fortran-lang:mainfrom
perazz:stdlib_external_blas

Conversation

@perazz

@perazz perazz commented May 13, 2025

Copy link
Copy Markdown
Member

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
@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