From ef91946dd34a2cfb48ddf66ff6d037941c415cdb Mon Sep 17 00:00:00 2001 From: Bruno Golosio Date: Mon, 22 Mar 2021 00:40:30 +0100 Subject: [PATCH] Fixed small bug --- src/spike_mpi.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spike_mpi.cu b/src/spike_mpi.cu index 5b6bf42..7648881 100644 --- a/src/spike_mpi.cu +++ b/src/spike_mpi.cu @@ -422,6 +422,8 @@ int ConnectMpi::CopySpikeFromRemote(int n_hosts, int max_spike_per_host, // tolto controllo flag spike height ed eventuale ricezione AddOffset<<<(n_spike_tot+1023)/1024, 1024>>> (n_spike_tot, d_ExternalSourceSpikeNodeId, i_remote_node_0); + gpuErrchk( cudaPeekAtLastError() ); + cudaDeviceSynchronize(); PushSpikeFromRemote<<<(n_spike_tot+1023)/1024, 1024>>> (n_spike_tot, d_ExternalSourceSpikeNodeId); gpuErrchk( cudaPeekAtLastError() );