enhance GROMACS easyblock to add support for CP2K QM/MM - #31
Draft
ostueker wants to merge 2 commits into
Draft
Conversation
|
@ostueker, sorry, I’m leaving for a vacation at the end of the day! If you’re not in a hurry, I’ll be happy to have a look during the week of August 17. |
mboisson
reviewed
Jul 29, 2026
| # Building with CP2K requires static build w/o gmxapi. | ||
| # https://manual.gromacs.org/documentation/2022/install-guide/index.html#building-with-cp2k-qm-mm-support | ||
| self.log.info("Building with CP2K QM/MM.") | ||
| self.cfg['build_shared_libs'] = False |
Member
There was a problem hiding this comment.
Won't setting this config option be a surprised ? Shouldn't it be a check and error instead of setting the value ?
mboisson
reviewed
Jul 29, 2026
| if build_option('force') and build_option('module_only'): | ||
| self.log.info(f"No sub-directory with GROMACS libraries found in installation: {error}") | ||
| self.log.info("You are forcing module creation for a non-existent installation!") | ||
| elif not self.cfg['build_shared_libs']: |
Member
There was a problem hiding this comment.
So... if build_shared_libs is False, then it is expected that there is a lib subdirectory ? This is counter-intuitive to me. If true, it warrants a comment
This simplifies configuration logic and error checking. As enabling CP2K requires static compilation, the module will be quite different from a "normal" GROMACS, and will not have * GMXAPI * libgromacs * threaded or serial executables (gmx, gmx_d)
Member
Author
|
@mboisson How about now? |
ostueker
marked this pull request as draft
August 3, 2026 14:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New attempt for GROMACS with CP2K QM/MM support.