|
MXL : Media eXchange Layer
MXL
|
Classes | |
| class | AddressVector |
| RAII Wrapper to a libfabric fi_av instance. More... | |
| class | AudioBounceBuffer |
| A bounce buffer for audio samples. More... | |
| class | AudioBounceBufferEntry |
| An audio bounce buffer entry is backed by a collection of samples The layout is: AudioEntryHeader, followed by samples. More... | |
| struct | AudioEntryHeader |
| Header for an audio bounce buffer entry. More... | |
| class | Completion |
| Type to represent a completion entry from a CompletionQueue. More... | |
| class | CompletionQueue |
| RAII Wrapper around a libfabric completion queue (fi_cq). More... | |
| class | DataLayout |
| Describes the layout of data within memory regions. More... | |
| class | Domain |
| RAII Wrapper around a libfabric domain (fi_domain). More... | |
| struct | EfaAddress |
| Decoded representation of an FI_ADDR_EFA address. More... | |
| class | EgressProtocol |
| Interface for transfer operations. More... | |
| class | EgressProtocolTemplate |
| class | Endpoint |
| RAII Wrapper around a libfabric endpoint (fi_ep). More... | |
| class | Event |
| Type to represent an event entry from an EventQueue. More... | |
| class | EventQueue |
| RAII Wrapper around a libfabric event queue (fi_eq). More... | |
| class | Exception |
| Custom exception type used in the fabrics library. More... | |
| class | Fabric |
| RAIII wrapper around a libfabric fabric object (fid_fabric). More... | |
| class | FabricAddress |
| Owning, type-safe representation of a libfabric address. More... | |
| class | FabricException |
| An internal exception type that extends. More... | |
| class | FabricInfoIterator |
| Implements a const/non-const ForwardIterator over a ::fi_info linked list, for use with range-based for-loops, std::algorithms and ranges. More... | |
| class | FabricInfoList |
| Wrapper for a linked-list of fi_info objects, mostly returned from ::fi_getinfo. More... | |
| class | FabricInfoView |
| Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList. More... | |
| class | FabricInterfaceDescription |
| class | FabricInterfaceList |
| class | FabricsInstance |
| The underlying implementation of an mxlFabricsInstance API object. More... | |
| class | ImmDataGrain |
| Immediate data representation for discrete flow transfers. More... | |
| class | IngressProtocol |
| Interface for post-processing on transfer reception. More... | |
| class | Initiator |
| Abstract base class for Initiator implementations. More... | |
| struct | InitiatorSetupOptions |
| Provider-independent tuning options for initiator setup. More... | |
| class | InitiatorWrapper |
| A wrapper around Initiator implementations. More... | |
| struct | LocalRegion |
| Represent a source memory region used for for data transfer. More... | |
| class | LocalRegionGroup |
| Represent a scatter-gather list of source memory regions used for data transfer. More... | |
| class | LocalRegionGroupSpan |
| Represent a span of a LocalRegionGroup. More... | |
| class | MemoryRegion |
| RAII wrapper around a libfabric memory region (fid_mr). More... | |
| class | MxlRegions |
| Represent a collection of memory regions. More... | |
| struct | OfiSockaddrIb |
| Local declaration of libfabric's internal struct ofi_sockaddr_ib. More... | |
| struct | overloaded |
| class | PassiveEndpoint |
| RAII Wrapper around a libfabric passive endpoint (fid_pep). More... | |
| class | ProviderCapabilities |
| class | ProviderConfig |
| struct | ProviderConfigValues |
| class | RawFabricAddress |
| Wrapper around a libfabric endpoint address. More... | |
| class | RCInitiator |
| An initiator that uses reliable connected endpoints to transfer data to targets. More... | |
| class | RCInitiatorEndpoint |
| A single endpoint connected to a target that will be created when the user adds a target to an initiator. More... | |
| class | RCTarget |
| Reliable Connected (RC) Target implementation. More... | |
| class | RDMInitiator |
| An initiator that uses reliable datagram (RDM) endpoints for data transfers. More... | |
| class | RDMInitiatorTarget |
| A single endpoint within an RDMInitiator. More... | |
| class | RDMTarget |
| Reliable Datagram (RDM) Target implementation. More... | |
| class | Region |
| Represent a memory region (unregistered). More... | |
| class | RegionGroup |
| Represent a group of memory regions. More... | |
| class | RegisteredRegion |
| Represent a registered memory region. More... | |
| struct | RemoteRegion |
| Represent a remote memory region used for data transfer. More... | |
| class | RemoteRegionGroup |
| Represent a group of remote memory regions used for data transfer. More... | |
| class | RMAGrainEgressProtocol |
| class | RMAGrainEgressProtocolTemplate |
| Template for creating an Egress protocol for RMA writer endpoint to handle transferring grains to remote targets using remote write operations. More... | |
| class | RMAGrainIngressProtocol |
| Ingress protocol for RMA writer endpoint. More... | |
| class | RMASampleEgressProtocol |
| class | RMASampleEgressProtocolTemplate |
| Template for creating an Egress protocol for RMA writer endpoint to handles transferring audio data to remote targets using remote write operations. More... | |
| class | RMASampleIngressProtocol |
| Ingress protocol for RMA writer endpoint for audio samples. More... | |
| class | SliceRange |
| A SliceRange represents a range of slices within a grain. More... | |
| class | Target |
| Abstract base class for Target implementations. More... | |
| struct | TargetInfo |
| TargetInfo contains all the information required by an initiator to operate transfers to the given target. More... | |
| struct | TargetInfoBounceBufferInfo |
| Information about the bounce buffer on the target, if the target uses one. More... | |
| struct | TargetSetupOptions |
| Provider-independent tuning options for target setup. More... | |
| class | TargetWrapper |
| A wrapper around Target implementations. More... | |
Typedefs | |
| using | InnerRegion = std::vector<std::uint8_t> |
| using | InnerRegions = std::vector<InnerRegion> |
Enumerations | |
| enum class | FabricAddressFormat : std::uint32_t { Unspec = static_cast<std::uint32_t>(FI_ADDR_UNSPEC) , Sockaddr = FI_SOCKADDR , SockaddrIp = FI_SOCKADDR_IP , SockaddrIn = FI_SOCKADDR_IN , SockaddrIn6 = FI_SOCKADDR_IN6 , SockaddrIb = FI_SOCKADDR_IB , Efa = FI_ADDR_EFA , String = FI_ADDR_STR } |
| enum class | Provider { ANY , TCP , VERBS , EFA , SHM } |
| Internal representation of supported libfabric providers. More... | |
| enum class | QueueReadMode { Blocking , NonBlocking } |
| Enum to select blocking or non-blocking queue read behaviour. More... | |
Functions | |
| template<typename F> | |
| void | catchAndLogFabricError (F &&fun, std::string_view msg) |
| static FabricInfo | clone (::fi_info const *) noexcept |
| RAII wrapper around a libfabric `fi_info`` structure. | |
| FabricAddressFormat | convertAddressFormat (std::uint32_t fiAddrFormat) |
| Convert from libfabric address format value to FabricAddressFormat. | |
| void | drainEventQueue (EventQueue &eq) |
| Read all entries from a connectionless endpoint's event queue and log the errors among them. | |
| static FabricInfo | empty () noexcept |
| Create and empty FabricInfo. | |
| FabricInfo (::fi_info *) noexcept | |
| Private constructor can only be called by static members. Used to enforce clear ownership semantics. | |
| FabricInfo (FabricInfo &&other) noexcept | |
| FabricInfo (FabricInfo const &) noexcept | |
| FabricInfo (FabricInfoView) noexcept | |
| Create an owning FabricInfo object from a non-owning view. | |
| template<typename F, typename... T> | |
| int | fiCall (F &&fun, std::string_view msg, T &&... args) |
| Call a libfabric function and check its return code. | |
| void | fiInitLogging () |
| Initalize logging for libfabric. After this call, all libfabric internal logs will be written to the mxl logging system. It is save to call this function multiple times and concurrently from different threads. If this function throws an exception, the program cannot continue. | |
| std::string | fiToString (void *any, ::fi_type type) |
| std::uint32_t | fiVersion () noexcept |
| Returns the libfabric version this library was compiled with. | |
| void | free () noexcept |
| Called internally to release the ::fi_info object. | |
| mxlFabricsInitiatorConfig | getDefaultInitiatorConfig (mxlFlowReader reader) |
| mxlFabricsTargetConfig | getDefaultTargetConfig (mxlFlowWriter writer) |
| std::shared_ptr< Domain > | getDomain (bool virtualAddress=false, bool rx_cq_data_mode=false) |
| MxlRegions | getEmptyVideoMxlRegions () |
| std::uint64_t | getGrainIndexInRingSlot (std::vector< Region > const ®ions, std::uint16_t slot) |
| std::pair< MxlRegions, InnerRegions > | getHostRegionGroups () |
| MxlRegions | getMxlRegions (std::vector< std::vector< std::uint8_t > > const &innerRegions, DataLayout dataLayout=DataLayout::fromDiscrete({8, 0, 0, 0}, 1)) |
| std::string | interfaceCapsString (std::uint64_t caps) |
| FabricAddressFormat | mustConvertAddressFormat (std::uint32_t fiAddrFormat) |
| Convert from libfabric address format value to FabricAddressFormat Never returns FabricAddressFormat::Unspec, and throws InvalidArgument instead. | |
| MxlRegions | mxlFabricsRegionsFromFlow (FlowData const &flow) |
| Convert a FlowData's memory regions to MxlRegions. FlowData are obtained from an MXL FlowWriter or FlowReader. | |
| MxlRegions | mxlFabricsRegionsFromMutableFlow (FlowData &flow) |
| Convert a FlowData's memory regions to MxlRegions. FlowData are obtained from an MXL FlowWriter or FlowReader. | |
| mxlStatus | mxlStatusFromFiErrno (int fiErrno) |
| Convert an error code returned by libfabric to an appropriate mxlStatus code. | |
| ::fi_info & | operator* () noexcept |
| Dereferencing the FabricInfo return the raw ::fi_info object managed by this object. | |
| ::fi_info * | operator-> () noexcept |
| Dereferencing the FabricInfo return the raw ::fi_info object managed by this object. | |
| FabricInfo & | operator= (FabricInfo &&) noexcept |
| void | operator= (FabricInfo const &other) noexcept |
| static FabricInfo | own (::fi_info *) noexcept |
| Own an existing ::fi_info object. | |
| FabricInterfaceList | probeInterfaces (std::optional< std::reference_wrapper<::mxlFabricsInterfaceConfig const > > query) |
| std::optional< Provider > | providerFromAPI (mxlFabricsProvider api) noexcept |
| Convert between external and internal versions of this type. | |
| std::optional< Provider > | providerFromString (std::string const &s) noexcept |
| Parse a provider name string, and return the enum value. | |
| mxlFabricsProvider | providerToAPI (Provider provider) noexcept |
| Convert between external and internal versions of this type. | |
| ::fi_info * | raw () noexcept |
| Returns the raw ::fi_info object managed by this FabricInfo instance. | |
| template<QueueReadMode qrm> | |
| std::optional< Completion > | readCompletionQueue (CompletionQueue &eq, std::chrono::steady_clock::duration timeout) |
| Helper to read a completion queue with blocking or non-blocking behaviour. | |
| template<QueueReadMode qrm> | |
| std::pair< std::optional< Completion >, std::optional< Event > > | readEndpointQueues (Endpoint &ep, std::chrono::steady_clock::duration timeout) |
| Helper to read both completion and event queues of an endpoint with blocking or non-blocking behaviour. | |
| template<QueueReadMode qrm> | |
| std::optional< Event > | readEventQueue (EventQueue &eq, std::chrono::steady_clock::duration timeout) |
| Helper to read an event queue with blocking or non-blocking behaviour. | |
| void | requireCapability (FabricInfoView info, std::uint64_t cap, std::string_view message) |
| std::unique_ptr< EgressProtocolTemplate > | selectEgressProtocol (DataLayout const &layout, std::vector< Region > regions) |
| Select an appropriate egress protocol based on the data layout. | |
| std::unique_ptr< IngressProtocol > | selectIngressProtocol (DataLayout const &layout, std::vector< Region > regions, std::uint32_t maxSyncBatchSize) |
| Select an appropriate ingress protocol based on the data layout. | |
| std::pair< FabricInfo, ProviderConfig > | selectSourceInterface (::mxlFabricsInterfaceConfig const &interfaceConfig, bool isTarget) |
| void | setDeviceId (::fi_mr_attr &attr, Region::Location loc) |
| void | setValidSlicesForGrain (std::vector< Region > const ®ions, std::uint16_t slot, std::uint16_t validSlices) |
| std::vector< LocalRegion > | toLocal (std::vector< RegisteredRegion > const &groups) noexcept |
| std::vector< RemoteRegion > | toRemote (std::vector< RegisteredRegion > const &groups, bool useVirtualAddress) noexcept |
| FabricInfoView | view () const noexcept |
| Return a non-owning view of the FabricInfo. | |
| ~FabricInfo () noexcept | |
Variables | |
| ::fi_info * | _raw |
| static std::map< std::string_view, Provider > const | providerStringMap |
| using mxl::lib::fabrics::ofi::InnerRegion = std::vector<std::uint8_t> |
| using mxl::lib::fabrics::ofi::InnerRegions = std::vector<InnerRegion> |
|
strong |
| Enumerator | |
|---|---|
| Unspec | |
| Sockaddr | |
| SockaddrIp | |
| SockaddrIn | |
| SockaddrIn6 | |
| SockaddrIb | |
| Efa | |
| String | |
Definition at line 16 of file FabricAddress.hpp.
|
strong |
|
strong |
Enum to select blocking or non-blocking queue read behaviour.
| Enumerator | |
|---|---|
| Blocking | |
| NonBlocking | |
Definition at line 24 of file QueueHelpers.hpp.
| void mxl::lib::fabrics::ofi::catchAndLogFabricError | ( | F && | fun, |
| std::string_view | msg ) |
Definition at line 168 of file Exception.hpp.
|
staticnoexcept |
RAII wrapper around a libfabric `fi_info`` structure.
Manages the lifetime of a fi_info object, ensuring that it is properly deallocated when the FabricInfo object goes out of scope. */ class FabricInfo { public: /** Clone an existing ::fi_info structure, take ownership of the cloned object.
Definition at line 28 of file FabricInfo.cpp.
|
nodiscard |
Convert from libfabric address format value to FabricAddressFormat.
Definition at line 191 of file FabricAddress.cpp.
|
inline |
Read all entries from a connectionless endpoint's event queue and log the errors among them.
The errors concern work the provider does on its own behalf, such as EFA's peer handshake, so they are only logged.
| eq | The event queue to drain. |
Definition at line 115 of file QueueHelpers.hpp.
|
staticnoexcept |
Create and empty FabricInfo.
|
explicitprivatenoexcept |
Private constructor can only be called by static members. Used to enforce clear ownership semantics.
|
noexcept |
|
noexcept |
|
noexcept |
Create an owning FabricInfo object from a non-owning view.
| int mxl::lib::fabrics::ofi::fiCall | ( | F && | fun, |
| std::string_view | msg, | ||
| T &&... | args ) |
Call a libfabric function and check its return code.
If the code is not FI_SUCCESS, throws an FabricException that includes the error code, and the message passed in as the second argument.
Definition at line 155 of file Exception.hpp.
| void mxl::lib::fabrics::ofi::fiInitLogging | ( | ) |
Initalize logging for libfabric. After this call, all libfabric internal logs will be written to the mxl logging system. It is save to call this function multiple times and concurrently from different threads. If this function throws an exception, the program cannot continue.
Definition at line 160 of file FILogging.cpp.
| std::string mxl::lib::fabrics::ofi::fiToString | ( | void * | any, |
| ::fi_type | type ) |
Definition at line 45 of file Format.cpp.
|
noexcept |
Returns the libfabric version this library was compiled with.
Definition at line 10 of file FabricVersion.cpp.
|
privatenoexcept |
Called internally to release the ::fi_info object.
|
inline |
Definition at line 36 of file Util.hpp.
|
inlinenodiscard |
Definition at line 26 of file Util.hpp.
|
inline |
Definition at line 46 of file Util.hpp.
|
inline |
Definition at line 78 of file Util.hpp.
| std::uint64_t mxl::lib::fabrics::ofi::getGrainIndexInRingSlot | ( | std::vector< Region > const & | regions, |
| std::uint16_t | slot ) |
Definition at line 208 of file Region.cpp.
|
inline |
Warning: Do not modify the values below, you will break many tests
Definition at line 83 of file Util.hpp.
|
inline |
Definition at line 104 of file Util.hpp.
| std::string mxl::lib::fabrics::ofi::interfaceCapsString | ( | std::uint64_t | caps | ) |
Definition at line 11 of file Format.cpp.
|
nodiscard |
Convert from libfabric address format value to FabricAddressFormat Never returns FabricAddressFormat::Unspec, and throws InvalidArgument instead.
Definition at line 214 of file FabricAddress.cpp.
|
nodiscard |
Convert a FlowData's memory regions to MxlRegions. FlowData are obtained from an MXL FlowWriter or FlowReader.
Definition at line 153 of file Region.cpp.
|
nodiscard |
Convert a FlowData's memory regions to MxlRegions. FlowData are obtained from an MXL FlowWriter or FlowReader.
Definition at line 130 of file Region.cpp.
| mxlStatus mxl::lib::fabrics::ofi::mxlStatusFromFiErrno | ( | int | fiErrno | ) |
Convert an error code returned by libfabric to an appropriate mxlStatus code.
Definition at line 41 of file Exception.cpp.
|
nodiscardnoexcept |
Dereferencing the FabricInfo return the raw ::fi_info object managed by this object.
Dereferencing the FabricInfo return the raw ::fi_info object managed by this object.
|
nodiscardnoexcept |
Dereferencing the FabricInfo return the raw ::fi_info object managed by this object.
|
noexcept |
|
noexcept |
|
staticnoexcept |
Own an existing ::fi_info object.
The object will be free'd when the FabricInfo object goes out of scope.
|
nodiscard |
Query path: enumerate all available fabric interfaces matching the optional filter criteria. Capabilities in the query are ignored and all matching interfaces are returned with their reported capabilities as informational output. When query is nullopt, all interfaces across all providers are returned.
Definition at line 72 of file FabricInterfaceProbe.cpp.
|
noexcept |
Convert between external and internal versions of this type.
Definition at line 35 of file Provider.cpp.
|
noexcept |
Parse a provider name string, and return the enum value.
Returns std::nullopt if the string passed was not a valid provider name.
Definition at line 49 of file Provider.cpp.
|
noexcept |
Convert between external and internal versions of this type.
Definition at line 21 of file Provider.cpp.
|
nodiscardnoexcept |
Returns the raw ::fi_info object managed by this FabricInfo instance.
Returns the raw ::fi_info object managed by this FabricInfo instance.
| std::optional< Completion > mxl::lib::fabrics::ofi::readCompletionQueue | ( | CompletionQueue & | eq, |
| std::chrono::steady_clock::duration | timeout ) |
Helper to read a completion queue with blocking or non-blocking behaviour.
| qrm | The queue read mode, either Blocking or NonBlocking. |
| eq | The completion queue to read from. |
| timeout | The timeout to use for blocking reads. |
Definition at line 91 of file QueueHelpers.hpp.
| std::pair< std::optional< Completion >, std::optional< Event > > mxl::lib::fabrics::ofi::readEndpointQueues | ( | Endpoint & | ep, |
| std::chrono::steady_clock::duration | timeout ) |
Helper to read both completion and event queues of an endpoint with blocking or non-blocking behaviour.
| qrm | The queue read mode, either Blocking or NonBlocking. |
| ep | The endpoint to read from. |
| timeout | The timeout to use for blocking reads. |
Definition at line 39 of file QueueHelpers.hpp.
| std::optional< Event > mxl::lib::fabrics::ofi::readEventQueue | ( | EventQueue & | eq, |
| std::chrono::steady_clock::duration | timeout ) |
Helper to read an event queue with blocking or non-blocking behaviour.
| qrm | The queue read mode, either Blocking or NonBlocking. |
| eq | The event queue to read from. |
| timeout | The timeout to use for blocking reads. |
Definition at line 65 of file QueueHelpers.hpp.
| void mxl::lib::fabrics::ofi::requireCapability | ( | FabricInfoView | info, |
| std::uint64_t | cap, | ||
| std::string_view | message ) |
Definition at line 10 of file FabricInfoHelpers.cpp.
|
nodiscard |
Select an appropriate egress protocol based on the data layout.
| layout | The data layout. |
| regions | The regions involved. |
Definition at line 33 of file Protocol.cpp.
|
nodiscard |
Select an appropriate ingress protocol based on the data layout.
| layout | The data layout. |
| regions | The regions involved. |
| maxSyncBatchSize | The maximum batch size for transfers. |
Definition at line 13 of file Protocol.cpp.
|
nodiscard |
Setup path: select a single source interface for target or initiator setup. Capabilities from interfaceConfig are treated as requirements if no transfer capability (REMOTE_WRITE or SEND_RECEIVE) is set, REMOTE_WRITE is applied with a warning. Returns the matched fabric info and its resolved provider configuration.
| isTarget | true for target (FI_REMOTE_WRITE), false for initiator (FI_WRITE). |
| Exception::noFabric | if no matching interface is found or capabilities are unsupported. |
Definition at line 164 of file FabricInterfaceProbe.cpp.
| void mxl::lib::fabrics::ofi::setDeviceId | ( | ::fi_mr_attr & | attr, |
| Region::Location | loc ) |
Definition at line 20 of file MemoryRegion.cpp.
| void mxl::lib::fabrics::ofi::setValidSlicesForGrain | ( | std::vector< Region > const & | regions, |
| std::uint16_t | slot, | ||
| std::uint16_t | validSlices ) |
Definition at line 218 of file Region.cpp.
|
noexcept |
Generate a list of LocalRegions from a list of RegisteredRegions.
Definition at line 32 of file RegisteredRegion.cpp.
|
noexcept |
Generate a list of RemoteRegions from a list of RegisteredRegions.
| useVirtualAddress | If true, the RemoteRegions will use the virtual addresses. If false, the RemoteRegions will use zero-based addresses. |
Definition at line 24 of file RegisteredRegion.cpp.
|
nodiscardnoexcept |
Return a non-owning view of the FabricInfo.
Definition at line 105 of file FabricInfo.cpp.
|
noexcept |
Definition at line 45 of file FabricInfo.cpp.
|
private |
Definition at line 100 of file FabricInfo.hpp.
|
static |
Definition at line 13 of file Provider.cpp.