UCX++
Classes | Public Member Functions | Friends | List of all members
ucxpp::context Class Reference

Abstraction of a UCX context. More...

#include <ucxpp/context.h>

Inheritance diagram for ucxpp::context:
Inheritance graph
[legend]
Collaboration diagram for ucxpp::context:
Collaboration graph
[legend]

Classes

class  builder
 Context builder. More...
 

Public Member Functions

 context (uint64_t features, bool print_config, bool enable_mt)
 Construct a new context object. More...
 
uint64_t features () const
 Get the features of the context. More...
 
ucp_context_h handle () const
 Get the native UCX handle of the context. More...
 
 ~context ()
 Destroy the context object and release resources.
 

Friends

class worker
 
class local_memory_handle
 

Detailed Description

Abstraction of a UCX context.

Constructor & Destructor Documentation

◆ context()

ucxpp::context::context ( uint64_t  features,
bool  print_config,
bool  enable_mt 
)

Construct a new context object.

Parameters
featuresFeature flags
print_configPrint the config to stdout
enable_mtEnable multi-threading

Member Function Documentation

◆ features()

uint64_t ucxpp::context::features ( ) const

Get the features of the context.

Returns
uint64_t Feature flags

◆ handle()

ucp_context_h ucxpp::context::handle ( ) const

Get the native UCX handle of the context.

Returns
ucp_context_h The native UCX handle

The documentation for this class was generated from the following files: