MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::fabrics::ofi::IngressProtocol Class Referenceabstract

Interface for post-processing on transfer reception. More...

#include <Protocol.hpp>

Inheritance diagram for mxl::lib::fabrics::ofi::IngressProtocol:

Public Member Functions

virtual std::optional< TargetInfoBounceBufferInfo > bounceBufferInfo () const =0
virtual bool canReadGrains () const noexcept=0
 Check if this protocol can read grains.
virtual bool canReadSamples () const noexcept=0
 Check if this protocol can read samples.
virtual std::optional< Target::ReadResult > read (Endpoint const &endpoint, Completion const &completion)=0
 Process a completion with the given immediate data.
virtual std::vector< RemoteRegion > registerMemory (std::shared_ptr< Domain > domain)=0
 Register local memory regions used in this protocol.
virtual void reset ()=0
 Destroy the protocol object.
virtual void start (Endpoint const &endpoint)=0
 Start receiving.
virtual ~IngressProtocol ()=default

Detailed Description

Interface for post-processing on transfer reception.

Allows to abstract away any post-processing that needs to be done after a transfer completes.

Definition at line 23 of file Protocol.hpp.

Constructor & Destructor Documentation

◆ ~IngressProtocol()

virtual mxl::lib::fabrics::ofi::IngressProtocol::~IngressProtocol ( )
virtualdefault

Member Function Documentation

◆ bounceBufferInfo()

virtual std::optional< TargetInfoBounceBufferInfo > mxl::lib::fabrics::ofi::IngressProtocol::bounceBufferInfo ( ) const
nodiscardpure virtual

◆ canReadGrains()

virtual bool mxl::lib::fabrics::ofi::IngressProtocol::canReadGrains ( ) const
nodiscardpure virtualnoexcept

Check if this protocol can read grains.

Implemented in mxl::lib::fabrics::ofi::RMAGrainIngressProtocol, and mxl::lib::fabrics::ofi::RMASampleIngressProtocol.

◆ canReadSamples()

virtual bool mxl::lib::fabrics::ofi::IngressProtocol::canReadSamples ( ) const
nodiscardpure virtualnoexcept

Check if this protocol can read samples.

Implemented in mxl::lib::fabrics::ofi::RMAGrainIngressProtocol, and mxl::lib::fabrics::ofi::RMASampleIngressProtocol.

◆ read()

virtual std::optional< Target::ReadResult > mxl::lib::fabrics::ofi::IngressProtocol::read ( Endpoint const & endpoint,
Completion const & completion )
nodiscardpure virtual

Process a completion with the given immediate data.

Parameters
endpointThe endpoint associated with the completion
completionThe completion object to process.

Implemented in mxl::lib::fabrics::ofi::RMAGrainIngressProtocol, and mxl::lib::fabrics::ofi::RMASampleIngressProtocol.

◆ registerMemory()

virtual std::vector< RemoteRegion > mxl::lib::fabrics::ofi::IngressProtocol::registerMemory ( std::shared_ptr< Domain > domain)
nodiscardpure virtual

Register local memory regions used in this protocol.

Parameters
domainThe domain to register memory with.
Returns
A vector of RemoteRegion representing the registered memory regions for remote access.

Implemented in mxl::lib::fabrics::ofi::RMAGrainIngressProtocol, and mxl::lib::fabrics::ofi::RMASampleIngressProtocol.

◆ reset()

virtual void mxl::lib::fabrics::ofi::IngressProtocol::reset ( )
pure virtual

◆ start()

virtual void mxl::lib::fabrics::ofi::IngressProtocol::start ( Endpoint const & endpoint)
pure virtual

The documentation for this class was generated from the following file: