MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::fabrics::ofi::RDMInitiator Class Reference

An initiator that uses reliable datagram (RDM) endpoints for data transfers. More...

#include <RDMInitiator.hpp>

Inheritance diagram for mxl::lib::fabrics::ofi::RDMInitiator:
Collaboration diagram for mxl::lib::fabrics::ofi::RDMInitiator:

Public Member Functions

virtual void addTarget (TargetInfo const &remoteTargetInfo) final
 Add a target to the initiator.
virtual Initiator::MakeProgressResult makeProgress () final
 Attempts to progress execution, including connection management and data operations.
virtual Initiator::MakeProgressResult makeProgressBlocking (std::chrono::steady_clock::duration timeout) final
 Attempts to progress execution, including connection management and data operations.
virtual void removeTarget (TargetInfo const &remoteTargetInfo) final
 Remove a target from the initiator.
virtual void shutdown () final
 Shut down the initiator gracefully.
virtual void transferGrain (std::uint64_t grainIndex, std::uint16_t startSlice, std::uint16_t endSlice) final
 Transfer a grain to all targets.
virtual void transferGrainToTarget (Endpoint::Id targetId, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint64_t payloadOffset, std::uint16_t startSlice, std::uint16_t endSlice) final
 Transfer a grain to a specific target.
virtual void transferSamples (std::uint64_t headIndex, std::size_t count) final
 Transfer samples to all targets.
Public Member Functions inherited from mxl::lib::fabrics::ofi::Initiator
virtual ~Initiator ()=default

Static Public Member Functions

static std::unique_ptr< RDMInitiator > setup (mxlFabricsInitiatorConfig const &config, FabricInfoView info, InitiatorSetupOptions const &options={})
 Set up a new RDMInitiator.

Private Member Functions

void activateIdleEndpoints ()
 Try to activate any idle endpoints.
Initiator::MakeProgressResult afterProgressResult () const noexcept
 Returns true if any of the endpoints contained in this initiator have pending work.
void blockOnCQ (std::chrono::steady_clock::duration timeout)
 Block on the completion queue until a completion arrives or the timeout elapses, then process all available completions.
void drainCQ ()
 Process completions until the completion queue is empty.
void evictRemovedTargets ()
 Complete the removal of targets whose outstanding writes have completed, and evict them.
RDMInitiatorTarget & findRemoteByEndpoint (Endpoint::Id id)
 Find a remote target by its endpoint id.
RDMInitiatorTarget & findRemoteByToken (Completion::Token token)
 Find a remote target by its completion token.
template<typename F>
void forEachTarget (F &&transfer)
 Offer a transfer to every target.
void handleCompletionData (Completion::Data data)
 Handle a completion data event.
void handleCompletionError (Completion::Error error)
 Handle a completion error event.
void processCompletion (Completion completion)
 Consume a completion entry.
 RDMInitiator (Endpoint ep, std::unique_ptr< EgressProtocolTemplate > proto)
 Construct a new RDMInitiator object.

Private Attributes

Endpoint _endpoint
std::unique_ptr< EgressProtocolTemplate > _proto
std::map< Endpoint::Id, Completion::Token > _remoteEndpoints {}
std::map< Completion::Token, RDMInitiatorTarget > _targets {}

Static Private Attributes

static constexpr auto ShutdownPollInterval = std::chrono::milliseconds(1)
 Sleep time between two queue reads in shutdown().
static constexpr auto ShutdownTimeout = RDMInitiatorTarget::RemoveTimeout + std::chrono::seconds(1)
 Upper bound for shutdown(). It is longer than RDMInitiatorTarget::RemoveTimeout, so that each removal ends on its own.

Additional Inherited Members

Public Types inherited from mxl::lib::fabrics::ofi::Initiator
using MakeProgressResult = std::variant<Ready, NotReady, Interrupted>

Detailed Description

An initiator that uses reliable datagram (RDM) endpoints for data transfers.

RDM endpoints provide connectionless communication with reliability guarantees. An address vector is used to manage destination addresses.

Definition at line 136 of file RDMInitiator.hpp.

Constructor & Destructor Documentation

◆ RDMInitiator()

mxl::lib::fabrics::ofi::RDMInitiator::RDMInitiator ( Endpoint ep,
std::unique_ptr< EgressProtocolTemplate > proto )
private

Construct a new RDMInitiator object.

Parameters
epThe local endpoint to use for all transfers.

