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

An initiator that uses reliable connected endpoints to transfer data to targets. More...

#include <RCInitiator.hpp>

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

Public Member Functions

virtual void addTarget (TargetInfo const &targetInfo) 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) final
 Attempts to progress execution, including connection management and data operations.
virtual void removeTarget (TargetInfo const &targetInfo) 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< RCInitiator > setup (mxlFabricsInitiatorConfig const &config, FabricInfoView info, InitiatorSetupOptions const &options={})
 Set up a fresh initiator without any targets assigned to it.

Private Member Functions

void activateIdleEndpoints ()
 Try to activate any idle endpoints.
void activateIfIdle (RCInitiatorEndpoint &target)
 Try to activate the endpoint if it is idle. Called before a transfer is posted to the endpoint.
Initiator::MakeProgressResult afterProgressResult () const noexcept
 Returns true if any of the endpoints contained in this initiator have pending work.
Initiator::MakeProgressResult blockOnCQ (std::chrono::steady_clock::duration timeout)
 Block on the completion queue with a timeout.
void evictDeadEndpoints ()
 Evict any dead endpoints that are no longer used.
void finishFlushingEndpoints ()
 Move endpoints that have finished flushing to the done state.
bool hasTarget () const noexcept
 Returns true if the initiator has at least 1 target added no matter what the state is.
void pollCQ ()
 Poll the completion queue and process the events until the queue is empty.
void pollEQ ()
 Poll the event queue and process the returned events until the queue is empty.
 RCInitiator (std::shared_ptr< Domain > domain, std::shared_ptr< CompletionQueue > cq, std::shared_ptr< EventQueue > eq, std::unique_ptr< EgressProtocolTemplate > proto)

Private Attributes

std::shared_ptr< CompletionQueue > _cq
std::shared_ptr< Domain > _domain
std::shared_ptr< EventQueue > _eq
std::unique_ptr< EgressProtocolTemplate > _proto
std::map< Completion::Token, RCInitiatorEndpoint > _targets {}

Static Private Attributes

static constexpr auto EQPollInterval = std::chrono::milliseconds(100)
 When making progress and using blocking queue reads, this is the minimum interval at which the event queue will be read.
static constexpr auto ShutdownPollInterval = std::chrono::milliseconds(1)
 Sleep time between two queue reads in shutdown().
static constexpr auto ShutdownTimeout = RCInitiatorEndpoint::FlushTimeout + std::chrono::seconds(1)
 Upper bound for shutdown(). It is longer than RCInitiatorEndpoint::FlushTimeout, so that each flush 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 connected endpoints to transfer data to targets.

Definition at line 192 of file RCInitiator.hpp.

Constructor & Destructor Documentation

◆ RCInitiator()

mxl::lib::fabrics::ofi::RCInitiator::RCInitiator ( std::shared_ptr< Domain > domain,
std::shared_ptr< CompletionQueue > cq,
std::shared_ptr< EventQueue > eq,
std::unique_ptr< EgressProtocolTemplate > proto )
private

Definition at line 348 of file RCInitiator.cpp.

350 : _domain(std::move(domain))
351 , _cq(std::move(cq))
352 , _eq(std::move(eq))
353 , _proto(std::move(proto))
354 {}
std::shared_ptr< EventQueue > _eq
std::unique_ptr< EgressProtocolTemplate > _proto
std::shared_ptr< CompletionQueue > _cq
std::shared_ptr< Domain > _domain

Member Function Documentation

◆ activateIdleEndpoints()

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

Try to activate any idle endpoints.

Definition at line 439 of file RCInitiator.cpp.

440 {
441 // Call the activate function on all endpoints. This is a no-op when the endpoint is not idle
442 // and there is probably not that many of them.
443 for (auto& [_, target] : _targets)
444 {
445 target.activate(_cq, _eq);
446 }
447 }
std::map< Completion::Token, RCInitiatorEndpoint > _targets

◆ activateIfIdle()

void mxl::lib::fabrics::ofi::RCInitiator::activateIfIdle ( RCInitiatorEndpoint & target)
private

Try to activate the endpoint if it is idle. Called before a transfer is posted to the endpoint.

Definition at line 412 of file RCInitiator.cpp.

413 {
414 if (target.isIdle())
415 {
416 target.activate(_cq, _eq);
417 }
418 }

◆ addTarget()

void mxl::lib::fabrics::ofi::RCInitiator::addTarget ( TargetInfo const & targetInfo)
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 356 of file RCInitiator.cpp.

357 {
358 auto endpoint = Endpoint::create(_domain);
359 auto id = endpoint.id();
360 auto proto = _proto->createInstance(Endpoint::tokenFromId(id), targetInfo);
361 proto->registerMemory(_domain);
362
363 _targets.emplace(id, RCInitiatorEndpoint{std::move(endpoint), std::move(proto), targetInfo});
364 }
static Endpoint create(std::shared_ptr< Domain > domain, FabricInfoView info)
Allocates (active) new endpoint.
Definition Endpoint.cpp:56
static constexpr Completion::Token tokenFromId(Id id) noexcept
Convert an endpoint id value to a completion token value. Convert an endpoint id to a completion toke...
Definition Endpoint.hpp:69

◆ afterProgressResult()

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

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

Definition at line 420 of file RCInitiator.cpp.

421 {
422 // Check if any of the targets have pending work.
423 for (auto& [_, target] : _targets)
424 {
425 if (target.hasPendingWork())
426 {
427 return Initiator::NotReady{};
428 }
429 }
430
431 return Initiator::Ready{};
432 }

◆ blockOnCQ()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RCInitiator::blockOnCQ ( std::chrono::steady_clock::duration timeout)
nodiscardprivate

Block on the completion queue with a timeout.

Definition at line 462 of file RCInitiator.cpp.

463 {
464 // A zero timeout would cause the queue to block indefinetly, which
465 // is not our documented behaviour.
466 if (timeout == std::chrono::milliseconds::zero())
467 {
468 // So just behave exactly like the non-blocking variant.
469 makeProgress();
470 return afterProgressResult();
471 }
472
473 for (;;)
474 {
475 try
476 {
477 auto completion = _cq->readBlocking(timeout);
478 if (!completion)
479 {
480 return afterProgressResult();
481 }
482
483 // Find the endpoint that this completion was generated from
484 auto ep = _targets.find(Endpoint::idFromToken(completion->token()));
485 if (ep == _targets.end())
486 {
487 // The endpoint can already be evicted, for example after a flush timeout.
488 MXL_WARN("Received completion for an unknown endpoint");
489
490 return afterProgressResult();
491 }
492
493 ep->second.consume(*completion);
494
495 return afterProgressResult();
496 }
497 catch (FabricException const& ex)
498 {
499 if (ex.isInterrupted())
500 {
501 return Initiator::Interrupted{};
502 }
503
504 throw;
505 }
506 }
507 }
#define MXL_WARN(...)
Definition Logging.hpp:56
static constexpr Id idFromToken(Completion::Token token) noexcept
Convert a completion token value to an endpoint id value. Convert a completion token to an endpoint i...
Definition Endpoint.hpp:82
Initiator::MakeProgressResult afterProgressResult() const noexcept
Returns true if any of the endpoints contained in this initiator have pending work.
virtual Initiator::MakeProgressResult makeProgress() final
Attempts to progress execution, including connection management and data operations.

◆ evictDeadEndpoints()

void mxl::lib::fabrics::ofi::RCInitiator::evictDeadEndpoints ( )
private

Evict any dead endpoints that are no longer used.

Definition at line 457 of file RCInitiator.cpp.

458 {
459 std::erase_if(_targets, [](auto const& item) { return item.second.canEvict(); });
460 }

◆ finishFlushingEndpoints()

void mxl::lib::fabrics::ofi::RCInitiator::finishFlushingEndpoints ( )
private

