Skip to content

Fix MPI error for simulations using point-to-point communication #130

Merged
gmtiddia merged 2 commits intonest:mainfrom
gmtiddia:fix_mpi_p2p
Apr 10, 2026
Merged

Fix MPI error for simulations using point-to-point communication #130
gmtiddia merged 2 commits intonest:mainfrom
gmtiddia:fix_mpi_p2p

Conversation

@gmtiddia
Copy link
Copy Markdown
Collaborator

@gmtiddia gmtiddia commented Mar 24, 2026

This PR solves the double free or corruption error on cuRAND generator when performing simulations with point-to-point communications on 2.0 version.

Additionally, it adds the arguments to MPI Init, as done in this commit of @JoseJVS.

Spike times checked performing a MAM simulation and comparing to mpi_com (last commit: da2a463) using the same seed.

@gmtiddia gmtiddia requested a review from golosio March 24, 2026 11:39
@JoseJVS JoseJVS self-requested a review March 24, 2026 14:13
Copy link
Copy Markdown
Collaborator

@JoseJVS JoseJVS left a comment

Choose a reason for hiding this comment

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

Thank you @gmtiddia for bringing up these changes.
As we previously discussed, the changes for the initialization of MPI are necessary especially when interacting with additional frameworks such as mpi4py in the same simulation script.
Also cleaning up the pointer variable after delete is certainly necessary too to avoid double delete issues like those you saw with the MAM.
I agree with merging this PR.

@gmtiddia gmtiddia merged commit 90f87ab into nest:main Apr 10, 2026
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.

2 participants