Represents a registered local memory region.
More...
#include <ucxpp/memory.h>
Represents a registered local memory region.
- Examples
- helloworld.cc.
◆ local_memory_handle() [1/2]
ucxpp::local_memory_handle::local_memory_handle |
( |
std::shared_ptr< context > |
ctx, |
|
|
ucp_mem_h |
mem |
|
) |
| |
Construct a new local memory handle object.
- Parameters
-
ctx | UCX context |
mem | UCX memory handle |
◆ local_memory_handle() [2/2]
Construct a new local memory handle object.
- Parameters
-
other | Another local memory handle to move from |
◆ allocate_mem()
std::pair< void *, local_memory_handle > ucxpp::local_memory_handle::allocate_mem |
( |
std::shared_ptr< context > |
ctx, |
|
|
size_t |
length |
|
) |
| |
|
static |
Allocate and register a local memory region.
- Parameters
-
ctx | UCX context |
length | Desired length of the memory region |
- Returns
- std::pair<void *, local_memory_handle> A pair of pointer to the allocated memory region and the local memory handle
◆ handle()
ucp_mem_h ucxpp::local_memory_handle::handle |
( |
| ) |
const |
Get the native UCX memory handle.
- Returns
- ucp_mem_h
◆ pack_rkey()
Pack the information needed for remote access to the memory region. It is intended to be sent to the remote peer.
- Returns
- packed_memory_rkey The packed memory handle
- Examples
- helloworld.cc.
The documentation for this class was generated from the following files: