12#include <ucp/api/ucp.h>
14#include <ucxx/component.h>
15#include <ucxx/config.h>
16#include <ucxx/context_builder.h>
17#include <ucxx/memory_handle_builder.h>
18#include <ucxx/worker_builder.h>
37 ucp_context_h _handle{
nullptr};
39 uint64_t _featureFlags{0};
40 bool _cudaSupport{
false};
54 Context(
const ConfigMap ucxConfig,
const uint64_t featureFlags);
58 UCP_FEATURE_TAG | UCP_FEATURE_WAKEUP | UCP_FEATURE_STREAM | UCP_FEATURE_AM |
62 Context(
const Context&) =
delete;
63 Context& operator=(Context
const&) =
delete;
64 Context(Context&& o) =
delete;
65 Context& operator=(Context&& o) =
delete;
68 friend class detail::ConstructorFactory;
A UCXX component class to prevent early destruction of parent object.
Definition component.h:21
Component encapsulating the UCP configuration.
Definition config.h:19
Builder class for constructing std::shared_ptr<ucxx::Context> objects.
Definition context_builder.h:43
WorkerBuilder workerBuilder()
Create a builder for a new ucxx::Worker.
std::string getInfo()
Get information from UCP context.
friend class ContextBuilder
Allow ContextBuilder to access private constructor.
Definition context.h:73
ConfigMap getConfig()
Get the context configuration.
MemoryHandleBuilder memoryHandleBuilder(size_t size)
Create a builder for a new ucxx::MemoryHandle.
bool hasCudaSupport() const
Query whether CUDA support is available.
~Context()
ucxx::Context destructor
ucp_context_h getHandle()
Get the underlying ucp_context_h handle.
uint64_t getFeatureFlags() const
Get feature flags that were used to construct the UCP context.
static constexpr uint64_t defaultFeatureFlags
Suggested default context feature flags to use.
Definition context.h:57
Builder class for constructing std::shared_ptr<ucxx::MemoryHandle> objects.
Definition memory_handle_builder.h:25
Component holding a UCP memory handle.
Definition memory_handle.h:28
Builder class for constructing std::shared_ptr<ucxx::Worker> objects.
Definition worker_builder.h:45
Component encapsulating a UCP worker.
Definition worker.h:62
std::unordered_map< std::string, std::string > ConfigMap
A UCP configuration map.
Definition typedefs.h:89