-
Notifications
You must be signed in to change notification settings - Fork 436
set of patch fixing gromacs build issues when cp2k is build with spack and cmake #3044
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
Conversation
|
i removed the option to build dbcsr with cp2k algether. The cmake build will fail for sure. |
|
Thanks, that seems to work well |
|
except that their CI uses a functionality I just deleted.... we have to switch to spack... |
|
We're actually almost ready to build DBCSR via the toolchain (#351). All that's left is to hook up this script to here and here. |
|
@mtaillefumier, since you are already touching CMake, would you mind adding the following? diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7126fa42a..a2664e2b5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1585,6 +1585,7 @@ target_compile_definitions(
$<$<CONFIG:COVERAGE>:__NO_ABORT>
$<$<CONFIG:DEBUG>:__HAS_IEEE_EXCEPTIONS>
$<$<CONFIG:DEBUG>:__CHECK_DIAG>
+ $<$<BOOL:${CP2K_USE_MPI_F08}>:__MPI_F08>
$<$<BOOL:${CP2K_USE_PEXSI}>:__PEXSI>
$<$<BOOL:${CP2K_USE_PLUMED2}>:__PLUMED2>
$<$<BOOL:${CP2K_USE_QUIP}>:__QUIP>Otherwise CP2K doesn't compile with the latest version of MPICH (which requires Related to cp2k/dbcsr#661. |
thanks I will take care of it then. |
it is already there. But it is |
|
the toolchain is giving me some resistance. I would propose to ignore the toolchain for the time being and merge this PR after I fix the compilation issue. any idea why it fails now ? |
It's probably a botched merge with d5cf19b. Try to rebase your branch onto the latest master. |
Thanks. I just rebased to master. Let's give it a try. I am also trying to fix the compilation warnings with fromtran flags been passed to gcc. I can not reproduce it locally though |
|
I am also passing the compilation flags the proper way instead of tinkering with CMAKE_FORTRAN_FLAGS.... Sorry if it is taking so long. |
- remove the possibility to build dbcsr and cp2k with the cmake build system - fix various typos in the cp2kConfig.cmake.in file - move all FindPackages.cmake in modules directory. - fix FindPackage.cmake installation in cp2kConfig.cmake - make pretty, cp2k.pc -> libcp2k.pc - fix findLapack and findBlas error when cp2kconfig.cmake is called
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
|
I found the root of the problem. DBCSR should be 2.6.0 not 2.5.0 |
cb92185 to
6fa0848
Compare
|
thanks |
@haampie and I have been working on this set of patches that fix various issues when cp2k is build with cmake and used as dependency in gromacs.
find_package(cp2k))this PR includes PR Fix a few CMake issues #3041
Co-authored-by: Harmen Stoppels me@harmenstoppels.nl