This class is an abstraction of an Infiniband device.
More...
#include <rdmapp/device.h>
|
static std::string | gid_hex_string (union ibv_gid const &gid) |
|
|
class | pd |
|
class | cq |
|
class | qp |
|
class | srq |
|
This class is an abstraction of an Infiniband device.
◆ device() [1/3]
rdmapp::device::device |
( |
struct ibv_device * |
target, |
|
|
uint16_t |
port_num = 1 |
|
) |
| |
Construct a new device object.
- Parameters
-
target | The target device. |
port_num | The port number of the target device. |
◆ device() [2/3]
rdmapp::device::device |
( |
std::string const & |
device_name, |
|
|
uint16_t |
port_num = 1 |
|
) |
| |
Construct a new device object.
- Parameters
-
device_name | The name of the target device. |
port_num | The port number of the target device. |
◆ device() [3/3]
rdmapp::device::device |
( |
uint16_t |
device_num = 0 , |
|
|
uint16_t |
port_num = 1 |
|
) |
| |
Construct a new device object.
- Parameters
-
device_num | The index of the target device. |
port_num | The port number of the target device. |
◆ gid()
union ibv_gid rdmapp::device::gid |
( |
| ) |
const |
Get the gid of the device.
- Returns
- union ibv_gid The gid.
◆ is_compare_and_swap_supported()
bool rdmapp::device::is_compare_and_swap_supported |
( |
| ) |
const |
Checks if the device supports compare and swap.
- Returns
- true Supported.
-
false Not supported.
◆ is_fetch_and_add_supported()
bool rdmapp::device::is_fetch_and_add_supported |
( |
| ) |
const |
Checks if the device supports fetch and add.
- Returns
- true Supported.
-
false Not supported.
◆ lid()
uint16_t rdmapp::device::lid |
( |
| ) |
const |
Get the lid of the device.
- Returns
- uint16_t The lid.
◆ port_num()
uint16_t rdmapp::device::port_num |
( |
| ) |
const |
Get the device port number.
- Returns
- uint16_t The port number.
The documentation for this class was generated from the following files: