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

Ray support: is_initialized function #262

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

Ray support: is_initialized function #262

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

Comments

@Sara-KS
Copy link

Sara-KS commented Jul 8, 2024

Description: Request Ray support for ray.is_initialize function. This is a helpful feature to check if Ray initialized properly.
Example from Ray Docs:

import ray
ray.init()
assert ray.is_initialized()

ray.shutdown()
assert not ray.is_initialized()

Example use case from Charm4py examples/ray/simple.py

def main(args):
    ray.init()
    assert ray.is_initialized()
    
    ...

Output Message:

------------- Processor 0 Exiting: Called CmiAbort ------------
Reason: AttributeError: module 'charm4py.ray' has no attribute 'is_initialized'
@ritvikrao ritvikrao self-assigned this Jul 8, 2024
@ritvikrao ritvikrao linked a pull request Sep 25, 2024 that will close this issue
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