Definition at line 216 of file RDMInitiator.cpp.

217 : _proto(std::move(proto))
218 , _endpoint(std::move(ep))
219 {}
std::unique_ptr< EgressProtocolTemplate > _proto

Member Function Documentation

◆ activateIdleEndpoints()

void mxl::lib::fabrics::ofi::RDMInitiator::activateIdleEndpoints ( )
private

Try to activate any idle endpoints.

Definition at line 436 of file RDMInitiator.cpp.

437 {
438 for (auto& [_, target] : _targets)
439 {
440 target.activate(_endpoint);
441 }
442 }
std::map< Completion::Token, RDMInitiatorTarget > _targets

◆ addTarget()

void mxl::lib::fabrics::ofi::RDMInitiator::addTarget ( TargetInfo const & remoteTargetInfo)
finalvirtual

Add a target to the initiator.

The is a non-blocking operation. The local endpoint for this target will only actively start connecting to its remote counterpart when control is passed to makeProgress() or makeProgressBlocking(). The local endpoint for this target will only accept write requests after the progress functions return false.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 221 of file RDMInitiator.cpp.

222 {
223 if (_remoteEndpoints.contains(targetInfo.id))
224 {
225 throw Exception::exists("A target with endpoint id {} has already been added to this initiator.", targetInfo.id);
226 }
227
228 auto const token = Completion::randomToken();
229 auto proto = _proto->createInstance(token, targetInfo);
230 proto->registerMemory(_endpoint.domain());
231
232 _remoteEndpoints.emplace(targetInfo.id, token);
233 _targets.emplace(token, RDMInitiatorTarget(std::move(proto), targetInfo));
234 }
static Exception exists(fmt::format_string< T... > fmt, T &&... args)
Make an MXL_ERR_EXISTS exception.
Definition Exception.hpp:67
std::map< Endpoint::Id, Completion::Token > _remoteEndpoints

◆ afterProgressResult()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RDMInitiator::afterProgressResult ( ) const
nodiscardprivatenoexcept

Returns true if any of the endpoints contained in this initiator have pending work.

Definition at line 372 of file RDMInitiator.cpp.

373 {
374 for (auto const& [_, remote] : _targets)
375 {
376 if (remote.hasPendingWork())
377 {
378 return Initiator::NotReady{};
379 }
380 }
381
382 return Initiator::Ready{};
383 }

◆ blockOnCQ()

void mxl::lib::fabrics::ofi::RDMInitiator::blockOnCQ ( std::chrono::steady_clock::duration timeout)
private

Block on the completion queue until a completion arrives or the timeout elapses, then process all available completions.

Definition at line 385 of file RDMInitiator.cpp.

386 {
387 // A zero timeout would cause the queue to block indefinetly, which
388 // is not our documented behaviour.
389 if (timeout == std::chrono::milliseconds::zero())
390 {
391 // So just behave exactly like the non-blocking variant.
392 drainCQ();
393 return;
394 }
395
396 if (auto completion = _endpoint.completionQueue()->readBlocking(timeout); completion)
397 {
398 processCompletion(*completion);
399 drainCQ();
400 }
401 }
void processCompletion(Completion completion)
Consume a completion entry.
void drainCQ()
Process completions until the completion queue is empty.

◆ drainCQ()

void mxl::lib::fabrics::ofi::RDMInitiator::drainCQ ( )
private

Process completions until the completion queue is empty.

Definition at line 403 of file RDMInitiator.cpp.

404 {
405 while (auto completion = _endpoint.completionQueue()->read())
406 {
407 processCompletion(*completion);
408 }
409 }

◆ evictRemovedTargets()

void mxl::lib::fabrics::ofi::RDMInitiator::evictRemovedTargets ( )
private

Complete the removal of targets whose outstanding writes have completed, and evict them.

Definition at line 444 of file RDMInitiator.cpp.

445 {
446 for (auto& [_, target] : _targets)
447 {
448 target.finishRemoval(_endpoint);
449 }
450
451 std::erase_if(_targets, [](auto const& item) { return item.second.canEvict(); });
452 }

◆ findRemoteByEndpoint()

RDMInitiatorTarget & mxl::lib::fabrics::ofi::RDMInitiator::findRemoteByEndpoint ( Endpoint::Id id)
nodiscardprivate

Find a remote target by its endpoint id.

