10#include <netinet/in.h>
12#include <sys/socket.h>
15#include <ucp/api/ucp.h>
23class context :
public std::enable_shared_from_this<context> {
26 ucp_context_h context_;
46 std::shared_ptr<context>
build();
133 ucp_context_h
handle()
const;
Context builder.
Definition: context.h:34
builder & enable_amo64()
Enable atomic memory operations with 64-bit operands.
Definition: context.cc:56
std::shared_ptr< context > build()
Build and return a context object.
Definition: context.cc:17
builder & enable_wakeup()
Enable the wakeup feature.
Definition: context.cc:26
builder & enable_rma()
Enable remote memory access feature.
Definition: context.cc:46
builder & enable_amo32()
Enable atomic memory operations with 32-bit operands.
Definition: context.cc:51
builder & enable_stream()
Enable stream-related operations.
Definition: context.cc:36
builder & enable_am()
Enable active message feature.
Definition: context.cc:41
builder & enable_mt()
Enable multi-threading.
Definition: context.cc:61
builder & enable_tag()
Enable tag-related operations.
Definition: context.cc:31
builder & enable_print_config()
Print the config to stdout when building context.
Definition: context.cc:21
Abstraction of a UCX context.
Definition: context.h:23
ucp_context_h handle() const
Get the native UCX handle of the context.
Definition: context.cc:85
uint64_t features() const
Get the features of the context.
Definition: context.cc:83
~context()
Destroy the context object and release resources.
Definition: context.cc:87
context(uint64_t features, bool print_config, bool enable_mt)
Construct a new context object.
Definition: context.cc:66
Represents a registered local memory region.
Definition: memory.h:37
Abstraction for a UCX worker.
Definition: worker.h:20