Move endpoints that have finished flushing to the done state.

Definition at line 449 of file RCInitiator.cpp.

450 {
451 for (auto& [_, target] : _targets)
452 {
453 target.finishFlush();
454 }
455 }

◆ hasTarget()

bool mxl::lib::fabrics::ofi::RCInitiator::hasTarget ( ) const
nodiscardprivatenoexcept

Returns true if the initiator has at least 1 target added no matter what the state is.

Definition at line 434 of file RCInitiator.cpp.

435 {
436 return _targets.size() > 0;
437 }

◆ makeProgress()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RCInitiator::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 555 of file RCInitiator.cpp.

556 {
557 if (!hasTarget())
558 {
559 return Initiator::Ready{};
560 }
561
562 // Activate any peers that might be idle and waiting for activation.
564
565 // Poll the completion and event queue once and process pending events.
566 pollCQ();
567 pollEQ();
568
569 // Complete the shutdown of endpoints that have received all outstanding completions and the shutdown event.
571
572 // Evict any peers that are dead and no longer will make progress.
574
575 return afterProgressResult();
576 }
void evictDeadEndpoints()
Evict any dead endpoints that are no longer used.
void activateIdleEndpoints()
Try to activate any idle endpoints.
void finishFlushingEndpoints()
Move endpoints that have finished flushing to the done state.
void pollEQ()
Poll the event queue and process the returned events until the queue is empty.
bool hasTarget() const noexcept
Returns true if the initiator has at least 1 target added no matter what the state is.
void pollCQ()
Poll the completion queue and process the events until the queue is empty.

◆ makeProgressBlocking()

Initiator::MakeProgressResult mxl::lib::fabrics::ofi::RCInitiator::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 578 of file RCInitiator.cpp.

579 {
580 // If the timeout is less than our maintainance interval, just check all the queues once, execute all maintainance tasks once
581 // and block on the completion queue for the rest of the time.
582 if (timeout < EQPollInterval)
583 {
584 if (std::holds_alternative<Initiator::Ready>(makeProgress()))
585 {
586 return Initiator::Ready{};
587 }
588 return blockOnCQ(timeout);
589 }
590
591 auto deadline = std::chrono::steady_clock::now() + timeout;
592
593 for (;;)
594 {
595 // Poll all queues, execute all maintainance actions
596 if (std::holds_alternative<Initiator::Ready>(makeProgress()))
597 {
598 return Initiator::Ready{};
599 }
600
601 // Calculate the remaining time until the user wants the blocking function to return. If there is no time left
602 // (millisecond precision) return right away.
603 auto timeUntilDeadline = std::chrono::duration_cast<std::chrono::milliseconds>(deadline - std::chrono::steady_clock::now());
604 if (timeUntilDeadline <= decltype(timeUntilDeadline){0})
605 {
606 return afterProgressResult();
607 }
608
609 // Block on the completion queue until a completion arrives, or the interval timeout occurs.
610 auto const res = blockOnCQ(std::min(EQPollInterval, timeUntilDeadline));
611 if (std::holds_alternative<Initiator::NotReady>(res))
612 {
613 continue;
614 }
615
616 return res;
617 }
618 }
Initiator::MakeProgressResult blockOnCQ(std::chrono::steady_clock::duration timeout)
Block on the completion queue with a timeout.
static constexpr auto EQPollInterval
When making progress and using blocking queue reads, this is the minimum interval at which the event ...

◆ pollCQ()

void mxl::lib::fabrics::ofi::RCInitiator::pollCQ ( )
private

Poll the completion queue and process the events until the queue is empty.

Definition at line 509 of file RCInitiator.cpp.

510 {
511 for (;;)
512 {
513 auto completion = _cq->read();
514 if (!completion)
515 {
516 break;
517 }
518
519 // Find the endpoint this completion was generated from.
520 auto ep = _targets.find(Endpoint::idFromToken(completion->token()));
521 if (ep == _targets.end())
522 {
523 MXL_WARN("Received completion for an unknown endpoint");
524
525 continue;
526 }
527
528 ep->second.consume(*completion);
529 }
530 }

◆ pollEQ()

void mxl::lib::fabrics::ofi::RCInitiator::pollEQ ( )
private

Poll the event queue and process the returned events until the queue is empty.

Definition at line 532 of file RCInitiator.cpp.

533 {
534 for (;;)
535 {
536 auto event = _eq->read();
537 if (!event)
538 {
539 break;
540 }
541
542 // Find the endpoint this event was generated from.
543 auto ep = _targets.find(Endpoint::idFromFID(event->fid()));
544 if (ep == _targets.end())
545 {
546 MXL_WARN("Received event for an unknown endpoint");
547
548 continue;
549 }
550
551 ep->second.consume(*event);
552 }
553 }
static Id idFromFID(::fid_t) noexcept
Read the endpoint id from a libfabric object reference.
Definition Endpoint.cpp:41

◆ removeTarget()

void mxl::lib::fabrics::ofi::RCInitiator::removeTarget ( TargetInfo const & targetInfo)
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 366 of file RCInitiator.cpp.

367 {
368 if (auto target = std::ranges::find_if(_targets, [&targetInfo](auto const& item) { return item.second.info().id == targetInfo.id; });
369 target != _targets.end())
370 {
371 target->second.shutdown();
372 }
373 else
374 {
375 throw Exception::notFound("Target with id {} not found", targetInfo.id);
376 }
377 }
static Exception notFound(fmt::format_string< T... > fmt, T &&... args)
Make an MXL_ERR_NOT_FOUND exception.
Definition Exception.hpp:75

◆ setup()

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

Set up a fresh initiator without any targets assigned to it.

The setup phase includes selecting a provider, register memory regions for all local media buffers and create all libfabric components such as completion and event queues.

Parameters
configThe configuration to use for setting up the target.
infoFabric info already resolved from the interface config.
optionsOptional tuning parameters (e.g. completion queue depth).
Returns
A newly setup RCInitiator object.

Definition at line 316 of file RCInitiator.cpp.

318 {
319 requireCapability(info, FI_WRITE, "Interface is missing required write capability");
320 MXL_DEBUG("{}", fi_tostr(info.raw(), FI_TYPE_INFO));
321
322 auto fabric = Fabric::open(info);
323 auto domain = Domain::open(fabric);
324
325 auto eq = EventQueue::open(fabric);
327 if (options.cqDepth)
328 {
329 cqAttr.size = *options.cqDepth;
330 }
331 auto cq = CompletionQueue::open(domain, cqAttr);
332
333 auto regions = MxlRegions::forReader(config.reader);
334 auto proto = selectEgressProtocol(regions.dataLayout(), regions.regions());
335 proto->registerMemory(domain);
336
337 struct MakeUniqueEnabler : RCInitiator
338 {
339 MakeUniqueEnabler(std::shared_ptr<Domain> domain, std::shared_ptr<CompletionQueue> cq, std::shared_ptr<EventQueue> eq,
340 std::unique_ptr<EgressProtocolTemplate> proto)
341 : RCInitiator(std::move(domain), std::move(cq), std::move(eq), std::move(proto))
342 {}
343 };
344
345 return std::make_unique<MakeUniqueEnabler>(std::move(domain), std::move(cq), std::move(eq), std::move(proto));
346 }
#define MXL_DEBUG(...)
Definition Logging.hpp:34
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 std::shared_ptr< Domain > open(std::shared_ptr< Fabric > fabric)
Open a new domain associated with the specified fabric.
Definition Domain.cpp:30
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 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
RCInitiator(std::shared_ptr< Domain > domain, std::shared_ptr< CompletionQueue > cq, std::shared_ptr< EventQueue > eq, std::unique_ptr< EgressProtocolTemplate > proto)
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::RCInitiator::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.

Shuts down all endpoints and makes progress until each one has finished flushing.

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

Definition at line 620 of file RCInitiator.cpp.

