Run on clusters using Dask - #13
Merged
Merged
Conversation
ale94mleon
requested changes
Aug 8, 2025
ale94mleon
left a comment
Owner
There was a problem hiding this comment.
The same popc = runner.run(self.__costfunc__, args_list) logic can be applied to utils.Local.
| elif mode in [RunnerMode.MULTIPROCESSING]: | ||
| assert thread_count is None and process_count is not None and dask_cluster is None, "Only process count is needed." | ||
| elif mode in [RunnerMode.DASK_LOCAL]: | ||
| assert (thread_count is not None or process_count is None) and dask_cluster is None, "Only process count and/or thread count are needed." |
Owner
There was a problem hiding this comment.
(thread_count is not None or process_count is not None)
| def __call__(self, njobs: int = 1, runner: Optional[Runner] = None): | ||
| """Call definition | ||
|
|
||
| Parameters |
Owner
There was a problem hiding this comment.
Description of runner parameter is missed.
|
|
||
| - Cluster configuration can be provided to calculate cost function on multiple nodes of a cluster. | ||
| Cluster support requires installation of optional packages related to Dask, a package set called `cluster`. | ||
| ``` |
Owner
There was a problem hiding this comment.
Add an empty line and "```python"
Contributor
Author
There was a problem hiding this comment.
Well, pip install moldrug[cluster] is not Python code. I assume you mean sh
Added
```sh
Contributor
Author
|
Added runner to |
Owner
|
I tried out from moldrug import utils
from moldrug.runner import RunnerMode, Runner
ga = utils.GA(<initialization>)
runner_instance = Runner(
mode=RunnerMode.DASK_LOCAL,
process_count=6
)
ga(runner=runner_instance)And I get the warning Every time a new generation is evaluated. |
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.
No description provided.