7#include <rdma/fabric.h>
25 virtual void transferGrain(
Endpoint const& ep, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint32_t payloadOffset,
26 SliceRange const& sliceRange, ::fi_addr_t destAddr = FI_ADDR_UNSPEC)
final;
45 virtual std::size_t
reset()
final;
68 virtual void registerMemory(std::shared_ptr<Domain> domain)
override;
91 virtual void transferGrain(
Endpoint const& ep, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint32_t payloadOffset,
92 SliceRange const& sliceRange, ::fi_addr_t destAddr = FI_ADDR_UNSPEC)
final;
96 virtual void transferSamples(
Endpoint const& ep, std::uint64_t headIndex, std::size_t
count, ::fi_addr_t destAddr = FI_ADDR_UNSPEC)
final;
109 virtual std::size_t
reset()
final;
116 std::size_t bounceBufferEntryCount);
152 virtual void registerMemory(std::shared_ptr<Domain> domain)
override;
Type to represent a completion entry from a CompletionQueue.
std::uintptr_t Token
A token used to associate a completion entry with an endpoint.
Interface for transfer operations.
RAII Wrapper around a libfabric endpoint (fi_ep).
virtual void registerMemory(std::shared_ptr< Domain > domain) override
Register memory required by the protocol.
std::optional< std::vector< LocalRegion > > _localRegions
RMAGrainEgressProtocolTemplate(DataLayout::Discrete layout, std::vector< Region > regions)
virtual std::unique_ptr< EgressProtocol > createInstance(Completion::Token, TargetInfo remoteInfo) override
Create a new instance of the protocol for a remote target.
std::vector< Region > _regions
DataLayout::Discrete _layout
DataLayout::Discrete _layout
virtual std::size_t reset() final
Destroy the protocol object.
virtual void processCompletion(Completion const &) final
Process a completion event. Any post-processing after a transfer should be done here.
virtual void transferSamples(Endpoint const &, std::uint64_t, std::size_t, ::fi_addr_t) final
Transfer samples to a remote target.
virtual bool hasPendingWork() const final
Check if there is uncompleted requests.
std::vector< LocalRegion > _localRegions
virtual void registerMemory(std::shared_ptr< Domain > domain) final
Register local memory regions used in this protocol.
friend class RMAGrainEgressProtocolTemplate
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.
RMAGrainEgressProtocol(Completion::Token token, TargetInfo info, DataLayout::Discrete dataLayout, std::vector< LocalRegion > _localRegions)
virtual void registerMemory(std::shared_ptr< Domain > domain) override
Register memory required by the protocol.
DataLayout::Continuous _layout
virtual std::unique_ptr< EgressProtocol > createInstance(Completion::Token, TargetInfo remoteInfo) override
Create a new instance of the protocol for a remote target.
RMASampleEgressProtocolTemplate(DataLayout::Continuous layout, Region region)
std::optional< LocalRegion > _localRegion
std::size_t _bounceBufferEntryCount
std::vector< LocalRegion > _entryHeaderRegions
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 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.
DataLayout::Continuous _layout
virtual std::size_t reset() final
Destroy the protocol object.
std::uint32_t _bounceBufferEntryIndex
RMASampleEgressProtocol(Completion::Token token, TargetInfo info, DataLayout::Continuous dataLayout, LocalRegion _localRegion, std::size_t bounceBufferEntryCount)
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 bool hasPendingWork() const final
Check if there is uncompleted requests.
std::vector< AudioEntryHeader > _entryHeaders
friend class RMASampleEgressProtocolTemplate
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 re...
Represent a memory region (unregistered).
A SliceRange represents a range of slices within a grain.
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.
Continuous layout variant of DataLayout.
Discrete layout variant of DataLayout.
Represent a source memory region used for for data transfer.
TargetInfo contains all the information required by an initiator to operate transfers to the given ta...