Skip to content

[Build] Fix SCALAPACK LIBRARY find logic#7214

Merged
mohanchen merged 3 commits intodeepmodeling:developfrom
Cstandardlib:make/scalapack
Apr 7, 2026
Merged

[Build] Fix SCALAPACK LIBRARY find logic#7214
mohanchen merged 3 commits intodeepmodeling:developfrom
Cstandardlib:make/scalapack

Conversation

@Cstandardlib
Copy link
Copy Markdown
Collaborator

Linked Issue

Fix #7213

What's changed?

  • Now support direct path specification for ScaLAPACK, skipping find_package if the path is given.

Copilot AI review requested due to automatic review settings April 7, 2026 05:43
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

Updates the top-level CMake configuration to allow users to provide a ScaLAPACK directory or full library path directly, avoiding an unconditional find_package(ScaLAPACK REQUIRED) failure in environments where ScaLAPACK isn’t discoverable by CMake.

Changes:

  • Add a SCALAPACK_LIBRARY_DIR override path that skips find_package(ScaLAPACK) when provided.
  • If SCALAPACK_LIBRARY_DIR is a directory, attempt to locate scalapack via find_library() and fail fast if not found.
  • If USE_DSP is enabled and no ScaLAPACK path is provided, emit a clear configuration-time error.

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

Cstandardlib and others added 2 commits April 7, 2026 19:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Cstandardlib Cstandardlib changed the title Fix SCALAPACK LIBRARY find logic [Build] Fix SCALAPACK LIBRARY find logic Apr 7, 2026
@mohanchen
Copy link
Copy Markdown
Collaborator

LGTM

@mohanchen mohanchen added the Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS label Apr 7, 2026
@mohanchen mohanchen merged commit 4a830c3 into deepmodeling:develop Apr 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile: Fail to build on CPU if no ScaLAPACK can be found by CMake

3 participants