-
Notifications
You must be signed in to change notification settings - Fork 370
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
Too many connections to MUSIC output proxies created when NEST runs MPI-parallel #1974
Comments
I believe the problem is located in nest-simulator/nestkernel/connection_manager.cpp Lines 1244 to 1253 in 470e1a4
As a brute-force solution, I have experimented with the following fix: if ( target->local_receiver() )
{
if ( target->one_node_per_process() )
{
if ( kernel().node_manager.is_local_node( source ))
{
return CONNECT_TO_DEVICE;
}
else
{
return NO_CONNECTION;
}
} It seems to solve the problem above, but I have not checked for side effects. |
@mdjurfeldt Just an alert about this bug I found, in case MUSIC users contact you about it. |
Your fix looks reasonable to me and I can't think of a bad side-effect. Could you please send a PR? Thanks! |
Issue automatically marked stale! |
The following code should connect each parrot neuron exactly once to the MUSIC output proxy:
Running the code on a single process, this works fine, and the following code
prints this output:
This is the same output we get if
out
were a spike recorder.Running on two MPI processes, one would expect that each rank has one connection, from the neuron it holds to the local device. But we get two connections on each rank:
If
out
is a spike recorder, we get one connection per rank as expected.The consequence of this is that spikes are sent "double up". The example here leaves out the setting of
music_channel
to keep the reproducer minimal; it only affects the value ofrport
.This bug must have existed for a while and most likely affects all MUSIC out proxies; I am not sure about MUSIC in proxies.
The text was updated successfully, but these errors were encountered: