Skip to content

Capture module file dependencies in CMake #1148

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 1 commit into from
Jul 23, 2025

Conversation

ndingle-arm
Copy link
Contributor

Description

The modulefile la_xisnan.F90 depends on the modulefile la_constants.f90 but this dependency is not expressed in the CMake rules. In some parallel builds we have observed failures where compilation of objects that depend on la_constants.mod starts before compilation of la_constants.f90 has finished.

This patch modifies CMakeLists.txt to ensure that la_constants.mod is built before any other object or modulefile that depends on it.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

The modulefile la_xisnan.F90 depends on the modulefile
la_constants.f90 but this dependency is not expressed in the CMake
rules. In some parallel builds we have observed failures where
compilation of objects that depend on la_constants.mod starts before
compilation of la_constants.f90 has finished.

This patch modifies CMakeLists.txt to ensure that la_constants.mod is
built before any other object or modulefile that depends on it.
@langou
Copy link
Contributor

langou commented Jul 23, 2025

Thanks! Looks great to me. Julien.

@langou langou merged commit 9af1f59 into Reference-LAPACK:master Jul 23, 2025
10 checks passed
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.

2 participants