8000 CMake/LAPACK/BLAS: removed customized/diverged standard modules by hfp · Pull Request #931 · cp2k/dbcsr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CMake/LAPACK/BLAS: removed customized/diverged standard modules #931

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hfp
Copy link
Member
@hfp hfp commented Jul 4, 2025
  • Related: f9dca07, cmake: removed standard modules #890
  • Changes like picking the correct OpenBLAS threading layer must be upstreamed (CMake).
  • It can be considered micro-management to prevent inconsistent choices/pickup.
  • Spack solves this with threads=openmp variant and prevents inconsistency.
  • Current CMakeFile, standard modules, and Spack are "good enough".

@alazzaro alazzaro requested a review from dev-zero July 4, 2025 08:15
@alazzaro
Copy link
Member
alazzaro commented Jul 4, 2025

unrelated question:
@hfp do we need to make a new release of DBCSR for the new CP2K?

@hfp
Copy link
Member Author
hfp commented Jul 4, 2025

unrelated question: @hfp do we need to make a new release of DBCSR for the new CP2K?

I think so. Perhaps @oschuett can shed some light on the timeline? I think CMake and Spack packages can still use a bit more time. For instance, I started polishing Spack packages for DBCSR and CP2K. Regarding CMake, I think CP2K's custom modules for all LAPACK/BLAS shall go away for same reasons like this PR. While I am nearly complete with Spack packages, I have only started today with the mentioned removal for CP2K.

- Related: cp2k@f9dca07
- Changes like picking the correct OpenBLAS threading layer must be upstreamed (CMake).
- It can be considered micro-management to prevent inconsistent choices/pickup.
- Spack solves this with threads=openmp variant and prevents inconsistency.
- Current CMakeFile, standard modules, and Spack are "good enough".
@hfp
Copy link
Member Author
hfp commented Jul 9, 2025

RPM builds are failing because of:

rm cmake/FindBLAS.cmake cmake/FindLAPACK.cmake
rm: cannot remove 'cmake/FindBLAS.cmake': No such file or directory
rm: cannot remove 'cmake/FindLAPACK.cmake': No such file or directory

This seems to be specified in dbcsr.spec, which is outside of this repository.

@hfp
Copy link
Member Author
hfp commented Jul 9, 2025

@dev-zero FYI, I will soon PR a revised Spack recipe for LIBINT. Would you be so kind and review it as well?

@hfp
Copy link
Member Author
hfp commented Jul 10, 2025

@alazzaro let's get this reviewed on a finite timeline. On an alternative path, you can pre-release DBCSR in anticipation of an upcoming release of CP2K.

@alazzaro @oschuett I think, this sort of coupling can drop going forward as soon as the build systems consolidate in CP2K (gmake vs cmake), and as soon as Spack adoption is covering the classic Toolchain.

On a side note, I am working on Spack recipes for CP2K and DBCSR as well as important dependencies like LIBINT and LIBXC to ensure performance and satisfaction carries forward from GNU Make and Toolchain.

@alazzaro
Copy link
Member

@alazzaro let's get this reviewed on a finite timeline. On an alternative path, you can pre-release DBCSR in anticipation of an upcoming release of CP2K.

Given the current schedule for the next CP2K release (cp2k/cp2k#4249 (comment)), it would be impossible to make a new release and validate it in CP2K in a week. On the other hand, DBCSR is now an external dependency so we will make a new release at our convenience.

Considering this PR, I would like to understand if the concerns in #890 are now solved?

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
0