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

A collection of attributes that can be used to configure the operation of newly created completion queues. More...

#include <CompletionQueue.hpp>

Public Member Functions

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

Static Public Member Functions

static Attributes defaults ()
 Returns the a CompletionQueueAttr with all of its attributes set to reasonable defaults.

Public Attributes

std::size_t size
enum fi_wait_obj waitObject

Static Public Attributes

static constexpr std::size_t DEFAULT_SIZE = 8
 The completion-queue depth used when no explicit depth is requested.

Detailed Description

A collection of attributes that can be used to configure the operation of newly created completion queues.

Definition at line 25 of file CompletionQueue.hpp.

Member Function Documentation

◆ defaults()

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

Returns the a CompletionQueueAttr with all of its attributes set to reasonable defaults.

Definition at line 21 of file CompletionQueue.cpp.

22 {
23 CompletionQueue::Attributes attr{};
24 attr.size = DEFAULT_SIZE;
25 attr.waitObject = FI_WAIT_UNSPEC; // TODO: EFA will require no wait object
26 return attr;
27 }
static constexpr std::size_t DEFAULT_SIZE
The completion-queue depth used when no explicit depth is requested.

◆ raw()

fi_cq_attr mxl::lib::fabrics::ofi::CompletionQueue::Attributes::raw ( ) const
nodiscardnoexcept

Returns the raw libfabric version of this object.

Definition at line 29 of file CompletionQueue.cpp.

30 {
31 ::fi_cq_attr raw{};
32 raw.size = size;
33 raw.wait_obj = waitObject;
34 raw.format = FI_CQ_FORMAT_DATA; // default format, this should be parameterized
35 raw.wait_cond = FI_CQ_COND_NONE; // default condition, this should be parameterized
36 raw.wait_set = nullptr; // only used if wait_obj is FI_WAIT_SET
37 raw.flags = 0; // if signaling vector is required, this should use the flag "FI_AFFINITY"
38 raw.signaling_vector = 0; // this should indicate the CPU core that interrupts associated with the cq should target.
39 return raw;
40 }
::fi_cq_attr raw() const noexcept
Returns the raw libfabric version of this object.

Member Data Documentation

◆ DEFAULT_SIZE

std::size_t mxl::lib::fabrics::ofi::CompletionQueue::Attributes::DEFAULT_SIZE = 8
staticconstexpr

The completion-queue depth used when no explicit depth is requested.

Definition at line 29 of file CompletionQueue.hpp.

◆ size

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

Size of the queue.

Definition at line 42 of file CompletionQueue.hpp.

◆ waitObject

enum fi_wait_obj mxl::lib::fabrics::ofi::CompletionQueue::Attributes::waitObject

The underlying wait object that should be used.

Definition at line 43 of file CompletionQueue.hpp.


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