Skip to content

Update to a more modern BLAS detector#396

Merged
benfulton merged 2 commits into
mainfrom
blas_config
Jun 10, 2026
Merged

Update to a more modern BLAS detector#396
benfulton merged 2 commits into
mainfrom
blas_config

Conversation

@benfulton

Copy link
Copy Markdown
Contributor

The BLAS autoconf detector macros are out of date. This causes issues with libraries like FlexiBlas which is provided with EasyBuild - it will be simpler to find libraries with these changes. The detection will have to run in C mode rather than Fortran mode but that shouldn't cause any issues. I think this fixes #294.

Updated to the latest versions from autoconf-archive and run autoconf to generate a new configure.

@stephankramer stephankramer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Just to double check:

  • is it indeed the case that in libadaptivity we only call blas in libadaptivity/include/cxxblas.h via extern "C", i.e. we don't need to test for fortran or CXX
  • the ax_blas/lapack that are used by fluidity's main configure is already up-to-date (enough)?

@benfulton

Copy link
Copy Markdown
Contributor Author

Yes, it's only in the C++ code with extern "C" that BLAS is used, and the main configure is already using these macros.

@benfulton benfulton merged commit b97eddc into main Jun 10, 2026
196 of 197 checks passed
@benfulton benfulton deleted the blas_config branch June 10, 2026 07:31
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.

Configure not picking up BLAS and LAPACK from PETSc

2 participants