Skip to content

Conversation

@babsey
Copy link
Contributor

@babsey babsey commented May 7, 2025

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.

@babsey babsey force-pushed the nest-server-mpi-merge-responses branch from 78404ae to 909e5eb Compare May 7, 2025 13:45
@babsey babsey changed the title Fix merging responses in nest-server-mpi Fix merging responses in nest-server-mpi May 7, 2025
@babsey babsey self-assigned this May 9, 2025
@babsey babsey added this to PyNEST May 19, 2025
@github-project-automation github-project-automation bot moved this to In progress in PyNEST May 19, 2025
@gtrensch gtrensch added T: Bug Wrong statements in the code or documentation S: Normal Handle this with default priority I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Jun 2, 2025
@gtrensch gtrensch moved this from To do to Review in Installation Jun 2, 2025
@heplesser heplesser added S: High Should be handled next and removed S: Normal Handle this with default priority labels Jun 30, 2025
Copy link
Contributor

@steffengraber steffengraber left a 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.

@babsey
Copy link
Contributor Author

babsey commented Jul 7, 2025

I am working on better solution of combine function.

Thank you for the patience.

Copy link
Contributor

@heplesser heplesser left a 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.

@github-project-automation github-project-automation bot moved this from In progress to Review in PyNEST Jul 10, 2025
@babsey babsey changed the base branch from master to rc July 11, 2025 09:29
@babsey babsey changed the base branch from rc to master July 11, 2025 09:29
@gtrensch gtrensch requested a review from heplesser July 25, 2025 07:06
@terhorstd terhorstd requested review from gtrensch and removed request for heplesser July 28, 2025 09:55
@babsey babsey changed the base branch from master to ubuntu-version-bump July 28, 2025 10:46
@babsey babsey changed the base branch from ubuntu-version-bump to master July 28, 2025 10:46
@heplesser heplesser removed the request for review from gtrensch August 7, 2025 13:48
Copy link
Contributor

@heplesser heplesser left a 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.

Comment on lines 564 to 566
* 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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Comment on lines 570 to 571
* if the response contains one list per process, the combined
response will be those first list.
Copy link
Contributor

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?

@babsey
Copy link
Contributor Author

babsey commented Sep 1, 2025

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.
I would appreciate that other would join this issue.

babsey and others added 2 commits September 11, 2025 09:53
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
@github-actions
Copy link

Pull request automatically marked stale!

@github-actions github-actions bot added the stale Automatic marker for inactivity, please have another look here label Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next stale Automatic marker for inactivity, please have another look here T: Bug Wrong statements in the code or documentation

Projects

Status: Review
Status: Review

Development

Successfully merging this pull request may close these issues.

4 participants