12 #include <ucp/api/ucp.h>
14 #include <ucxx/component.h>
15 #include <ucxx/config.h>
16 #include <ucxx/constructors.h>
31 ucp_context_h _handle{
nullptr};
33 uint64_t _featureFlags{0};
34 bool _cudaSupport{
false};
50 UCP_FEATURE_TAG | UCP_FEATURE_WAKEUP | UCP_FEATURE_STREAM | UCP_FEATURE_AM |
180 [[nodiscard]] std::shared_ptr<Worker>
createWorker(
const bool enableDelayedSubmission =
false,
181 const bool enableFuture =
false);
221 const size_t size,
void* buffer,
const ucs_memory_type_t memoryType = UCS_MEMORY_TYPE_HOST);
A UCXX component class to prevent early destruction of parent object.
Definition: component.h:17
Component encapsulating the UCP configuration.
Definition: config.h:19
Component encapsulating the UCP context.
Definition: context.h:29
std::string getInfo()
Get information from UCP context.
friend std::shared_ptr< Context > createContext(ConfigMap ucxConfig, const uint64_t featureFlags)
Constructor of shared_ptr<ucxx::Context>.
std::shared_ptr< MemoryHandle > createMemoryHandle(const size_t size, void *buffer, const ucs_memory_type_t memoryType=UCS_MEMORY_TYPE_HOST)
Create a new std::shared_ptr<ucxx::memoryHandle>.
ConfigMap getConfig()
Get the context configuration.
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:49
std::shared_ptr< Worker > createWorker(const bool enableDelayedSubmission=false, const bool enableFuture=false)
Create a new ucxx::Worker.
std::unordered_map< std::string, std::string > ConfigMap
A UCP configuration map.
Definition: typedefs.h:95