Skip to content
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

Charm Pool Examples: Add check for more than 1 PE #263

Open
Sara-KS opened this issue Jul 8, 2024 · 0 comments · May be fixed by #279
Open

Charm Pool Examples: Add check for more than 1 PE #263

Sara-KS opened this issue Jul 8, 2024 · 0 comments · May be fixed by #279
Assignees

Comments

@Sara-KS
Copy link

Sara-KS commented Jul 8, 2024

Description: Running locally on my Mac with a python virtual environment, the charm pool examples and some of the Ray examples start with a default of 1 PE. This leads to error messages stating that charm.pool should run with more than 1 PE.

Example:

(charmpp_env) python3 ./examples/pool/pool_simple.py

Error message:

site-packages/charm4py/pool.py", line 105, in __start__
    assert self.num_workers > 0, 'Run with more than 1 PE to use charm.pool'
------------- Processor 0 Exiting: Called CmiAbort ------------
Reason: AssertionError: Run with more than 1 PE to use charm.pool

Possible Solution:
In the examples, add a check for `charm.numPes() >1'. If the check fails, it would be helpful to point the user to the documentation on how to adjust the number of processes.

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 a pull request may close this issue.

2 participants