Exceptions
Exception::notFoundif the Endpoint::Id does not map to any known remote endpoints.

Definition at line 350 of file RDMInitiator.cpp.

351 {
352 auto it = _remoteEndpoints.find(id);
353 if (it == _remoteEndpoints.end())
354 {
355 throw Exception::notFound("No target found for endpoint id {}", id);
356 }
357
358 return findRemoteByToken(it->second);
359 }
static Exception notFound(fmt::format_string< T... > fmt, T &&... args)
Make an MXL_ERR_NOT_FOUND exception.
Definition Exception.hpp:75
RDMInitiatorTarget & findRemoteByToken(Completion::Token token)
Find a remote target by its completion token.

◆ findRemoteByToken()

RDMInitiatorTarget & mxl::lib::fabrics::ofi::RDMInitiator::findRemoteByToken ( Completion::Token token)
nodiscardprivate

Find a remote target by its completion token.

Exceptions
Exception::notFoundif the Completion::Token does not map to any known target.

Definition at line 361 of file RDMInitiator.cpp.

362 {
363 auto it = _targets.find(token);
364 if (it == _targets.end())
365 {
366 throw Exception::notFound("No target found for completion token value");
367 }
368
369 return it->second;
370 }

◆ forEachTarget()

template<typename F>
void mxl::lib::fabrics::ofi::RDMInitiator::forEachTarget ( F && transfer)
private

Offer a transfer to every target.

Parameters
transferCalled once per target.
Exceptions
ExceptionThe first one thrown by transfer, after every target was offered the transfer. Any other exception propagates immediately.

Definition at line 412 of file RDMInitiator.cpp.

413 {
414 // One failing target, e.g. an EFA peer in backoff answering EAGAIN, must not stop the others.
415 auto failure = std::exception_ptr{};
416 for (auto& [_, target] : _targets)
417 {
418 try
419 {
420 transfer(target);
421 }
422 catch (Exception const&)
423 {
424 if (!failure)
425 {
426 failure = std::current_exception();
427 }
428 }
429 }
430 if (failure)
431 {
432 std::rethrow_exception(failure);
433 }
434 }

◆ handleCompletionData()

void mxl::lib::fabrics::ofi::RDMInitiator::handleCompletionData ( Completion::Data data)
private

Handle a completion data event.

◆ handleCompletionError()

void mxl::lib::fabrics::ofi::RDMInitiator::handleCompletionError ( Completion::Error error)
private

Handle a completion error event.

◆ makeProgress()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RDMInitiator::makeProgress ( )
finalvirtual

Attempts to progress execution, including connection management and data operations.

This is the non-blocking version of the progress function.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 300 of file RDMInitiator.cpp.

301 {
303 drainCQ();
304 drainEventQueue(*_endpoint.eventQueue());
306 return afterProgressResult();
307 }
Initiator::MakeProgressResult afterProgressResult() const noexcept
Returns true if any of the endpoints contained in this initiator have pending work.
void evictRemovedTargets()
Complete the removal of targets whose outstanding writes have completed, and evict them.
void activateIdleEndpoints()
Try to activate any idle endpoints.
void drainEventQueue(EventQueue &eq)
Read all entries from a connectionless endpoint's event queue and log the errors among them.

◆ makeProgressBlocking()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RDMInitiator::makeProgressBlocking ( std::chrono::steady_clock::duration timeout)
finalvirtual

Attempts to progress execution, including connection management and data operations.

This is the blocking version of the progress function.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 310 of file RDMInitiator.cpp.

