13 #include <uct/api/uct_def.h> 14 #include <uct/api/tl.h> 15 #include <uct/api/version.h> 16 #include <ucs/async/async_fwd.h> 17 #include <ucs/datastruct/callbackq.h> 18 #include <ucs/datastruct/linear_func.h> 19 #include <ucs/memory/memory_type.h> 20 #include <ucs/type/status.h> 21 #include <ucs/type/thread_mode.h> 22 #include <ucs/type/cpu_set.h> 23 #include <ucs/stats/stats_fwd.h> 24 #include <ucs/sys/compiler_def.h> 25 #include <ucs/sys/topo/base/topo.h> 27 #include <sys/socket.h> 254 char name[UCT_COMPONENT_NAME_MAX];
328 char tl_name[UCT_TL_NAME_MAX];
329 char dev_name[UCT_DEVICE_NAME_MAX];
336 #define UCT_TL_RESOURCE_DESC_FMT "%s/%s" 337 #define UCT_TL_RESOURCE_DESC_ARG(_resource) (_resource)->tl_name, (_resource)->dev_name 347 typedef enum uct_atomic_op {
369 #define UCT_IFACE_FLAG_AM_SHORT UCS_BIT(0) 370 #define UCT_IFACE_FLAG_AM_BCOPY UCS_BIT(1) 371 #define UCT_IFACE_FLAG_AM_ZCOPY UCS_BIT(2) 373 #define UCT_IFACE_FLAG_PENDING UCS_BIT(3) 376 #define UCT_IFACE_FLAG_PUT_SHORT UCS_BIT(4) 377 #define UCT_IFACE_FLAG_PUT_BCOPY UCS_BIT(5) 378 #define UCT_IFACE_FLAG_PUT_ZCOPY UCS_BIT(6) 381 #define UCT_IFACE_FLAG_GET_SHORT UCS_BIT(8) 382 #define UCT_IFACE_FLAG_GET_BCOPY UCS_BIT(9) 383 #define UCT_IFACE_FLAG_GET_ZCOPY UCS_BIT(10) 386 #define UCT_IFACE_FLAG_ATOMIC_CPU UCS_BIT(30) 388 #define UCT_IFACE_FLAG_ATOMIC_DEVICE UCS_BIT(31) 393 #define UCT_IFACE_FLAG_ERRHANDLE_SHORT_BUF UCS_BIT(32) 394 #define UCT_IFACE_FLAG_ERRHANDLE_BCOPY_BUF UCS_BIT(33) 395 #define UCT_IFACE_FLAG_ERRHANDLE_ZCOPY_BUF UCS_BIT(34) 396 #define UCT_IFACE_FLAG_ERRHANDLE_AM_ID UCS_BIT(35) 397 #define UCT_IFACE_FLAG_ERRHANDLE_REMOTE_MEM UCS_BIT(36) 398 #define UCT_IFACE_FLAG_ERRHANDLE_BCOPY_LEN UCS_BIT(37) 399 #define UCT_IFACE_FLAG_ERRHANDLE_PEER_FAILURE UCS_BIT(38) 401 #define UCT_IFACE_FLAG_EP_CHECK UCS_BIT(39) 404 #define UCT_IFACE_FLAG_CONNECT_TO_IFACE UCS_BIT(40) 405 #define UCT_IFACE_FLAG_CONNECT_TO_EP UCS_BIT(41) 406 #define UCT_IFACE_FLAG_CONNECT_TO_SOCKADDR UCS_BIT(42) 409 #define UCT_IFACE_FLAG_AM_DUP UCS_BIT(43) 414 #define UCT_IFACE_FLAG_CB_SYNC UCS_BIT(44) 417 #define UCT_IFACE_FLAG_CB_ASYNC UCS_BIT(45) 425 #define UCT_IFACE_FLAG_EP_KEEPALIVE UCS_BIT(46) 432 #define UCT_IFACE_FLAG_TAG_EAGER_SHORT UCS_BIT(50) 433 #define UCT_IFACE_FLAG_TAG_EAGER_BCOPY UCS_BIT(51) 434 #define UCT_IFACE_FLAG_TAG_EAGER_ZCOPY UCS_BIT(52) 435 #define UCT_IFACE_FLAG_TAG_RNDV_ZCOPY UCS_BIT(53) 452 #define UCT_IFACE_FLAG_EVENT_SEND_COMP UCS_BIT(0) 454 #define UCT_IFACE_FLAG_EVENT_RECV UCS_BIT(1) 456 #define UCT_IFACE_FLAG_EVENT_RECV_SIG UCS_BIT(2) 459 #define UCT_IFACE_FLAG_EVENT_FD UCS_BIT(3) 461 #define UCT_IFACE_FLAG_EVENT_ASYNC_CB UCS_BIT(4) 1036 size_t opt_zcopy_align;
1053 size_t opt_zcopy_align;
1071 size_t opt_zcopy_align;
1088 size_t max_outstanding;
1117 } atomic32, atomic64;
1120 uint64_t event_flags;
1123 size_t device_addr_len;
1124 size_t iface_addr_len;
1126 size_t max_conn_priv;
1129 struct sockaddr_storage listen_sockaddr;
1138 ucs_linear_func_t latency;
1142 unsigned dev_num_paths;
1165 uint64_t field_mask;
1167 ucs_cpu_set_t cpu_mask;
1179 const char *tl_name;
1180 const char *dev_name;
1192 void *conn_request_arg;
1203 ucs_stats_node_t *stats_root;
1208 void *err_handler_arg;
1213 uint32_t err_handler_flags;
1223 void *async_event_arg;
1240 size_t am_alignment;
1258 size_t am_align_offset;
1278 uint64_t field_mask;
1322 uint32_t sockaddr_cb_flags;
1372 unsigned path_index;
1389 const void *private_data;
1395 size_t private_data_length;
1417 uint64_t field_mask;
1422 const void *private_data;
1428 size_t private_data_length;
1441 uint64_t field_mask;
1447 size_t max_conn_priv;
1461 uint64_t field_mask;
1466 struct sockaddr_storage sockaddr;
1481 uint64_t field_mask;
1516 uint64_t reg_mem_types;
1517 uint64_t detect_mem_types;
1518 uint64_t alloc_mem_types;
1519 uint64_t access_mem_types;
1522 ucs_linear_func_t reg_cost;
1526 char component_name[UCT_COMPONENT_NAME_MAX];
1527 size_t rkey_packed_size;
1528 ucs_cpu_set_t local_cpus;
1583 uint64_t field_mask;
1597 ucs_sys_device_t sys_dev;
1611 size_t alloc_length;
1627 size_t dmabuf_offset;
1723 char priv[UCT_PENDING_REQ_PRIV_LEN];
1763 size_t length,
void *inline_data,
ucs_status_t status);
1778 unsigned header_length,
ucs_status_t status,
unsigned flags);
1781 char priv[UCT_TAG_PRIV_LEN];
1795 extern const char *uct_alloc_method_names[];
1796 extern const char *uct_device_type_names[];
1813 unsigned *num_components_p);
1890 unsigned *num_resources_p);
1957 void *arg,
unsigned flags,
2013 const char *env_prefix,
const char *filename,
2473 uint64_t field_mask;
2543 size_t length, uct_mem_advice_t advice);
2615 unsigned num_methods,
2646 const char *env_prefix,
const char *filename,
2737 uint64_t remote_addr,
void **addr_p);
2768 return ucs_callbackq_dispatch(&worker->progress_q);
2803 return iface->ops.iface_flush(iface, flags, comp);
2821 return iface->ops.iface_fence(iface, flags);
2835 uct_recv_desc_t *release_desc = uct_recv_desc(desc);
2836 release_desc->cb(release_desc, desc);
2847 return ep->iface->ops.ep_put_short(ep, buffer, length, remote_addr, rkey);
2856 void *arg, uint64_t remote_addr,
2859 return ep->iface->ops.ep_put_bcopy(ep, pack_cb, arg, remote_addr, rkey);
2897 return ep->iface->ops.ep_put_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2908 return ep->iface->ops.ep_get_short(ep, buffer, length, remote_addr, rkey);
2917 void *arg,
size_t length,
2921 return ep->iface->ops.ep_get_bcopy(ep, unpack_cb, arg, length, remote_addr,
2960 return ep->iface->ops.ep_get_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2969 const void *payload,
unsigned length)
2971 return ep->iface->ops.ep_am_short(ep,
id, header, payload, length);
3008 return ep->iface->ops.ep_am_short_iov(ep,
id, iov, iovcnt);
3020 return ep->iface->ops.ep_am_bcopy(ep,
id, pack_cb, arg, flags);
3063 unsigned header_length,
3068 return ep->iface->ops.ep_am_zcopy(ep,
id, header, header_length, iov, iovcnt,
3080 return ep->iface->ops.ep_atomic_cswap64(ep, compare, swap, remote_addr, rkey, result, comp);
3092 return ep->iface->ops.ep_atomic_cswap32(ep, compare, swap, remote_addr, rkey, result, comp);
3101 uint32_t value, uint64_t remote_addr,
3104 return ep->iface->ops.ep_atomic32_post(ep, opcode, value, remote_addr, rkey);
3113 uint64_t value, uint64_t remote_addr,
3116 return ep->iface->ops.ep_atomic64_post(ep, opcode, value, remote_addr, rkey);
3125 uint32_t value, uint32_t *result,
3129 return ep->iface->ops.ep_atomic32_fetch(ep, opcode, value, result,
3130 remote_addr, rkey, comp);
3139 uint64_t value, uint64_t *result,
3143 return ep->iface->ops.ep_atomic64_fetch(ep, opcode, value, result,
3144 remote_addr, rkey, comp);
3172 return ep->iface->ops.ep_pending_add(ep, req, flags);
3191 ep->iface->ops.ep_pending_purge(ep, cb, arg);
3226 return ep->iface->ops.ep_flush(ep, flags, comp);
3244 return ep->iface->ops.ep_fence(ep, flags);
3271 const void *data,
size_t length)
3273 return ep->iface->ops.ep_tag_eager_short(ep, tag, data, length);
3303 void *arg,
unsigned flags)
3305 return ep->iface->ops.ep_tag_eager_bcopy(ep, tag, imm, pack_cb, arg, flags);
3353 return ep->iface->ops.ep_tag_eager_zcopy(ep, tag, imm, iov, iovcnt, flags,
3396 unsigned header_length,
3402 return ep->iface->ops.ep_tag_rndv_zcopy(ep, tag, header, header_length,
3403 iov, iovcnt, flags, comp);
3427 return ep->iface->ops.ep_tag_rndv_cancel(ep, op);
3452 unsigned header_length,
3455 return ep->iface->ops.ep_tag_rndv_request(ep, tag, header, header_length,
3497 return iface->ops.iface_tag_recv_zcopy(iface, tag, tag_mask, iov, iovcnt, ctx);
3527 return iface->ops.iface_tag_recv_cancel(iface, ctx, force);
3551 iface->ops.iface_progress_enable(iface, flags);
3576 iface->ops.iface_progress_disable(iface, flags);
3586 return iface->ops.iface_progress(iface);
3655 const char *env_prefix,
const char *filename,
3749 static UCS_F_ALWAYS_INLINE
ucs_status_t uct_ep_disconnect(uct_ep_h ep, unsigned flags)
Initiate a disconnection of an endpoint connected to a sockaddr by a connection manager uct_cm_h...
ucs_status_t uct_md_config_read(uct_component_h component, const char *env_prefix, const char *filename, uct_md_config_t **config_p)
Read the configuration for a memory domain.
ucs_status_t uct_config_get(void *config, const char *name, char *value, size_t max)
Get value by name from interface configuration (uct_iface_config_t), memory domain configuration (uct...
uct_cm_attr_field
UCT connection manager attributes field mask.
Definition: uct.h:879
ucs_status_t uct_ep_tag_eager_zcopy(uct_ep_h ep, uct_tag_t tag, uint64_t imm, const uct_iov_t *iov, size_t iovcnt, unsigned flags, uct_completion_t *comp)
Zcopy eager tagged-send operation.
Definition: uct.h:3367
uct_progress_types
UCT progress types.
Definition: uct.h:564
ucs_status_t uct_iface_get_device_address(uct_iface_h iface, uct_device_addr_t *addr)
Get address of the device the interface is using.
static UCS_F_ALWAYS_INLINE void uct_completion_update_status(uct_completion_t *comp, ucs_status_t status)
Update status of UCT completion handle.
Definition: uct.h:3771
struct uct_tl_resource_desc uct_tl_resource_desc_t
Communication resource descriptor.
void(* uct_async_event_cb_t)(void *arg, unsigned flags)
Callback to process asynchronous events.
Definition: uct_def.h:897
void uct_config_release(void *config)
Release configuration memory returned from uct_md_iface_config_read(), uct_md_config_read(), or from uct_cm_config_read().
ucs_status_t uct_md_query_tl_resources(uct_md_h md, uct_tl_resource_desc_t **resources_p, unsigned *num_resources_p)
Query for transport resources.
uct_device_type_t
List of UCX device types.
Definition: uct.h:307
ucs_status_t uct_md_mem_advise(uct_md_h md, uct_mem_h memh, void *addr, size_t length, uct_mem_advice_t advice)
Give advice about the use of memory.
ucs_status_t uct_iface_event_fd_get(uct_iface_h iface, int *fd_p)
Obtain a notification file descriptor for polling.
ucs_status_ptr_t uct_ep_tag_rndv_zcopy(uct_ep_h ep, uct_tag_t tag, const void *header, unsigned header_length, const uct_iov_t *iov, size_t iovcnt, unsigned flags, uct_completion_t *comp)
Rendezvous tagged-send operation.
Definition: uct.h:3415
ucs_status_t uct_ep_atomic32_post(uct_ep_h ep, uct_atomic_op_t opcode, uint32_t value, uint64_t remote_addr, uct_rkey_t rkey)
Definition: uct.h:3121
ucs_status_t uct_iface_event_arm(uct_iface_h iface, unsigned events)
Turn on event notification for the next event.
void * uct_mem_h
Definition: uct_def.h:84
void(* uct_sockaddr_conn_request_callback_t)(uct_iface_h iface, void *arg, uct_conn_request_h conn_request, const void *conn_priv_data, size_t length)
Callback to process an incoming connection request on the server side.
Definition: uct_def.h:642
Structure for scatter-gather I/O.
Definition: uct_def.h:147
uct_component_attr_field
UCT component attributes field mask.
Definition: uct.h:229
ucs_status_t uct_iface_accept(uct_iface_h iface, uct_conn_request_h conn_request)
Accept connection request.
uct_msg_flags
Flags for active message send operation.
Definition: uct.h:577
void uct_ep_pending_purge(uct_ep_h ep, uct_pending_purge_callback_t cb, void *arg)
Remove all pending requests from an endpoint.
Definition: uct.h:3208
ucs_status_t uct_rkey_unpack(uct_component_h component, const void *rkey_buffer, uct_rkey_bundle_t *rkey_ob)
Unpack a remote key.
ssize_t uct_ep_tag_eager_bcopy(uct_ep_h ep, uct_tag_t tag, uint64_t imm, uct_pack_callback_t pack_cb, void *arg, unsigned flags)
Bcopy eager tagged-send operation.
Definition: uct.h:3321
ucs_status_t uct_ep_flush(uct_ep_h ep, unsigned flags, uct_completion_t *comp)
Flush outstanding communication operations on an endpoint.
Definition: uct.h:3244
void(* uct_ep_disconnect_cb_t)(uct_ep_h ep, void *arg)
Callback to handle the disconnection of the remote peer.
Definition: uct_def.h:743
ucs_status_t uct_listener_query(uct_listener_h listener, uct_listener_attr_t *listener_attr)
Get attributes specific to a particular listener.
ucs_status_t uct_iface_tag_recv_cancel(uct_iface_h iface, uct_tag_context_t *ctx, int force)
Cancel a posted tag.
Definition: uct.h:3544
ucs_status_t uct_mem_alloc(size_t length, const uct_alloc_method_t *methods, unsigned num_methods, const uct_mem_alloc_params_t *params, uct_allocated_memory_t *mem)
Allocate memory for zero-copy communications and remote access.
uct_mem_advice_t
list of UCT memory use advice
Definition: uct.h:863
void uct_listener_destroy(uct_listener_h listener)
Destroy a transport listener.
Parameters used for interface creation.
Definition: uct.h:1182
struct uct_md_config uct_md_config_t
Definition: uct_def.h:81
ucs_status_t uct_ep_put_zcopy(uct_ep_h ep, const uct_iov_t *iov, size_t iovcnt, uint64_t remote_addr, uct_rkey_t rkey, uct_completion_t *comp)
Write data to remote memory while avoiding local memory copy.
Definition: uct.h:2913
Memory domain resource descriptor.
Definition: uct.h:217
ucs_status_t uct_md_detect_memory_type(uct_md_h md, const void *addr, size_t length, ucs_memory_type_t *mem_type_p)
Detect memory type.
int uct_iface_is_reachable(const uct_iface_h iface, const uct_device_addr_t *dev_addr, const uct_iface_addr_t *iface_addr)
Check if remote iface address is reachable.
void(* uct_pending_purge_callback_t)(uct_pending_req_t *self, void *arg)
Callback to purge pending requests.
Definition: uct_def.h:586
uct_mem_alloc_params_field_t
UCT allocation parameters specification field mask.
Definition: uct.h:2466
ucs_status_t uct_iface_get_address(uct_iface_h iface, uct_iface_addr_t *addr)
Get interface address.
uct_cm_t * uct_cm_h
Definition: uct_def.h:105
uct_listener_params_field
UCT listener created by uct_listener_create parameters field mask.
Definition: uct.h:905
UCT component attributes.
Definition: uct.h:244
ucs_status_t(* uct_cm_ep_resolve_callback_t)(void *user_data, const uct_cm_ep_resolve_args_t *resolve_args)
Callback to notify that the client side endpoint is bound to a local device.
Definition: uct_def.h:795
ucs_status_t uct_mem_free(const uct_allocated_memory_t *mem)
Release allocated memory.
uct_cb_flags
Callback flags.
Definition: uct.h:600
void(* uct_cm_listener_conn_request_callback_t)(uct_listener_h listener, void *arg, const uct_cm_listener_conn_request_args_t *conn_req_args)
Callback to process an incoming connection request on the server side listener in a connection manage...
Definition: uct_def.h:667
uct_listener_attr_field
UCT listener attributes field mask.
Definition: uct.h:892
void(* uct_cm_ep_server_conn_notify_callback_t)(uct_ep_h ep, void *arg, const uct_cm_ep_server_conn_notify_args_t *connect_args)
Callback to process an incoming connection establishment acknowledgment on the server side listener...
Definition: uct_def.h:697
void uct_iface_release_desc(void *desc)
Release AM descriptor.
Definition: uct.h:2854
ucs_status_t uct_ep_check(const uct_ep_h ep, unsigned flags, uct_completion_t *comp)
check if the destination endpoint is alive in respect to UCT library
UCT listener attributes, capabilities and limitations.
Definition: uct.h:1476
struct uct_worker * uct_worker_h
Definition: uct_def.h:95
ucs_status_t uct_ep_atomic_cswap64(uct_ep_h ep, uint64_t compare, uint64_t swap, uint64_t remote_addr, uct_rkey_t rkey, uint64_t *result, uct_completion_t *comp)
Definition: uct.h:3097
ucs_status_t uct_ep_atomic64_post(uct_ep_h ep, uct_atomic_op_t opcode, uint64_t value, uint64_t remote_addr, uct_rkey_t rkey)
Definition: uct.h:3133
Interface attributes: capabilities and limitations.
Definition: uct.h:1046
int uct_worker_cb_id_t
Definition: uct_def.h:111
ucs_status_t uct_ep_put_short(uct_ep_h ep, const void *buffer, unsigned length, uint64_t remote_addr, uct_rkey_t rkey)
Definition: uct.h:2865
ucs_status_t uct_ep_am_short_iov(uct_ep_h ep, uint8_t id, const uct_iov_t *iov, size_t iovcnt)
Short io-vector send operation.
Definition: uct.h:3026
ucs_status_t(* uct_error_handler_t)(void *arg, uct_ep_h ep, ucs_status_t status)
Callback to process peer failure.
Definition: uct_def.h:574
ucs_status_t uct_ep_get_short(uct_ep_h ep, void *buffer, unsigned length, uint64_t remote_addr, uct_rkey_t rkey)
Definition: uct.h:2926
ucs_status_t uct_worker_create(ucs_async_context_t *async, ucs_thread_mode_t thread_mode, uct_worker_h *worker_p)
Create a worker object.
ucs_status_t uct_ep_get_address(uct_ep_h ep, uct_ep_addr_t *addr)
Get endpoint address.
ucs_status_t uct_iface_flush(uct_iface_h iface, unsigned flags, uct_completion_t *comp)
Flush outstanding communication operations on an interface.
Definition: uct.h:2821
ucs_status_t uct_ep_get_zcopy(uct_ep_h ep, const uct_iov_t *iov, size_t iovcnt, uint64_t remote_addr, uct_rkey_t rkey, uct_completion_t *comp)
Read data from remote memory while avoiding local memory copy.
Definition: uct.h:2976
void uct_iface_progress_disable(uct_iface_h iface, unsigned flags)
Disable synchronous progress for the interface.
Definition: uct.h:3595
struct uct_iface_addr uct_iface_addr_t
Definition: uct_def.h:99
uint64_t field_mask
Definition: uct.h:251
ucs_thread_mode_t
Thread sharing mode.
Definition: thread_mode.h:19
ucs_status_t uct_ep_connect(uct_ep_h ep, const uct_ep_connect_params_t *params)
Connect a client side endpoint after it is bound to a local network device, i.e. uct_ep_params_t::cm_...
void(* uct_completion_callback_t)(uct_completion_t *self)
Callback to process send completion.
Definition: uct_def.h:536
void uct_md_close(uct_md_h md)
Close a memory domain.
ucs_status_t uct_query_components(uct_component_h **components_p, unsigned *num_components_p)
Query for list of components.
ucs_status_t uct_md_open(uct_component_h component, const char *md_name, const uct_md_config_t *config, uct_md_h *md_p)
Open a memory domain.
struct uct_cm_config uct_cm_config_t
Definition: uct_def.h:82
struct uct_ep_addr uct_ep_addr_t
Definition: uct_def.h:100
struct uct_md * uct_md_h
Memory domain handler.
Definition: uct_def.h:86
uct_ep_params_field
UCT endpoint created by uct_ep_create parameters field mask.
Definition: uct.h:924
ucs_status_t uct_ep_tag_eager_short(uct_ep_h ep, uct_tag_t tag, const void *data, size_t length)
Short eager tagged-send operation.
Definition: uct.h:3291
ucs_status_t uct_ep_am_short(uct_ep_h ep, uint8_t id, uint64_t header, const void *payload, unsigned length)
Definition: uct.h:2989
Remote key with its type.
Definition: uct.h:1701
ucs_status_t(* uct_tag_unexp_rndv_cb_t)(void *arg, unsigned flags, uint64_t stag, const void *header, unsigned header_length, uint64_t remote_addr, size_t length, const void *rkey_buf)
Callback to process unexpected rendezvous tagged message.
Definition: uct_def.h:882
ucs_status_t uct_ep_tag_rndv_cancel(uct_ep_h ep, void *op)
Cancel outstanding rendezvous operation.
Definition: uct.h:3446
ucs_status_t uct_ep_create(const uct_ep_params_t *params, uct_ep_h *ep_p)
Create new endpoint.
uct_device_type_t dev_type
Definition: uct.h:330
Memory domain attributes.
Definition: uct.h:1599
size_t(* uct_pack_callback_t)(void *dest, void *arg)
Callback for producing data.
Definition: uct_def.h:598
struct uct_rkey_bundle uct_rkey_bundle_t
Remote key with its type.
char md_name[UCT_MD_NAME_MAX]
Definition: uct.h:218
ucs_status_t uct_ep_am_zcopy(uct_ep_h ep, uint8_t id, const void *header, unsigned header_length, const uct_iov_t *iov, size_t iovcnt, unsigned flags, uct_completion_t *comp)
Send active message while avoiding local memory copy.
Definition: uct.h:3082
ucs_status_t
Status codes.
Definition: status.h:45
void uct_worker_progress_unregister_safe(uct_worker_h worker, uct_worker_cb_id_t *id_p)
Remove a slow path callback function from worker's progress.
enum uct_md_mem_attr_field uct_md_mem_attr_field_t
UCT MD memory attributes field mask.
ucs_status_t uct_iface_open(uct_md_h md, uct_worker_h worker, const uct_iface_params_t *params, const uct_iface_config_t *config, uct_iface_h *iface_p)
Open a communication interface.
ucs_status_t uct_rkey_ptr(uct_component_h component, uct_rkey_bundle_t *rkey_ob, uint64_t remote_addr, void **addr_p)
Get a local pointer to remote memory.
uct_md_mem_flags
Memory allocation/registration flags.
Definition: uct.h:790
Parameters for creating a listener object uct_listener_h by uct_listener_create.
Definition: uct.h:1496
uint64_t flags
Definition: uct.h:277
ucs_status_t uct_cm_client_ep_conn_notify(uct_ep_h ep)
Notify the server about client-side connection establishment.
Connection manager attributes, capabilities and limitations.
Definition: uct.h:1456
struct uct_listener * uct_listener_h
Definition: uct_def.h:107
ucs_status_t uct_md_mkey_pack(uct_md_h md, uct_mem_h memh, void *rkey_buffer)
Pack a remote key.
ucs_status_t uct_md_query(uct_md_h md, uct_md_attr_t *md_attr)
Query for memory domain attributes.
void(* uct_unpack_callback_t)(void *arg, const void *data, size_t length)
Callback for consuming data.
Definition: uct_def.h:611
void uct_iface_progress_enable(uct_iface_h iface, unsigned flags)
Enable synchronous progress for the interface.
Definition: uct.h:3570
ucs_status_t uct_ep_atomic64_fetch(uct_ep_h ep, uct_atomic_op_t opcode, uint64_t value, uint64_t *result, uint64_t remote_addr, uct_rkey_t rkey, uct_completion_t *comp)
Definition: uct.h:3159
uct_iface_feature
UCT interface configuration features.
Definition: uct.h:1002
ssize_t uct_ep_am_bcopy(uct_ep_h ep, uint8_t id, uct_pack_callback_t pack_cb, void *arg, unsigned flags)
Definition: uct.h:3037
uct_flush_flags
Flush modifiers.
Definition: uct.h:528
struct uct_component * uct_component_h
Definition: uct_def.h:78
ucs_status_t uct_iface_reject(uct_iface_h iface, uct_conn_request_h conn_request)
Reject connection request. Will invoke an error handler uct_error_handler_t on the remote transport i...
uct_md_mem_attr_field
UCT MD memory attributes field mask.
Definition: uct.h:1560
uct_alloc_method_t
Memory allocation methods.
Definition: uct.h:493
uint64_t uct_tag_t
Definition: uct_def.h:110
struct uct_iface_config uct_iface_config_t
Definition: uct_def.h:80
ucs_status_t uct_rkey_release(uct_component_h component, const uct_rkey_bundle_t *rkey_ob)
Release a remote key.
ucs_status_t uct_config_modify(void *config, const char *name, const char *value)
Modify interface configuration (uct_iface_config_t), memory domain configuration (uct_md_config_t) or...
Parameters for connecting a UCT endpoint by uct_ep_connect.
Definition: uct.h:1432
Parameters for allocating memory using uct_mem_alloc.
Definition: uct.h:2488
void uct_iface_mem_free(const uct_allocated_memory_t *mem)
Release memory allocated with uct_iface_mem_alloc().
enum ucs_memory_type ucs_memory_type_t
Memory types.
ucs_status_t uct_iface_fence(uct_iface_h iface, unsigned flags)
Ensures ordering of outstanding communications on the interface. Operations issued on the interface p...
Definition: uct.h:2840
ucs_status_t status
Definition: uct.h:1729
uct_ep_connect_params_field
UCT endpoint connected by uct_ep_connect parameters field mask.
Definition: uct.h:985
struct uct_md_resource_desc uct_md_resource_desc_t
Memory domain resource descriptor.
ssize_t(* uct_cm_ep_priv_data_pack_callback_t)(void *arg, const uct_cm_ep_priv_data_pack_args_t *pack_args, void *priv_data)
Callback to fill the user's private data in a client-server flow.
Definition: uct_def.h:771
unsigned md_resource_count
Definition: uct.h:257
unsigned long ucs_time_t
Definition: time_def.h:23
ucs_status_t uct_ep_tag_rndv_request(uct_ep_h ep, uct_tag_t tag, const void *header, unsigned header_length, unsigned flags)
Send software rendezvous request.
Definition: uct.h:3471
uct_iface_open_mode
Mode in which to open the interface.
Definition: uct.h:624
ucs_status_t uct_md_mem_reg(uct_md_h md, void *address, size_t length, unsigned flags, uct_mem_h *memh_p)
Register memory for zero-copy sends and remote access.
ucs_status_t uct_ep_pending_add(uct_ep_h ep, uct_pending_req_t *req, unsigned flags)
Add a pending request to an endpoint.
Definition: uct.h:3189
ucs_status_t uct_iface_set_am_tracer(uct_iface_h iface, uct_am_tracer_t tracer, void *arg)
Set active message tracer for the interface.
void uct_ep_destroy(uct_ep_h ep)
Destroy an endpoint.
Parameters for creating a UCT endpoint by uct_ep_create.
Definition: uct.h:1293
void * ucs_status_ptr_t
Status pointer.
Definition: status.h:106
uct_sockaddr_accessibility_t
Socket address accessibility type.
Definition: uct.h:710
ucs_status_t uct_cm_open(uct_component_h component, uct_worker_h worker, const uct_cm_config_t *config, uct_cm_h *cm_p)
Open a connection manager.
ucs_status_t uct_component_query(uct_component_h component, uct_component_attr_t *component_attr)
Get component attributes.
ucs_status_t uct_cm_config_read(uct_component_h component, const char *env_prefix, const char *filename, uct_cm_config_t **config_p)
Read the configuration for a connection manager.
Memory domain attributes.
Definition: uct.h:1532
uct_iface_params_field
UCT interface created by uct_iface_open parameters field mask.
Definition: uct.h:645
ucs_status_t uct_listener_reject(uct_listener_h listener, uct_conn_request_h conn_request)
Reject a connection request.
struct uct_component_attr uct_component_attr_t
UCT component attributes.
ucs_status_t uct_cm_query(uct_cm_h cm, uct_cm_attr_t *cm_attr)
Get connection manager attributes.
void * uct_conn_request_h
Definition: uct_def.h:112
void uct_release_tl_resource_list(uct_tl_resource_desc_t *resources)
Release the list of resources returned from uct_md_query_tl_resources.
void uct_cm_close(uct_cm_h cm)
Close a connection manager.
ucs_status_t uct_md_iface_config_read(uct_md_h md, const char *tl_name, const char *env_prefix, const char *filename, uct_iface_config_t **config_p)
Read transport-specific interface configuration.
ucs_status_t uct_ep_fence(uct_ep_h ep, unsigned flags)
Ensures ordering of outstanding communications on the endpoint. Operations issued on the endpoint pri...
Definition: uct.h:3263
struct uct_allocated_memory uct_allocated_memory_t
Describes a memory allocated by UCT.
void uct_worker_destroy(uct_worker_h worker)
Destroy a worker object.
void(* uct_am_tracer_t)(void *arg, uct_am_trace_type_t type, uint8_t id, const void *data, size_t length, char *buffer, size_t max)
Callback to trace active messages.
Definition: uct_def.h:524
ucs_status_t(* uct_pending_callback_t)(uct_pending_req_t *self)
Callback to process pending requests.
Definition: uct_def.h:553
Communication resource descriptor.
Definition: uct.h:327
Pending request.
Definition: uct.h:1742
uct_md_resource_desc_t * md_resources
Definition: uct.h:272
ucs_status_t uct_iface_set_am_handler(uct_iface_h iface, uint8_t id, uct_am_callback_t cb, void *arg, uint32_t flags)
Set active message handler for the interface.
unsigned uct_worker_progress(uct_worker_h worker)
Explicit progress for UCT worker.
Definition: uct.h:2787
void(* uct_cm_ep_client_connect_callback_t)(uct_ep_h ep, void *arg, const uct_cm_ep_client_connect_args_t *connect_args)
Callback to process an incoming connection response on the client side from the server or handle a lo...
Definition: uct_def.h:721
void uct_worker_progress_register_safe(uct_worker_h worker, ucs_callback_t func, void *arg, unsigned flags, uct_worker_cb_id_t *id_p)
Add a slow path callback function to a worker progress.
struct uct_iface * uct_iface_h
Definition: uct_def.h:79
ucs_status_t uct_listener_create(uct_cm_h cm, const struct sockaddr *saddr, socklen_t socklen, const uct_listener_params_t *params, uct_listener_h *listener_p)
Create a new transport listener object.
struct uct_ep * uct_ep_h
Definition: uct_def.h:83
ucs_status_t uct_md_mem_dereg(uct_md_h md, uct_mem_h memh)
Undo the operation of uct_md_mem_reg().
void uct_release_component_list(uct_component_h *components)
Release the list of components returned from uct_query_components.
Posted tag context.
Definition: uct.h:1755
ucs_status_t uct_iface_query(uct_iface_h iface, uct_iface_attr_t *iface_attr)
Get interface attributes.
ucs_status_t(* uct_tag_unexp_eager_cb_t)(void *arg, void *data, size_t length, unsigned flags, uct_tag_t stag, uint64_t imm, void **context)
Callback to process unexpected eager tagged message.
Definition: uct_def.h:845
Completion handle.
Definition: uct.h:1726
ssize_t uct_ep_put_bcopy(uct_ep_h ep, uct_pack_callback_t pack_cb, void *arg, uint64_t remote_addr, uct_rkey_t rkey)
Definition: uct.h:2876
ucs_status_t uct_ep_get_bcopy(uct_ep_h ep, uct_unpack_callback_t unpack_cb, void *arg, size_t length, uint64_t remote_addr, uct_rkey_t rkey, uct_completion_t *comp)
Definition: uct.h:2937
struct uct_device_addr uct_device_addr_t
Definition: uct_def.h:98
void uct_iface_close(uct_iface_h iface)
Close and destroy an interface.
unsigned uct_iface_progress(uct_iface_h iface)
Perform a progress on an interface.
Definition: uct.h:3605
ucs_sys_device_t sys_device
Definition: uct.h:332
ucs_status_t(* uct_am_callback_t)(void *arg, void *data, size_t length, unsigned flags)
Callback to process incoming active message.
Definition: uct_def.h:506
uintptr_t uct_rkey_t
Definition: uct_def.h:85
ucs_status_t uct_iface_tag_recv_zcopy(uct_iface_h iface, uct_tag_t tag, uct_tag_t tag_mask, const uct_iov_t *iov, size_t iovcnt, uct_tag_context_t *ctx)
Post a tag to a transport interface.
Definition: uct.h:3511
ucs_status_t uct_ep_connect_to_ep(uct_ep_h ep, const uct_device_addr_t *dev_addr, const uct_ep_addr_t *ep_addr)
Connect endpoint to a remote endpoint.
struct uct_md_mem_attr uct_md_mem_attr_t
Memory domain attributes.
ucs_status_t uct_md_mem_query(uct_md_h md, const void *address, size_t length, uct_md_mem_attr_t *mem_attr)
Query attributes of a given pointer.
ucs_status_t uct_iface_mem_alloc(uct_iface_h iface, size_t length, unsigned flags, const char *name, uct_allocated_memory_t *mem)
Allocate memory which can be used for zero-copy communications.
ucs_status_t uct_ep_atomic32_fetch(uct_ep_h ep, uct_atomic_op_t opcode, uint32_t value, uint32_t *result, uint64_t remote_addr, uct_rkey_t rkey, uct_completion_t *comp)
Definition: uct.h:3145
int uct_md_is_sockaddr_accessible(uct_md_h md, const ucs_sock_addr_t *sockaddr, uct_sockaddr_accessibility_t mode)
Check if remote sock address is accessible from the memory domain.
ucs_status_t uct_ep_atomic_cswap32(uct_ep_h ep, uint32_t compare, uint32_t swap, uint64_t remote_addr, uct_rkey_t rkey, uint32_t *result, uct_completion_t *comp)
Definition: uct.h:3109
uct_iface_event_types
Asynchronous event types.
Definition: uct.h:516
Describes a memory allocated by UCT.
Definition: uct.h:1684