|
MXL : Media eXchange Layer
MXL
|
#include <ProtocolEgressRMA.hpp>


Public Member Functions | |
| virtual bool | hasPendingWork () const final |
| Check if there is uncompleted requests. | |
| virtual void | processCompletion (Completion const &) final |
| Process a completion event. Any post-processing after a transfer should be done here. | |
| virtual void | registerMemory (std::shared_ptr< Domain > domain) final |
| Register local memory regions used in this protocol. | |
| virtual std::size_t | reset () final |
| Destroy the protocol object. | |
| virtual void | transferGrain (Endpoint const &ep, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint32_t payloadOffset, SliceRange const &sliceRange, ::fi_addr_t destAddr=FI_ADDR_UNSPEC) final |
| Transfer a grain to a remote target. | |
| virtual void | transferSamples (Endpoint const &ep, std::uint64_t headIndex, std::size_t count, ::fi_addr_t destAddr=FI_ADDR_UNSPEC) final |
| Transfer samples to a remote target. | |
| Public Member Functions inherited from mxl::lib::fabrics::ofi::EgressProtocol | |
| virtual | ~EgressProtocol ()=default |
Private Member Functions | |
| RMASampleEgressProtocol (Completion::Token token, TargetInfo info, DataLayout::Continuous dataLayout, LocalRegion _localRegion, std::size_t bounceBufferEntryCount) | |
Static Private Member Functions | |
| static std::vector< LocalRegion > | makeScatterGatherList (DataLayout::Continuous const &layout, std::uint64_t headIndex, std::size_t count, LocalRegion const ®ion) |
| Create the scatter-gather list for a given audio region and data layout. This will be used for the remote write transfer. The list will be created based on the head index and count of samples to transfer. | |
Private Attributes | |
| std::size_t | _bounceBufferEntryCount |
| std::uint32_t | _bounceBufferEntryIndex {0} |
| std::vector< LocalRegion > | _entryHeaderRegions |
| std::vector< AudioEntryHeader > | _entryHeaders |
| DataLayout::Continuous | _layout |
| LocalRegion | _localRegion |
| std::size_t | _pending = 0 |
| TargetInfo | _remoteInfo |
| Completion::Token | _token |
Friends | |
| class | RMASampleEgressProtocolTemplate |
Definition at line 79 of file ProtocolEgressRMA.hpp.
|
private |
Definition at line 136 of file ProtocolEgressRMA.cpp.
|
nodiscardfinalvirtual |
Check if there is uncompleted requests.
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 221 of file ProtocolEgressRMA.cpp.
|
staticprivate |
Create the scatter-gather list for a given audio region and data layout. This will be used for the remote write transfer. The list will be created based on the head index and count of samples to transfer.
| layout | The audio data layout. |
| headIndex | The head index of the audio samples to transfer. |
| count | The number of samples per channel to transfer. |
| region | The local region corresponding to the user provided audio region. This is used to calculate the addresses for the scatter-gather list entries. |
Definition at line 231 of file ProtocolEgressRMA.cpp.
|
finalvirtual |
Process a completion event. Any post-processing after a transfer should be done here.
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 213 of file ProtocolEgressRMA.cpp.
|
finalvirtual |
Register local memory regions used in this protocol.
| domain | The domain to register memory with. |
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 146 of file ProtocolEgressRMA.cpp.
|
finalvirtual |
Destroy the protocol object.
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 226 of file ProtocolEgressRMA.cpp.
|
finalvirtual |
Transfer a grain to a remote target.
| localRegion | The local region to transfer from. |
| remoteIndex | The index of the remote grain to transfer to. |
| payloadOffset | The payload offset within the grain. |
| sliceRange | The range of slices to transfer. |
| destAddr | The destination address. This is ignored for connection-oriented endpoints. |
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 175 of file ProtocolEgressRMA.cpp.
|
finalvirtual |
Transfer samples to a remote target.
| headIndex | The head index of the samples to transfer. |
| count | The number of samples per channel to transfer. |
| destAddr | The destination address. This is ignored for connection-oriented endpoints. |
Implements mxl::lib::fabrics::ofi::EgressProtocol.
Definition at line 180 of file ProtocolEgressRMA.cpp.
|
friend |
Definition at line 112 of file ProtocolEgressRMA.hpp.
|
private |
The total number of bounce buffer entries. Used to wrap around the bounce buffer entry index.
Definition at line 141 of file ProtocolEgressRMA.hpp.
|
private |
The index of the bounce buffer entry to use for the next transfer.
Definition at line 140 of file ProtocolEgressRMA.hpp.
|
private |
A vector of local regions corresponding to the entry headers. These regions are registered and used for remote writes to the bounce buffer.
Definition at line 137 of file ProtocolEgressRMA.hpp.
|
private |
A vector of audio entry headers used for the bounce buffer. This is needed to keep track of the metadata of each bounce buffer entry.
Definition at line 135 of file ProtocolEgressRMA.hpp.
|
private |
Definition at line 133 of file ProtocolEgressRMA.hpp.
|
private |
Registered local region corresponding to the user provided audio region.
Definition at line 134 of file ProtocolEgressRMA.hpp.
|
private |
Definition at line 139 of file ProtocolEgressRMA.hpp.
|
private |
Definition at line 132 of file ProtocolEgressRMA.hpp.
|
private |
Definition at line 131 of file ProtocolEgressRMA.hpp.