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

Fix for TypeError when --available-accelerators is not specificied in htex process worker pool #3132

Merged
merged 10 commits into from
Mar 18, 2024
Merged

Conversation

Harichandra-Prasath
Copy link
Contributor

Description

Fix of type error for the argument handling for accelerators-available

Changed Behaviour

There wont be typeError if no arguments are passed for acceleratots-available. Defaulted to zero

Fixes

Fixes #3110

Type of change

Choose which options apply, and delete the ones which do not apply.

  • Bug fix

@@ -824,7 +824,7 @@ def strategyorlist(s: str):
required=True,
help="Whether/how workers should control CPU affinity.")
parser.add_argument("--available-accelerators", type=str, nargs="*",
help="Names of available accelerators")
help="Names of available accelerators, If not given Assumed to be zero accelerators available", default=[])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't capitalize if and Assumed here

@benclifford
Copy link
Collaborator

thanks, I'll try this out in my development environment

@Harichandra-Prasath
Copy link
Contributor Author

Ok sir, let me know if any changes to be made

@yadudoc
Copy link
Member

yadudoc commented Mar 7, 2024

@Harichandra-Prasath, it looks like @benclifford is waiting for you to make the capitalization changes he recommended in his comments. Could you take a look at that, please? Once those changes are made we can merge this PR.

@Harichandra-Prasath
Copy link
Contributor Author

@yadudoc Made the changes sir.

@Harichandra-Prasath
Copy link
Contributor Author

All tests are passed sir

@benclifford benclifford self-requested a review March 18, 2024 09:31
@benclifford benclifford changed the title Fix for TypeError of accelerators-available Fix for TypeError when --available-accelerators is not specificied in htex process worker pool Mar 18, 2024
@benclifford benclifford merged commit 648f4d1 into Parsl:master Mar 18, 2024
6 checks passed
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 this pull request may close these issues.

missing process_worker_pool --available-accelerators commandline gives awkward error
3 participants