-
Notifications
You must be signed in to change notification settings - Fork 388
Create() does not work MPI-parallel with arrays of parameter values #3591
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
base: master
Are you sure you want to change the base?
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.
@med-ayssar Thanks for the PR, but I see some issues, see below. I wonder if we shouldn't leave the fix for PyNEST-NG—no user has complained about this ever ;).
| only_local_nodes = list(itertools.compress(nodes, local_nodes)) | ||
| if len(only_local_nodes) == 0: | ||
| return |
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 am afraid of corner cases here. If SetStatus should trigger MPI communication, but some rank never calls SetStatus in the kernel, we will hang. So I would not want to return here.
| if params_is_dict: | ||
| node_params = only_local_nodes[0].get() if set_status_nodes else nodes[0].get() |
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.
Here, I think the and set_status_nodes needs to stay where it is. The function here mixes in a not very good way setting node and synapse status and everything under this if, I believe, applies only to nodes.
Fixes #3587