10 #include <ucp/api/ucp.h>
12 #include <ucxx/component.h>
13 #include <ucxx/context.h>
30 uint64_t _baseAddress{0};
51 MemoryHandle(std::shared_ptr<Context> context,
const size_t size,
void* buffer);
159 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)
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.