10 #include <ucp/api/ucp.h>
12 #include <ucxx/component.h>
13 #include <ucxx/context.h>
30 uint64_t _baseAddress{0};
31 ucs_memory_type_t _memoryType{
32 UCS_MEMORY_TYPE_HOST};
57 const ucs_memory_type_t memoryType);
113 std::shared_ptr<Context> context,
116 const ucs_memory_type_t memoryType);
168 [[nodiscard]] ucs_memory_type_t getMemoryType();
170 [[nodiscard]] std::shared_ptr<RemoteKey> createRemoteKey();
A UCXX component class to prevent early destruction of parent object.
Definition: component.h:17
Component holding a UCP memory handle.
Definition: memory_handle.h:26
friend std::shared_ptr< MemoryHandle > createMemoryHandle(std::shared_ptr< Context > context, const size_t size, void *buffer, const ucs_memory_type_t memoryType)
Constructor for shared_ptr<ucxx::MemoryHandle>.
uint64_t getBaseAddress()
Get the base address of the memory allocation.
ucp_mem_h getHandle()
Get the underlying ucp_mem_h handle.
size_t getSize() const
Get the size of the memory allocation.