-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add hostlist expand as alternative to scontrol #2092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sdesrozis thanks for the PR
ignite/utils.py
Outdated
@@ -271,3 +272,70 @@ def wrapper(*args: Any, **kwargs: Dict[str, Any]) -> Callable: | |||
return cast(F, wrapper) | |||
|
|||
return decorator | |||
|
|||
|
|||
def expand_hostlist(nodelist: str) -> List[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we need this in ignite.utils
and as a public method. Let's keep it near in ignite/distributed/comp_models/native.py
and as a private method...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sdesrozis !
Fixes #2051
Description:
Add an alternative to scontrol for expanding hostname list used by SLURM.
Based on https://github.com/LLNL/py-hostlist
Check list: