MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::fabrics::ofi::EventQueue::Attributes Struct Referencefinal

Attributes to configure newly created event queues. More...

#include <EventQueue.hpp>

Public Member Functions

::fi_eq_attr raw () const noexcept
 Returns the raw libfabric version of this object.

Static Public Member Functions

static Attributes defaults ()
 Creates a configuration with all values set to reasonable defaults.

Public Attributes

std::size_t size

Detailed Description

Attributes to configure newly created event queues.

Definition at line 23 of file EventQueue.hpp.

Member Function Documentation

◆ defaults()

EventQueue::Attributes mxl::lib::fabrics::ofi::EventQueue::Attributes::defaults ( )
static

Creates a configuration with all values set to reasonable defaults.

Definition at line 20 of file EventQueue.cpp.

21 {
22 EventQueue::Attributes attr{};
23 attr.size = 8; // default size, this should be parameterized
24 return attr;
25 }

◆ raw()

fi_eq_attr mxl::lib::fabrics::ofi::EventQueue::Attributes::raw ( ) const
nodiscardnoexcept

Returns the raw libfabric version of this object.

Definition at line 27 of file EventQueue.cpp.

28 {
29 ::fi_eq_attr raw{};
30 raw.size = size;
31 raw.wait_obj = FI_WAIT_UNSPEC; // default wait object, this should be parameterized
32 raw.wait_set = nullptr; // only used if wait_obj is FI_WAIT_SET
33 raw.flags = 0; // if signaling vector is required, this should use the flag "FI_AFFINITY"
34 raw.signaling_vector = 0; // this should indicate the CPU core that interrupts associated with the eq should target.
35 return raw;
36 }
::fi_eq_attr raw() const noexcept
Returns the raw libfabric version of this object.

Member Data Documentation

◆ size

std::size_t mxl::lib::fabrics::ofi::EventQueue::Attributes::size

Size of the event queue.

Definition at line 36 of file EventQueue.hpp.


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