10#include <ucs/config/types.h>
11#include <ucs/type/status.h>
18#define UCT_COMPONENT_NAME_MAX 16
19#define UCT_MD_GLOBAL_ID_MAX 256
20#define UCT_TL_NAME_MAX 10
21#define UCT_MD_NAME_MAX 16
22#define UCT_DEVICE_NAME_MAX 32
23#define UCT_PENDING_REQ_PRIV_LEN 40
24#define UCT_TAG_PRIV_LEN 32
25#define UCT_AM_ID_BITS 5
26#define UCT_AM_ID_MAX UCS_BIT(UCT_AM_ID_BITS)
27#define UCT_MEM_HANDLE_NULL NULL
28#define UCT_INVALID_RKEY ((uintptr_t)(-1))
29#define UCT_INLINE_API static UCS_F_ALWAYS_INLINE
30#define UCT_DMABUF_FD_INVALID -1
525 const void *data,
size_t length,
char *buffer,
644 const void *conn_priv_data,
773 *pack_args,
void *priv_data);
846 size_t length,
unsigned flags,
883 uint64_t stag,
const void *header,
884 unsigned header_length,
885 uint64_t remote_addr,
size_t length,
886 const void *rkey_buf);
ucs_status_t
Status codes.
Definition status.h:45
uct_am_trace_type
Trace types for active message tracer.
Definition uct_def.h:37
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_am_callback_t)(void *arg, void *data, size_t length, unsigned flags)
Callback to process incoming active message.
Definition uct_def.h:506
@ UCT_AM_TRACE_TYPE_RECV
Definition uct_def.h:39
@ UCT_AM_TRACE_TYPE_SEND_DROP
Definition uct_def.h:40
@ UCT_AM_TRACE_TYPE_LAST
Definition uct_def.h:42
@ UCT_AM_TRACE_TYPE_RECV_DROP
Definition uct_def.h:41
@ UCT_AM_TRACE_TYPE_SEND
Definition uct_def.h:38
size_t dev_addr_length
Definition uct_def.h:297
uint64_t field_mask
Definition uct_def.h:415
ucs_status_t status
Definition uct_def.h:476
char dev_name[UCT_DEVICE_NAME_MAX]
Definition uct_def.h:214
uint64_t field_mask
Definition uct_def.h:206
const uct_cm_remote_data_t * remote_data
Definition uct_def.h:377
const void * conn_priv_data
Definition uct_def.h:303
char dev_name[UCT_DEVICE_NAME_MAX]
Definition uct_def.h:365
uint64_t field_mask
Definition uct_def.h:464
ucs_status_t status
Definition uct_def.h:431
ucs_sock_addr_t client_address
Definition uct_def.h:382
uint64_t field_mask
Definition uct_def.h:230
size_t conn_priv_data_length
Definition uct_def.h:308
uint64_t field_mask
Definition uct_def.h:360
const uct_device_addr_t * dev_addr
Definition uct_def.h:292
const uct_cm_remote_data_t * remote_data
Definition uct_def.h:420
uct_conn_request_h conn_request
Definition uct_def.h:372
uint64_t field_mask
Definition uct_def.h:287
char dev_name[UCT_DEVICE_NAME_MAX]
Definition uct_def.h:238
ucs_status_t status
Definition uct_def.h:248
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
struct uct_cm_remote_data uct_cm_remote_data_t
Data received from the remote peer.
uct_cm_remote_data_field
Remote data attributes field mask.
Definition uct_def.h:259
uct_cm_ep_priv_data_pack_args_field
Client-Server private data pack callback arguments field mask.
Definition uct_def.h:165
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
uct_cm_ep_client_connect_args_field
Field mask flags for client-side connection established callback.
Definition uct_def.h:394
uct_cm_ep_resolve_args_field
Client-Server resolve callback arguments field mask.
Definition uct_def.h:181
struct uct_cm_listener_conn_request_args uct_cm_listener_conn_request_args_t
Arguments to the listener's connection request callback.
struct uct_cm_ep_priv_data_pack_args uct_cm_ep_priv_data_pack_args_t
Arguments to the client-server private data pack callback.
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
struct uct_cm_ep_client_connect_args uct_cm_ep_client_connect_args_t
Arguments to the client's connect callback.
uct_cm_listener_conn_request_args_field
Listener's connection request callback arguments field mask.
Definition uct_def.h:320
struct uct_cm_ep_resolve_args uct_cm_ep_resolve_args_t
Arguments to the client-server resolved callback.
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_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
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
struct uct_cm_ep_server_conn_notify_args uct_cm_ep_server_conn_notify_args_t
Arguments to the server's notify callback.
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
uct_cm_ep_server_conn_notify_args_field
Field mask flags for server-side connection established notification callback.
Definition uct_def.h:444
@ UCT_CM_REMOTE_DATA_FIELD_DEV_ADDR_LENGTH
Definition uct_def.h:264
@ UCT_CM_REMOTE_DATA_FIELD_CONN_PRIV_DATA_LENGTH
Definition uct_def.h:270
@ UCT_CM_REMOTE_DATA_FIELD_CONN_PRIV_DATA
Definition uct_def.h:267
@ UCT_CM_REMOTE_DATA_FIELD_DEV_ADDR
Definition uct_def.h:261
@ UCT_CM_EP_PRIV_DATA_PACK_ARGS_FIELD_DEVICE_NAME
Definition uct_def.h:170
@ UCT_CM_EP_CLIENT_CONNECT_ARGS_FIELD_STATUS
Definition uct_def.h:399
@ UCT_CM_EP_CLIENT_CONNECT_ARGS_FIELD_REMOTE_DATA
Definition uct_def.h:396
@ UCT_CM_EP_RESOLVE_ARGS_FIELD_DEV_NAME
Definition uct_def.h:185
@ UCT_CM_EP_RESOLVE_ARGS_FIELD_STATUS
Definition uct_def.h:190
@ UCT_CM_LISTENER_CONN_REQUEST_ARGS_FIELD_DEV_NAME
Definition uct_def.h:325
@ UCT_CM_LISTENER_CONN_REQUEST_ARGS_FIELD_REMOTE_DATA
Definition uct_def.h:337
@ UCT_CM_LISTENER_CONN_REQUEST_ARGS_FIELD_CONN_REQUEST
Definition uct_def.h:331
@ UCT_CM_LISTENER_CONN_REQUEST_ARGS_FIELD_CLIENT_ADDR
Definition uct_def.h:343
@ UCT_CM_EP_SERVER_CONN_NOTIFY_ARGS_FIELD_STATUS
Definition uct_def.h:448
Connection manager attributes, capabilities and limitations.
Definition uct.h:1454
Arguments to the client's connect callback.
Definition uct_def.h:409
Arguments to the client-server private data pack callback.
Definition uct_def.h:200
Arguments to the client-server resolved callback.
Definition uct_def.h:224
Arguments to the server's notify callback.
Definition uct_def.h:458
Arguments to the listener's connection request callback.
Definition uct_def.h:354
Data received from the remote peer.
Definition uct_def.h:281
Parameters for connecting a UCT endpoint by uct_ep_connect.
Definition uct.h:1430
UCT listener attributes, capabilities and limitations.
Definition uct.h:1474
Parameters for creating a listener object uct_listener_h by uct_listener_create.
Definition uct.h:1494
Memory domain attributes.
Definition uct.h:1530
size_t stride
Definition uct_def.h:151
void * buffer
Definition uct_def.h:148
uct_mem_h memh
Definition uct_def.h:150
size_t length
Definition uct_def.h:149
unsigned count
Definition uct_def.h:153
struct uct_iov uct_iov_t
Structure for scatter-gather I/O.
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
uint64_t uct_tag_t
Definition uct_def.h:110
void * uct_mem_h
Definition uct_def.h:84
struct uct_worker * uct_worker_h
Definition uct_def.h:95
uintptr_t uct_rkey_t
Definition uct_def.h:85
void(* uct_pending_purge_callback_t)(uct_pending_req_t *self, void *arg)
Callback to purge pending requests.
Definition uct_def.h:586
uct_cb_param_flags
Flags for active message and tag-matching offload callbacks (callback's parameters).
Definition uct_def.h:68
void(* uct_unpack_callback_t)(void *arg, const void *data, size_t length)
Callback for consuming data.
Definition uct_def.h:611
void * uct_conn_request_h
Definition uct_def.h:112
size_t(* uct_pack_callback_t)(void *dest, void *arg)
Callback for producing data.
Definition uct_def.h:598
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
enum uct_am_trace_type uct_am_trace_type_t
Definition uct_def.h:97
struct uct_iface_addr uct_iface_addr_t
Definition uct_def.h:99
struct uct_component * uct_component_h
Definition uct_def.h:78
struct uct_iface_config uct_iface_config_t
Definition uct_def.h:80
struct uct_cm_config uct_cm_config_t
Definition uct_def.h:82
int uct_worker_cb_id_t
Definition uct_def.h:111
struct uct_ep_attr uct_ep_attr_t
Definition uct_def.h:91
struct uct_iface * uct_iface_h
Definition uct_def.h:79
uct_cm_t * uct_cm_h
Definition uct_def.h:105
void * uct_rkey_ctx_h
Definition uct_def.h:88
struct uct_md_config uct_md_config_t
Definition uct_def.h:81
struct uct_device_addr uct_device_addr_t
Definition uct_def.h:98
struct uct_md_ops uct_md_ops_t
Definition uct_def.h:87
ucs_status_t(* uct_pending_callback_t)(uct_pending_req_t *self)
Callback to process pending requests.
Definition uct_def.h:553
struct uct_md uct_md_t
Definition uct_def.h:96
struct uct_ep * uct_ep_h
Definition uct_def.h:83
struct uct_cm uct_cm_t
Definition uct_def.h:104
struct uct_listener * uct_listener_h
Definition uct_def.h:107
void(* uct_async_event_cb_t)(void *arg, unsigned flags)
Callback to process asynchronous events.
Definition uct_def.h:897
void(* uct_completion_callback_t)(uct_completion_t *self)
Callback to process send completion.
Definition uct_def.h:536
@ UCT_CB_PARAM_FLAG_MORE
Definition uct_def.h:71
@ UCT_CB_PARAM_FLAG_DESC
Definition uct_def.h:69
@ UCT_CB_PARAM_FLAG_FIRST
Definition uct_def.h:70
Completion handle.
Definition uct.h:1724
Parameters for creating a UCT endpoint by uct_ep_create.
Definition uct.h:1291
Interface attributes: capabilities and limitations.
Definition uct.h:1044
Parameters used for interface creation.
Definition uct.h:1180
Structure for scatter-gather I/O.
Definition uct_def.h:147
Pending request.
Definition uct.h:1740
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
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
Posted tag context.
Definition uct.h:1753