311 {
312 try
313 {
314 if (timeout < Endpoint::EQReadInterval)
315 {
316 makeProgress();
317 blockOnCQ(timeout);
319 return afterProgressResult();
320 }
321
322 auto const deadline = std::chrono::steady_clock::now() + timeout;
323 for (;;)
324 {
325 if (std::holds_alternative<Initiator::Ready>(makeProgress()))
326 {
327 return Initiator::Ready{};
328 }
329
330 auto const timeUntilDeadline = std::chrono::duration_cast<std::chrono::milliseconds>(deadline - std::chrono::steady_clock::now());
331 if (timeUntilDeadline <= std::chrono::milliseconds::zero())
332 {
333 return afterProgressResult();
334 }
335
336 // Bounded so that makeProgress() reads the event queue at least once per interval.
337 blockOnCQ(std::min(Endpoint::EQReadInterval, timeUntilDeadline));
338 }
339 }
340 catch (FabricException const& ex)
341 {
342 if (ex.isInterrupted())
343 {
344 return Initiator::Interrupted{};
345 }
346 throw;
347 }
348 }
static constexpr auto const EQReadInterval
The minimum interval at which the event queue will be polled when doing a blocking read of both (even...
Definition Endpoint.hpp:34
void blockOnCQ(std::chrono::steady_clock::duration timeout)
Block on the completion queue until a completion arrives or the timeout elapses, then process all ava...
virtual Initiator::MakeProgressResult makeProgress() final
Attempts to progress execution, including connection management and data operations.

◆ processCompletion()

void mxl::lib::fabrics::ofi::RDMInitiator::processCompletion ( Completion completion)
private

Consume a completion entry.

Definition at line 454 of file RDMInitiator.cpp.

455 {
456 auto it = _targets.find(completion.token());
457 if (it == _targets.end())
458 {
459 MXL_ERROR("Dropping completion for unknown target.");
460 return;
461 }
462
463 it->second.handleCompletion(_endpoint, completion);
464 }
#define MXL_ERROR(...)
Definition Logging.hpp:67

◆ removeTarget()

void mxl::lib::fabrics::ofi::RDMInitiator::removeTarget ( TargetInfo const & remoteTargetInfo)
finalvirtual

Remove a target from the initiator.

This is a non-blocking operation. The target is only removed after makeProgress() or makeProgressBlocking() returns false.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 236 of file RDMInitiator.cpp.

237 {
238 auto& remote = findRemoteByEndpoint(targetInfo.id);
239 remote.shutdown(_endpoint);
240
241 // The target can no longer be found by its id, so no new transfers are posted to it. It stays in _targets until its outstanding
242 // writes have completed, so that their completions can be counted and the protocol memory stays valid.
243 auto const token = _remoteEndpoints.extract(targetInfo.id).mapped();
244 if (remote.canEvict())
245 {
246 _targets.erase(token);
247 }
248 }
RDMInitiatorTarget & findRemoteByEndpoint(Endpoint::Id id)
Find a remote target by its endpoint id.

◆ setup()

std::unique_ptr< RDMInitiator > mxl::lib::fabrics::ofi::RDMInitiator::setup ( mxlFabricsInitiatorConfig const & config,
FabricInfoView info,
InitiatorSetupOptions const & options = {} )
staticnodiscard

Set up a new RDMInitiator.

Parameters
configThe configuration to use for setting up the initiator.
infoFabric info already resolved from the interface config.
optionsOptional tuning parameters (e.g. completion queue depth).

Definition at line 161 of file RDMInitiator.cpp.

163 {
164 requireCapability(info, FI_WRITE, "Interface is missing required remote write capability");
165
166 // Size the CQ to hold as many completions as the endpoint supports, to avoid
167 // CQ overflow. This assumes one CQ per endpoint; if CQs are ever shared,
168 // this sizing must be revisited.
170 cqAttr.size = std::max(cqAttr.size, info.txSize());
171 if (options.cqDepth)
172 {
173 cqAttr.size = *options.cqDepth;
174 }
175 if (config.interface.provider == MXL_FABRICS_PROVIDER_EFA)
176 {
178 {
179 if ((config.interface.caps.flags & MXL_FABRICS_IFACE_CAP_BLOCKING_OPERATIONS) != 0)
180 {
181 throw Exception::make(MXL_ERR_NO_FABRIC, "Blocking API support requested, but not available for this fabric/version");
182 }
183
184 cqAttr.waitObject = FI_WAIT_NONE;
185 }
186 }
187
188 auto fabric = Fabric::open(info);
189 auto domain = Domain::open(fabric);
190 auto endpoint = Endpoint::create(domain);
191 auto cq = CompletionQueue::open(endpoint.domain(), cqAttr);
192 endpoint.bind(cq, FI_TRANSMIT | FI_RECV);
193
194 auto av = AddressVector::open(endpoint.domain());
195 endpoint.bind(av);
196
197 endpoint.bind(EventQueue::open(fabric));
198
199 endpoint.enable();
200
201 auto regions = MxlRegions::forReader(config.reader);
202 auto proto = selectEgressProtocol(regions.dataLayout(), regions.regions());
203
204 proto->registerMemory(domain);
205
206 struct MakeUniqueEnabler : RDMInitiator
207 {
208 MakeUniqueEnabler(Endpoint ep, std::unique_ptr<EgressProtocolTemplate> proto)
209 : RDMInitiator(std::move(ep), std::move(proto))
210 {}
211 };
212
213 return std::make_unique<MakeUniqueEnabler>(std::move(endpoint), std::move(proto));
214 }
static std::shared_ptr< AddressVector > open(std::shared_ptr< Domain > domain, Attributes attr=Attributes::defaults())
Create an AddressVector.
static std::shared_ptr< CompletionQueue > open(std::shared_ptr< Domain > domain, Attributes const &attr=Attributes::defaults())
Create a new completion queue in the specified domain.
static bool isWaitObjectSupportedForEFA() noexcept
Check if wait any wait object type supported by the EFA provider for this libfabric version.
static std::shared_ptr< Domain > open(std::shared_ptr< Fabric > fabric)
Open a new domain associated with the specified fabric.
Definition Domain.cpp:30
static Endpoint create(std::shared_ptr< Domain > domain, FabricInfoView info)
Allocates (active) new endpoint.
Definition Endpoint.cpp:56
static std::shared_ptr< EventQueue > open(std::shared_ptr< Fabric >, Attributes const &attr=Attributes::defaults())
Create a new event queue associated with the specified fabric.
static Exception make(mxlStatus status, fmt::format_string< T... > fmt, T &&... args)
Make any type of exception.
Definition Exception.hpp:35
static std::shared_ptr< Fabric > open(FabricInfoView info)
Open a fabric object based on the provided FabricInfoView.
Definition Fabric.cpp:15
static MxlRegions forReader(mxlFlowReader)
Definition Region.cpp:105
RDMInitiator(Endpoint ep, std::unique_ptr< EgressProtocolTemplate > proto)
Construct a new RDMInitiator object.
@ MXL_FABRICS_IFACE_CAP_BLOCKING_OPERATIONS
Definition fabrics.h:78
@ MXL_FABRICS_PROVIDER_EFA
Definition fabrics.h:51
@ MXL_ERR_NO_FABRIC
Definition mxl.h:46
std::unique_ptr< EgressProtocolTemplate > selectEgressProtocol(DataLayout const &layout, std::vector< Region > regions)
Select an appropriate egress protocol based on the data layout.
Definition Protocol.cpp:33
void requireCapability(FabricInfoView info, std::uint64_t cap, std::string_view message)
static Attributes defaults()
Returns the a CompletionQueueAttr with all of its attributes set to reasonable defaults.

◆ shutdown()

void mxl::lib::fabrics::ofi::RDMInitiator::shutdown ( )
finalvirtual

Shut down the initiator gracefully.

Initiates a graceful shutdown of the initiator and blocks until the shutdown is complete. Can throw an exception if the shutdown is not successful. If this function throws the initiator can no longer be used.

Removes all targets and makes progress until the outstanding writes to each one have completed.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 250 of file RDMInitiator.cpp.

251 {
252 for (auto& [_, target] : _targets)
253 {
254 target.shutdown(_endpoint);
255 }
256 _remoteEndpoints.clear();
257
258 auto const deadline = std::chrono::steady_clock::now() + ShutdownTimeout;
259 for (;;)
260 {
262
263 if (_targets.empty())
264 {
265 return;
266 }
267
268 if (std::chrono::steady_clock::now() >= deadline)
269 {
270 MXL_WARN("{} targets were not removed in time.", _targets.size());
271 return;
272 }
273
274 std::this_thread::sleep_for(ShutdownPollInterval);
275 drainCQ();
276 }
277 }
#define MXL_WARN(...)
Definition Logging.hpp:56
static constexpr auto ShutdownPollInterval
Sleep time between two queue reads in shutdown().
static constexpr auto ShutdownTimeout
Upper bound for shutdown(). It is longer than RDMInitiatorTarget::RemoveTimeout, so that each removal...

◆ transferGrain()

void mxl::lib::fabrics::ofi::RDMInitiator::transferGrain ( std::uint64_t grainIndex,
std::uint16_t startSlice,
std::uint16_t endSlice )
finalvirtual

Transfer a grain to all targets.

This is a non-blocking operation. The transfer is complete only after makeProgress() or makeProgressBlocking() returns false.

Parameters
grainIndexThe index of the grain to transfer.
startSliceThe start slice in the slice range to transfer. This is inclusive.
endSliceThe end slice in the slice range to transfer. This is exclusive.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 279 of file RDMInitiator.cpp.

280 {
281 // Post a transfer work item to all targets. If the target is not in "Added" state
282 // this is a no-op.
283 forEachTarget([&](RDMInitiatorTarget& target)
284 { target.transferGrain(_endpoint, grainIndex, grainIndex, MXL_GRAIN_PAYLOAD_OFFSET, SliceRange::make(startSlice, endSlice)); });
285 }
void forEachTarget(F &&transfer)
Offer a transfer to every target.
static SliceRange make(std::uint16_t start, std::uint16_t end)
Create a SliceRange representing the range [start, end).
constexpr auto const MXL_GRAIN_PAYLOAD_OFFSET
Definition Flow.hpp:38

◆ transferGrainToTarget()

void mxl::lib::fabrics::ofi::RDMInitiator::transferGrainToTarget ( Endpoint::Id targetId,
std::uint64_t localIndex,
std::uint64_t remoteIndex,
std::uint64_t payloadOffset,
std::uint16_t startSlice,
std::uint16_t endSlice )
finalvirtual

Transfer a grain to a specific target.

This is a non-blocking operation. The transfer is complete only after makeProgress() or makeProgressBlocking() returns false.

Parameters
targetIdThe ID of the target to transfer the grain to.
localIndexThe index of the local grain to transfer from.
remoteIndexThe index of the remote grain to transfer to.
payloadOffsetThe payload offset within the grain.
startSliceThe start slice in the slice range to transfer. This is inclusive.
endSliceThe end slice in the slice range to transfer. This is exclusive.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 287 of file RDMInitiator.cpp.

289 {
290 // A completion will be posted to the completion queue per transfer, after which the counter will be decremented again
291 findRemoteByEndpoint(targetId).transferGrain(_endpoint, localIndex, remoteIndex, payloadOffset, SliceRange::make(startSlice, endSlice));
292 }
void transferGrain(Endpoint const &ep, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint64_t remotePayloadOffset, SliceRange const &sliceRange)
Post a grain data transfer request to this endpoint.

◆ transferSamples()

void mxl::lib::fabrics::ofi::RDMInitiator::transferSamples ( std::uint64_t headIndex,
std::size_t count )
finalvirtual

Transfer samples to all targets.

This is a non-blocking operation. The transfer is complete only after makeProgress() or makeProgressBlocking() returns false.

Parameters
headIndexThe head index to transfer.
countThe number of samples per channel to transfer.

Implements mxl::lib::fabrics::ofi::Initiator.

Definition at line 294 of file RDMInitiator.cpp.

295 {
296 forEachTarget([&](RDMInitiatorTarget& target) { target.transferSamples(_endpoint, headIndex, count); });
297 }
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.

Member Data Documentation

◆ _endpoint

Endpoint mxl::lib::fabrics::ofi::RDMInitiator::_endpoint
private

Definition at line 264 of file RDMInitiator.hpp.

◆ _proto

std::unique_ptr<EgressProtocolTemplate> mxl::lib::fabrics::ofi::RDMInitiator::_proto
private

Definition at line 256 of file RDMInitiator.hpp.

◆ _remoteEndpoints

std::map<Endpoint::Id, Completion::Token> mxl::lib::fabrics::ofi::RDMInitiator::_remoteEndpoints {}
private

Definition at line 260 of file RDMInitiator.hpp.

260{};

◆ _targets

std::map<Completion::Token, RDMInitiatorTarget> mxl::lib::fabrics::ofi::RDMInitiator::_targets {}
private

Targets managed by this initiator. Each target has its own remote address and remote memory regions.

Definition at line 259 of file RDMInitiator.hpp.

259{};

◆ ShutdownPollInterval

auto mxl::lib::fabrics::ofi::RDMInitiator::ShutdownPollInterval = std::chrono::milliseconds(1)
staticconstexprprivate

Sleep time between two queue reads in shutdown().

Definition at line 253 of file RDMInitiator.hpp.

◆ ShutdownTimeout

auto mxl::lib::fabrics::ofi::RDMInitiator::ShutdownTimeout = RDMInitiatorTarget::RemoveTimeout + std::chrono::seconds(1)
staticconstexprprivate

Upper bound for shutdown(). It is longer than RDMInitiatorTarget::RemoveTimeout, so that each removal ends on its own.

Definition at line 249 of file RDMInitiator.hpp.


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