|
MXL : Media eXchange Layer
MXL
|
RAII Wrapper around a libfabric domain (fi_domain). More...
#include <Domain.hpp>
Public Member Functions | |
| Domain (Domain &&) noexcept | |
| Domain (Domain const &)=delete | |
| std::shared_ptr< Fabric > | fabric () const noexcept |
| Accessor for the fabric associated with this domain. | |
| std::vector< LocalRegion > | localRegions () const noexcept |
| Get the local regions associated to the registered regions to this domain. | |
| Domain & | operator= (Domain &&) |
| void | operator= (Domain const &)=delete |
| ::fid_domain const * | raw () const noexcept |
| Accessor for the underlying fi_domain instance. | |
| ::fid_domain * | raw () noexcept |
| Accessor for the underlying fi_domain instance. | |
| void | registerRegion (Region const ®ion, std::uint64_t access) |
| Register a single memory region to this domain. | |
| void | registerRegions (std::vector< Region > const ®ions, std::uint64_t access) |
| Register a list of memory regions to this domain. | |
| std::vector< RemoteRegion > | remoteRegions () const noexcept |
| Get the remote regions associated to the registered regions to this domain. | |
| bool | usingRecvBufForCqData () const noexcept |
| When this returns true, it means the target must post a fi_recv in order to receive immediate data. | |
| bool | usingVirtualAddresses () const noexcept |
| When this returns true, a user should use virtual addresses instead of 0 based addresses when refering a remote address registered with this domain. | |
| ~Domain () | |
Static Public Member Functions | |
| static std::shared_ptr< Domain > | open (std::shared_ptr< Fabric > fabric) |
| Open a new domain associated with the specified fabric. | |
Private Member Functions | |
| void | close () |
| Close this domain and release all associated resources. | |
| Domain (::fid_domain *, std::shared_ptr< Fabric >, std::vector< RegisteredRegion >) | |
| RegisteredRegion | registerRegionImpl (Region const ®ion, std::uint64_t access) |
| Register a single memory region to this domain. | |
Private Attributes | |
| std::shared_ptr< Fabric > | _fabric |
| ::fid_domain * | _raw |
| std::vector< RegisteredRegion > | _registeredRegions |
RAII Wrapper around a libfabric domain (fi_domain).
Definition at line 23 of file Domain.hpp.
| mxl::lib::fabrics::ofi::Domain::~Domain | ( | ) |
Definition at line 25 of file Domain.cpp.
|
delete |
|
noexcept |
Definition at line 98 of file Domain.cpp.
|
private |
Definition at line 19 of file Domain.cpp.
|
private |
Close this domain and release all associated resources.
Definition at line 87 of file Domain.cpp.
|
nodiscardnoexcept |
Accessor for the fabric associated with this domain.
Definition at line 77 of file Domain.cpp.
|
nodiscardnoexcept |
Get the local regions associated to the registered regions to this domain.
If no regions was registered previously, this will return an empty vector.
Definition at line 57 of file Domain.cpp.
|
static |
Open a new domain associated with the specified fabric.
Definition at line 30 of file Domain.cpp.
Definition at line 106 of file Domain.cpp.
|
delete |
|
nodiscardnoexcept |
Accessor for the underlying fi_domain instance.
Definition at line 124 of file Domain.cpp.
|
noexcept |
Accessor for the underlying fi_domain instance.
Definition at line 119 of file Domain.cpp.
| void mxl::lib::fabrics::ofi::Domain::registerRegion | ( | Region const & | region, |
| std::uint64_t | access ) |
Register a single memory region to this domain.
The domain will own its own version of the registered memory region.
Definition at line 52 of file Domain.cpp.
|
nodiscardprivate |
Register a single memory region to this domain.
The domain will own its own version of the registered memory region.
Definition at line 82 of file Domain.cpp.
| void mxl::lib::fabrics::ofi::Domain::registerRegions | ( | std::vector< Region > const & | regions, |
| std::uint64_t | access ) |
Register a list of memory regions to this domain.
The domain will own its own version of the registered memory regions. A user can retrieve associated local and remote regions using localRegions() and remoteRegions() respectively.
Definition at line 46 of file Domain.cpp.
|
nodiscardnoexcept |
Get the remote regions associated to the registered regions to this domain.
If no regions was registered previously, this will return an empty vector.
Definition at line 62 of file Domain.cpp.
|
nodiscardnoexcept |
When this returns true, it means the target must post a fi_recv in order to receive immediate data.
Definition at line 72 of file Domain.cpp.
|
nodiscardnoexcept |
When this returns true, a user should use virtual addresses instead of 0 based addresses when refering a remote address registered with this domain.
Definition at line 67 of file Domain.cpp.
|
private |
Fabric associated with this domain.
Definition at line 107 of file Domain.hpp.
|
private |
libfabric domain instance.
Definition at line 106 of file Domain.hpp.
|
private |
Registered regions associated with this domain. These are used to generate local and remote regions.
Definition at line 109 of file Domain.hpp.