void EventDeliveryManager::gather_events( bool done ) { // IMPORTANT: Ensure that gather_events(..) is called from a single thread and // NOT from a parallel OpenMP region!!! // Stop watch for time measurements within this function static Stopwatch stw_local; stw_local.reset(); stw_local.start(); collocate_buffers_( done ); stw_local.stop(); time_collocate_ += stw_local.elapsed(); stw_local.reset(); stw_local.start(); if ( off_grid_spiking_ ) { kernel().mpi_manager.communicate( local_offgrid_spikes_, global_offgrid_spikes_, displacements_ ); } else { kernel().mpi_manager.communicate( local_grid_spikes_, global_grid_spikes_, displacements_ ); } stw_local.stop(); time_communicate_ += stw_local.elapsed(); }
void EventDeliveryManager::gather_events( bool done ) { collocate_buffers_( done ); if ( off_grid_spiking_ ) kernel().mpi_manager.communicate( local_offgrid_spikes_, global_offgrid_spikes_, displacements_ ); else kernel().mpi_manager.communicate( local_grid_spikes_, global_grid_spikes_, displacements_ ); }