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};
58 UCP_FEATURE_TAG | UCP_FEATURE_WAKEUP | UCP_FEATURE_STREAM | UCP_FEATURE_AM |
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
Component encapsulating the UCP context.
Definition: context.h:35
WorkerBuilder workerBuilder()
Create a builder for a new ucxx::Worker.
std::string getInfo()
Get information from UCP context.
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
Builder class for constructing std::shared_ptr<ucxx::Worker> objects.
Definition: worker_builder.h:45
std::unordered_map< std::string, std::string > ConfigMap
A UCP configuration map.
Definition: typedefs.h:89