This class simplifies keeping track of write position in MPI buffer while collocating spikes. More...
#include <send_buffer_position.h>
Public Member Functions | |
| SendBufferPosition () | |
| size_t | begin (const size_t rank) const |
| Returns begin index of specified rank in MPI buffer. | |
| size_t | end (const size_t rank) const |
| Returns end index of specified rank in MPI buffer. | |
| size_t | idx (const size_t rank) const |
| Returns current index of specified rank in MPI buffer. | |
| bool | is_chunk_filled (const size_t rank) const |
| Returns whether the part of the buffer on the specified rank has been filled. | |
| void | increase (const size_t rank) |
Private Attributes | |
| std::vector< size_t > | begin_ |
| first entry for rank | |
| std::vector< size_t > | end_ |
| one beyond last entry for rank | |
| std::vector< size_t > | idx_ |
| next entry in rank to write to | |
This class simplifies keeping track of write position in MPI buffer while collocating spikes.
| nest::SendBufferPosition::SendBufferPosition | ( | ) |
References begin_, end_, nest::MPIManager::get_num_processes(), nest::MPIManager::get_send_recv_count_spike_data_per_rank(), idx_, nest::kernel(), and nest::KernelManager::mpi_manager.
|
inline |
Returns begin index of specified rank in MPI buffer.
References begin_.
Referenced by nest::EventDeliveryManager::set_end_marker_().
|
inline |
Returns end index of specified rank in MPI buffer.
References end_.
Referenced by nest::EventDeliveryManager::get_global_max_spikes_per_rank_(), nest::EventDeliveryManager::reset_complete_marker_spike_data_(), and nest::EventDeliveryManager::set_end_marker_().
|
inline |
Returns current index of specified rank in MPI buffer.
References idx_.
Referenced by nest::EventDeliveryManager::collocate_spike_data_buffers_(), and nest::EventDeliveryManager::set_end_marker_().
|
inline |
References idx_.
Referenced by nest::EventDeliveryManager::collocate_spike_data_buffers_().
|
inline |
Returns whether the part of the buffer on the specified rank has been filled.
| rank | Rank denoting which part of the buffer we check |
Referenced by nest::EventDeliveryManager::collocate_spike_data_buffers_().
|
private |
first entry for rank
Referenced by begin(), and SendBufferPosition().
|
private |
one beyond last entry for rank
Referenced by end(), is_chunk_filled(), and SendBufferPosition().
|
private |
next entry in rank to write to
Referenced by idx(), increase(), is_chunk_filled(), and SendBufferPosition().