Class SharedReceiveContext
Defined in File SharedReceiveContext.hpp
Class Documentation
-
class SharedReceiveContext
Shared receive context for libfabric.
Can be used to save resources when many receive endpoints are created. For example, receive buffers can be shared between multiple receive endpoints, which reduces the number of memory regions that need to be registered.
Public Functions
-
SharedReceiveContext(fid_domain *domain, const fi_info *info)
Constructs a SharedReceiveContext object.
- Throws:
LibfabricSharedReceiveContextError – in case of a libfabric error
- Parameters:
domain – The listen domain (used to create shared receive context)
info – The network info
-
inline const fid_ep *get() const
Get the shared receive context.
- Returns:
A constant pointer for const objects, non const for non const objects
-
inline fid_ep *get()
-
SharedReceiveContext(fid_domain *domain, const fi_info *info)