Skip to content

Rework lapacke CMake module#1083

Merged
tpadioleau merged 7 commits into
mainfrom
rework-lapacke-module
Mar 26, 2026
Merged

Rework lapacke CMake module#1083
tpadioleau merged 7 commits into
mainfrom
rework-lapacke-module

Conversation

@tpadioleau
Copy link
Copy Markdown
Member

@tpadioleau tpadioleau commented Mar 9, 2026

Fixes #936

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.90%. Comparing base (f1fef3e) to head (5668cf3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1083   +/-   ##
=======================================
  Coverage   94.90%   94.90%           
=======================================
  Files          64       64           
  Lines        2844     2844           
  Branches      893      893           
=======================================
  Hits         2699     2699           
  Misses         95       95           
  Partials       50       50           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread cmake/FindLAPACKE.cmake Outdated
@tpadioleau tpadioleau force-pushed the rework-lapacke-module branch 2 times, most recently from bfa1ef6 to d441107 Compare March 9, 2026 20:56
@tpadioleau tpadioleau force-pushed the rework-lapacke-module branch 3 times, most recently from 2a490b5 to 578848a Compare March 19, 2026 15:29
@tpadioleau tpadioleau marked this pull request as ready for review March 19, 2026 15:39
@tpadioleau tpadioleau requested a review from EmilyBourne March 19, 2026 15:39
@tpadioleau tpadioleau force-pushed the rework-lapacke-module branch from 578848a to c238c48 Compare March 19, 2026 15:42
Comment thread cmake/FindLAPACKE.cmake Outdated
Comment thread cmake/FindLAPACKE.cmake
Comment thread cmake/FindLAPACKE.cmake
Comment thread cmake/FindLAPACKE.cmake Outdated
Comment thread cmake/FindLAPACKE.cmake Outdated

if(NOT LAPACKE_INCLUDE_DIR)
# Derive the header location from the library path when the standard search
# above came up empty (common with non-system OpenBLAS installs).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did you work out why this was the case? Does CMAKE_PREFIX_PATH always contain an include directory?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Did you work out why this was the case?

Good question, I wonder if it is necessary. Claude added this comment but I am not sure I agree. If the _ROOT variables are not set, nor CMAKE_PREFIX_PATH, CMake should not even find the .so library.

Does CMAKE_PREFIX_PATH always contain an include directory?

I don't think so, in the case of a Spack installation of OpenBLAS it exists.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This may search in slightly different directories. IF we can determine the difference then we could probably avoid this step

Comment thread cmake/FindLAPACKE.cmake
@tpadioleau tpadioleau force-pushed the rework-lapacke-module branch from 0adec5a to 6851cd6 Compare March 19, 2026 17:26
@tpadioleau
Copy link
Copy Markdown
Member Author

Adding some tests:

It essentially improves the situation for Spack when openblas is installed out of the system paths.

@tpadioleau tpadioleau force-pushed the rework-lapacke-module branch from 15e2d68 to b6e0ed9 Compare March 25, 2026 15:21
@tpadioleau
Copy link
Copy Markdown
Member Author

tpadioleau commented Mar 26, 2026

@EmilyBourne I did further cleaning and tests. If you look at the master branch of https://github.com/tpadioleau/tests-lapacke, we can see that the new implementation now works with openblas on macOS and out of the box with Spack (because Spack fills CMAKE_PREFIX_PATH).

The tests check different configurations, from multiple OS, platforms and package managers. The failing tests on the new implementation are related to a problem of installation of atlas.

What do you think ? Should we merge ?

@EmilyBourne
Copy link
Copy Markdown
Collaborator

@EmilyBourne I did further cleaning and tests. If you look at the master branch of https://github.com/tpadioleau/tests-lapacke, we can see that the new implementation now works with openblas on macOS and out of the box with Spack (because Spack fills CMAKE_PREFIX_PATH).

The tests check different configurations, from multiple OS, platforms and package managers. The failing tests on the new implementation are related to a problem of installation of atlas.

What do you think ? Should we merge ?

If everything that is failing now was also failing before then is definitely an improvement

@tpadioleau tpadioleau merged commit 7b18292 into main Mar 26, 2026
64 checks passed
@tpadioleau tpadioleau deleted the rework-lapacke-module branch March 26, 2026 12:34
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.

DDC does not compile outside of Spack environment views

2 participants