|
MXL : Media eXchange Layer
MXL
|
Interface for transfer operations. More...
#include <Protocol.hpp>

Public Member Functions | |
| virtual bool | hasPendingWork () const =0 |
| Check if there is uncompleted requests. | |
| virtual void | processCompletion (Completion const &completion)=0 |
| Process a completion event. Any post-processing after a transfer should be done here. | |
| virtual void | registerMemory (std::shared_ptr< Domain > domain)=0 |
| Register local memory regions used in this protocol. | |
| virtual std::size_t | reset ()=0 |
| 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)=0 |
| 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)=0 |
| Transfer samples to a remote target. | |
| virtual | ~EgressProtocol ()=default |
Interface for transfer operations.
Used to abstract away the details of how data is transferred to remote targets.
Definition at line 68 of file Protocol.hpp.
|
virtualdefault |
|
nodiscardpure virtual |
Check if there is uncompleted requests.
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.
|
pure virtual |
Process a completion event. Any post-processing after a transfer should be done here.
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.
|
pure virtual |
Register local memory regions used in this protocol.
| domain | The domain to register memory with. |
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.
|
pure virtual |
Destroy the protocol object.
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.
|
pure virtual |
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. |
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.
|
pure virtual |
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. |
Implemented in mxl::lib::fabrics::ofi::RMAGrainEgressProtocol, and mxl::lib::fabrics::ofi::RMASampleEgressProtocol.