Skip to content

Conversation

@heplesser
Copy link
Contributor

This PR is a backport of a corresponding fix in PyNEST-NG. It fixes code leading to undefined MPI behaviour (passing nullptr for sendbuf to MPI_Allgatherv() and corrects the selection logic if only neurons with certain parameters are requested, as well as fixing a doubling of device entries from threads. It furthermore extends the tests to cover more cases, especially parallel and including devices.

The code for GetNodes() could be further improved. I have done this in the PyNEST-NG branch, see https://github.com/heplesser/nest-simulator/blob/da99c325a540b1a769c59530b5e1436bae65f1ea/nestkernel/node_manager.cpp#L338, but will not backport this here any more.

@heplesser heplesser added T: Bug Wrong statements in the code or documentation S: High Should be handled next I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Sep 26, 2025
@heplesser heplesser added this to Kernel Sep 26, 2025
@github-project-automation github-project-automation bot moved this to In progress in Kernel Sep 26, 2025
Co-authored-by: med-ayssar <med.ayssar@gmail.com>
@med-ayssar med-ayssar self-requested a review September 28, 2025 15:52
Copy link
Contributor

@med-ayssar med-ayssar left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@pnbabu pnbabu left a comment

Choose a reason for hiding this comment

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

Looks good to me too!

@heplesser heplesser merged commit 258becd into nest:master Sep 30, 2025
29 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Kernel Sep 30, 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 T: Bug Wrong statements in the code or documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants