Skip to content

refactor: find scalapack automatically#7235

Open
Cstandardlib wants to merge 2 commits intodeepmodeling:developfrom
Cstandardlib:make/scalapack
Open

refactor: find scalapack automatically#7235
Cstandardlib wants to merge 2 commits intodeepmodeling:developfrom
Cstandardlib:make/scalapack

Conversation

@Cstandardlib
Copy link
Copy Markdown
Collaborator

@Cstandardlib Cstandardlib commented Apr 10, 2026

Linked Issue

Fix #7232

What's changed?

  • Determine the path of ScaLAPACK by cmake/FindScaLAPACK.cmake. SCALAPACK_DIR is the directory containing the library scalapack/scalapack-openmpi.
  • It is unnecessary to use a SCALAPACK_LIBRARY_DIR variable to specify the library file itself.

Copilot AI review requested due to automatic review settings April 10, 2026 16:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors ScaLAPACK detection to rely on the project’s FindScaLAPACK.cmake and removes the previous SCALAPACK_LIBRARY_DIR override path, aligning configuration with the expected SCALAPACK_DIR “prefix directory” convention (Fix #7232).

Changes:

  • Removes the custom SCALAPACK_LIBRARY_DIR handling/validation and associated fallback logic.
  • Always uses find_package(ScaLAPACK REQUIRED) and links via ScaLAPACK::ScaLAPACK.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Compile: non-standard ScaLAPACK DIR in cmake

2 participants