621 {
622 for (auto& [_, target] : _targets)
623 {
624 target.shutdown();
625 }
626
627 auto const deadline = std::chrono::steady_clock::now() + ShutdownTimeout;
628 for (;;)
629 {
630 pollCQ();
631 pollEQ();
634
635 if (_targets.empty())
636 {
637 return;
638 }
639
640 if (std::chrono::steady_clock::now() >= deadline)
641 {
642 MXL_WARN("{} endpoints did not shut down in time.", _targets.size());
643 return;
644 }
645
646 std::this_thread::sleep_for(ShutdownPollInterval);
647 }
648 }
static constexpr auto ShutdownPollInterval
Sleep time between two queue reads in shutdown().
static constexpr auto ShutdownTimeout
Upper bound for shutdown(). It is longer than RCInitiatorEndpoint::FlushTimeout, so that each flush e...

◆ transferGrain()

void mxl::lib::fabrics::ofi::RCInitiator::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 379 of file RCInitiator.cpp.

380 {
381 // Post a transfer work item to all targets. If the target is not in a connected state
382 // this is a no-op.
383 for (auto& [_, target] : _targets)
384 {
385 activateIfIdle(target);
386 target.transferGrain(grainIndex, grainIndex, MXL_GRAIN_PAYLOAD_OFFSET, SliceRange::make(startSlice, endSlice));
387 }
388 }
void activateIfIdle(RCInitiatorEndpoint &target)
Try to activate the endpoint if it is idle. Called before a transfer is posted to the endpoint.
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::RCInitiator::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 390 of file RCInitiator.cpp.

392 {
393 auto it = _targets.find(targetId);
394 if (it == _targets.end())
395 {
396 throw Exception::notFound("Target with id {} not found", targetId);
397 }
398
399 activateIfIdle(it->second);
400 it->second.transferGrain(localIndex, remoteIndex, payloadOffset, SliceRange::make(startSlice, endSlice));
401 }

◆ transferSamples()

void mxl::lib::fabrics::ofi::RCInitiator::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 403 of file RCInitiator.cpp.

404 {
405 for (auto& [_, target] : _targets)
406 {
407 activateIfIdle(target);
408 target.transferSamples(headIndex, count);
409 }
410 }
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.

Member Data Documentation

◆ _cq

std::shared_ptr<CompletionQueue> mxl::lib::fabrics::ofi::RCInitiator::_cq
private

Completion Queue shared by all endpoints.

Definition at line 307 of file RCInitiator.hpp.

◆ _domain

std::shared_ptr<Domain> mxl::lib::fabrics::ofi::RCInitiator::_domain
private

Definition at line 306 of file RCInitiator.hpp.

◆ _eq

std::shared_ptr<EventQueue> mxl::lib::fabrics::ofi::RCInitiator::_eq
private

Event Queue shared by all endpoints.

Definition at line 308 of file RCInitiator.hpp.

◆ _proto

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

Definition at line 309 of file RCInitiator.hpp.

◆ _targets

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

Targets managed by this initiator.

Definition at line 311 of file RCInitiator.hpp.

311{};

◆ EQPollInterval

auto mxl::lib::fabrics::ofi::RCInitiator::EQPollInterval = std::chrono::milliseconds(100)
staticconstexprprivate

When making progress and using blocking queue reads, this is the minimum interval at which the event queue will be read.

Definition at line 257 of file RCInitiator.hpp.

◆ ShutdownPollInterval

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

Sleep time between two queue reads in shutdown().

Definition at line 265 of file RCInitiator.hpp.

◆ ShutdownTimeout

auto mxl::lib::fabrics::ofi::RCInitiator::ShutdownTimeout = RCInitiatorEndpoint::FlushTimeout + std::chrono::seconds(1)
staticconstexprprivate

Upper bound for shutdown(). It is longer than RCInitiatorEndpoint::FlushTimeout, so that each flush ends on its own.

Definition at line 261 of file RCInitiator.hpp.


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