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);
115 const ucs_memory_type_t memoryType);
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.
std::shared_ptr< RemoteKey > createRemoteKey()
Create a remote key for the memory allocation.
size_t getSize() const
Get the size of the memory allocation.
ucs_memory_type_t getMemoryType()
Get the memory type of the allocation.