-
Notifications
You must be signed in to change notification settings - Fork 390
Fix merging responses in nest-server-mpi
#3492
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
78404ae to
909e5eb
Compare
nest-server-mpi
steffengraber
left a comment
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.
+1 The logic seems perfectly correct to me. Robustness could be increased by additional checks of values and lists. But only if necessary.
|
I am working on better solution of combine function. Thank you for the patience. |
heplesser
left a comment
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.
Overall this looks good to me, but I think docstrings for the new methods would be an advantage for long-term maintenance of the code.
…est-simulator into nest-server-mpi-merge-responses
heplesser
left a comment
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.
@babsey Thanks for the update. I still have some issues, see inline comments.
pynest/nest/server/hl_api_server.py
Outdated
| * the responses are known to be the same from the master and all | ||
| workers. In this case, the combined response is just the master | ||
| response. |
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.
Please avoid loaded terms such as "master" and "workers". All MPI ranks in a NEST simulation are doing the same work, just on different parts of the network. Also, how would it be "known" that we get the same response from each rank?
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.
As I mentioned, it was written mainly on @jougs effort. I am not able to join into the discussion about MPI concept which I am not fully understand of.
pynest/nest/server/hl_api_server.py
Outdated
| * if the response contains one list per process, the combined | ||
| response will be those first list. |
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 don't understand this, especially the "those first list". If I get one list from each rank and the data fall not under the "same from all" clause above, don't I need to combine the lists from all ranks?
|
I apogize for the bad PR. I am not well qualified to resolve this. I suggest that it would be part of the hackathon topic. |
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
|
Pull request automatically marked stale! |
When executing simulation via
nest-server-mpi, the result seems not correctly.In fact, when using a number of processes greater than 1, lets say an example
np = 3.It shows only activity of each 3rd neuron.
It seems that we need to merge the responses of
nest-server-mpi.With this PR, NEST Desktop shows activity of all neurons executed on
nest-server-mpi.