UCX 1.17
Unified Communication X
Loading...
Searching...
No Matches
uct.h
1
10#ifndef UCT_H_
11#define UCT_H_
12
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/callbackq_compat.h>
19#include <ucs/datastruct/linear_func.h>
20#include <ucs/memory/memory_type.h>
21#include <ucs/type/status.h>
22#include <ucs/type/thread_mode.h>
23#include <ucs/type/cpu_set.h>
24#include <ucs/stats/stats_fwd.h>
25#include <ucs/sys/compiler_def.h>
26#include <ucs/sys/topo/base/topo.h>
27
28#include <sys/socket.h>
29#include <stdio.h>
30#include <sched.h>
31
32BEGIN_C_DECLS
33
218typedef struct uct_md_resource_desc {
219 char md_name[UCT_MD_NAME_MAX];
221
222
236
237
245typedef struct uct_component_attr {
252 uint64_t field_mask;
253
255 char name[UCT_COMPONENT_NAME_MAX];
256
259
274
278 uint64_t flags;
280
281
289enum {
295
300 UCT_COMPONENT_FLAG_RKEY_PTR = UCS_BIT(1)
302
303
315
316
328typedef struct uct_tl_resource_desc {
329 char tl_name[UCT_TL_NAME_MAX];
330 char dev_name[UCT_DEVICE_NAME_MAX];
333 ucs_sys_device_t sys_device;
336
337#define UCT_TL_RESOURCE_DESC_FMT "%s/%s"
338#define UCT_TL_RESOURCE_DESC_ARG(_resource) (_resource)->tl_name, (_resource)->dev_name
339
340
348typedef enum uct_atomic_op {
349 UCT_ATOMIC_OP_ADD,
350 UCT_ATOMIC_OP_AND,
351 UCT_ATOMIC_OP_OR,
352 UCT_ATOMIC_OP_XOR,
353 UCT_ATOMIC_OP_SWAP,
354 UCT_ATOMIC_OP_CSWAP,
355 UCT_ATOMIC_OP_LAST
356} uct_atomic_op_t;
357
358
369 /* Active message capabilities */
370#define UCT_IFACE_FLAG_AM_SHORT UCS_BIT(0)
371#define UCT_IFACE_FLAG_AM_BCOPY UCS_BIT(1)
372#define UCT_IFACE_FLAG_AM_ZCOPY UCS_BIT(2)
374#define UCT_IFACE_FLAG_PENDING UCS_BIT(3)
376 /* PUT capabilities */
377#define UCT_IFACE_FLAG_PUT_SHORT UCS_BIT(4)
378#define UCT_IFACE_FLAG_PUT_BCOPY UCS_BIT(5)
379#define UCT_IFACE_FLAG_PUT_ZCOPY UCS_BIT(6)
381 /* GET capabilities */
382#define UCT_IFACE_FLAG_GET_SHORT UCS_BIT(8)
383#define UCT_IFACE_FLAG_GET_BCOPY UCS_BIT(9)
384#define UCT_IFACE_FLAG_GET_ZCOPY UCS_BIT(10)
386 /* Atomic operations domain */
387#define UCT_IFACE_FLAG_ATOMIC_CPU UCS_BIT(30)
389#define UCT_IFACE_FLAG_ATOMIC_DEVICE UCS_BIT(31)
393 /* Error handling capabilities */
394#define UCT_IFACE_FLAG_ERRHANDLE_SHORT_BUF UCS_BIT(32)
395#define UCT_IFACE_FLAG_ERRHANDLE_BCOPY_BUF UCS_BIT(33)
396#define UCT_IFACE_FLAG_ERRHANDLE_ZCOPY_BUF UCS_BIT(34)
397#define UCT_IFACE_FLAG_ERRHANDLE_AM_ID UCS_BIT(35)
398#define UCT_IFACE_FLAG_ERRHANDLE_REMOTE_MEM UCS_BIT(36)
399#define UCT_IFACE_FLAG_ERRHANDLE_BCOPY_LEN UCS_BIT(37)
400#define UCT_IFACE_FLAG_ERRHANDLE_PEER_FAILURE UCS_BIT(38)
402#define UCT_IFACE_FLAG_EP_CHECK UCS_BIT(39)
404 /* Connection establishment */
405#define UCT_IFACE_FLAG_CONNECT_TO_IFACE UCS_BIT(40)
406#define UCT_IFACE_FLAG_CONNECT_TO_EP UCS_BIT(41)
407#define UCT_IFACE_FLAG_CONNECT_TO_SOCKADDR UCS_BIT(42)
409 /* Special transport flags */
410#define UCT_IFACE_FLAG_AM_DUP UCS_BIT(43)
414 /* Callback invocation */
415#define UCT_IFACE_FLAG_CB_SYNC UCS_BIT(44)
418#define UCT_IFACE_FLAG_CB_ASYNC UCS_BIT(45)
425 /* Keepalive */
426#define UCT_IFACE_FLAG_EP_KEEPALIVE UCS_BIT(46)
432 /* Tag matching operations */
433#define UCT_IFACE_FLAG_TAG_EAGER_SHORT UCS_BIT(50)
434#define UCT_IFACE_FLAG_TAG_EAGER_BCOPY UCS_BIT(51)
435#define UCT_IFACE_FLAG_TAG_EAGER_ZCOPY UCS_BIT(52)
436#define UCT_IFACE_FLAG_TAG_RNDV_ZCOPY UCS_BIT(53)
452 /* Event types */
453#define UCT_IFACE_FLAG_EVENT_SEND_COMP UCS_BIT(0)
455#define UCT_IFACE_FLAG_EVENT_RECV UCS_BIT(1)
457#define UCT_IFACE_FLAG_EVENT_RECV_SIG UCS_BIT(2)
459 /* Event notification mechanisms */
460#define UCT_IFACE_FLAG_EVENT_FD UCS_BIT(3)
462#define UCT_IFACE_FLAG_EVENT_ASYNC_CB UCS_BIT(4)
483
484
502
503
513 UCT_FLUSH_FLAG_CANCEL = UCS_BIT(0),
528 UCT_FLUSH_FLAG_REMOTE = UCS_BIT(1)
538
539
551
552
558 UCT_SEND_FLAG_SIGNALED = UCS_BIT(0),
564 UCT_SEND_FLAG_PEER_CHECK = UCS_BIT(1)
572
573
581 UCT_CB_FLAG_RESERVED = UCS_BIT(1),
582 UCT_CB_FLAG_ASYNC = UCS_BIT(2)
598
599
616
617
685
698
699
704enum {
708 UCT_MD_FLAG_ALLOC = UCS_BIT(0),
709
713 UCT_MD_FLAG_REG = UCS_BIT(1),
714
719
725
729 UCT_MD_FLAG_ADVISE = UCS_BIT(4),
730
734 UCT_MD_FLAG_FIXED = UCS_BIT(5),
735
743
748
756
762
767
772 UCT_MD_FLAG_LAST = UCS_BIT(11)
774
855
856
868
869
881
882
894
895
913
914
974
975
990
991
1003
1006
1009
1012
1015
1018
1021
1023 UCT_IFACE_FEATURE_LAST = UCS_BIT(7)
1025
1026/*
1027 * @ingroup UCT_RESOURCE
1028 * @brief Process Per Node (PPN) bandwidth specification: f(ppn) = dedicated + shared / ppn
1029 *
1030 * This structure specifies a function which is used as basis for bandwidth
1031 * estimation of various UCT operations. This information can be used to select
1032 * the best performing combination of UCT operations.
1033 */
1034typedef struct uct_ppn_bandwidth {
1035 double dedicated;
1036 double shared;
1038
1039
1045 struct {
1046 struct {
1047 size_t max_short;
1048 size_t max_bcopy;
1049 size_t min_zcopy;
1052 size_t max_zcopy;
1055 size_t opt_zcopy_align;
1057 size_t align_mtu;
1058 size_t max_iov;
1061 } put;
1063 struct {
1064 size_t max_short;
1065 size_t max_bcopy;
1066 size_t min_zcopy;
1069 size_t max_zcopy;
1072 size_t opt_zcopy_align;
1074 size_t align_mtu;
1075 size_t max_iov;
1078 } get;
1080 struct {
1081 size_t max_short;
1083 size_t max_bcopy;
1084 size_t min_zcopy;
1087 size_t max_zcopy;
1090 size_t opt_zcopy_align;
1092 size_t align_mtu;
1093 size_t max_hdr;
1094 size_t max_iov;
1097 } am;
1099 struct {
1100 struct {
1101 size_t min_recv;
1102 size_t max_zcopy;
1104 size_t max_iov;
1107 size_t max_outstanding;
1109 } recv;
1110
1111 struct {
1112 size_t max_short;
1114 size_t max_bcopy;
1116 size_t max_zcopy;
1118 size_t max_iov;
1120 } eager;
1122 struct {
1123 size_t max_zcopy;
1125 size_t max_hdr;
1128 size_t max_iov;
1130 } rndv;
1131 } tag;
1133 struct {
1134 uint64_t op_flags;
1135 uint64_t fop_flags;
1136 } atomic32, atomic64;
1138 uint64_t flags;
1139 uint64_t event_flags;
1148 struct sockaddr_storage listen_sockaddr;
1150 /*
1151 * The following fields define expected performance of the communication
1152 * interface, this would usually be a combination of device and system
1153 * characteristics and determined at run time.
1154 */
1155 double overhead;
1157 ucs_linear_func_t latency;
1159 uint8_t priority;
1170};
1171
1172
1184 uint64_t field_mask;
1186 ucs_cpu_set_t cpu_mask;
1188 uint64_t open_mode;
1190 union {
1197 struct {
1198 const char *tl_name;
1199 const char *dev_name;
1200 } device;
1208 struct {
1209 ucs_sock_addr_t listen_sockaddr;
1211 void *conn_request_arg;
1216 uint32_t cb_flags;
1217 } sockaddr;
1219
1222 ucs_stats_node_t *stats_root;
1225
1233
1241
1248
1249 /* Time period between keepalive rounds */
1251
1260
1278
1283 uint64_t features;
1284};
1285
1286
1424
1425
1436 uint64_t field_mask;
1437
1441 const void *private_data;
1442
1448};
1449
1460 uint64_t field_mask;
1461
1467};
1468
1469
1480 uint64_t field_mask;
1481
1485 struct sockaddr_storage sockaddr;
1486};
1487
1488
1519
1520
1531 struct {
1532 uint64_t max_alloc;
1533 size_t max_reg;
1534 uint64_t flags;
1535 uint64_t reg_mem_types;
1536 uint64_t detect_mem_types;
1537 uint64_t alloc_mem_types;
1538 uint64_t access_mem_types;
1540
1541 ucs_linear_func_t reg_cost;
1545 char component_name[UCT_COMPONENT_NAME_MAX];
1547 ucs_cpu_set_t local_cpus;
1548};
1549
1550
1587
1588
1597typedef struct uct_md_mem_attr {
1602 uint64_t field_mask;
1603
1610
1616 ucs_sys_device_t sys_dev;
1617
1624
1631
1641
1648
1649
1670ucs_status_t uct_md_mem_query(uct_md_h md, const void *address, size_t length,
1671 uct_md_mem_attr_t *mem_attr);
1672
1673
1690
1691
1704
1705
1731
1732
1742 char priv[UCT_PENDING_REQ_PRIV_LEN];
1743};
1744
1745
1761
1781 void (*completed_cb)(uct_tag_context_t *self, uct_tag_t stag, uint64_t imm,
1782 size_t length, void *inline_data, ucs_status_t status);
1783
1796 void (*rndv_cb)(uct_tag_context_t *self, uct_tag_t stag, const void *header,
1797 unsigned header_length, ucs_status_t status, unsigned flags);
1798
1800 char priv[UCT_TAG_PRIV_LEN];
1801};
1802
1803
1808enum {
1809 /* If set, header points to inline data, otherwise it is user buffer. */
1810 UCT_TAG_RECV_CB_INLINE_DATA = UCS_BIT(0)
1812
1813
1814extern const char *uct_alloc_method_names[];
1815extern const char *uct_device_type_names[];
1816
1817
1832 unsigned *num_components_p);
1833
1844
1845
1859 uct_component_attr_t *component_attr);
1860
1861
1881ucs_status_t uct_md_open(uct_component_h component, const char *md_name,
1882 const uct_md_config_t *config, uct_md_h *md_p);
1883
1891
1892
1908 uct_tl_resource_desc_t **resources_p,
1909 unsigned *num_resources_p);
1910
1911
1922
1923
1938ucs_status_t uct_worker_create(ucs_async_context_t *async,
1939 ucs_thread_mode_t thread_mode,
1940 uct_worker_h *worker_p);
1941
1942
1950
1951
1975void uct_worker_progress_register_safe(uct_worker_h worker, ucs_callback_t func,
1976 void *arg, unsigned flags,
1977 uct_worker_cb_id_t *id_p);
1978
1979
2001 uct_worker_cb_id_t *id_p);
2002
2003
2032 const char *env_prefix, const char *filename,
2033 uct_iface_config_t **config_p);
2034
2035
2043void uct_config_release(void *config);
2044
2045
2061ucs_status_t uct_config_get(void *config, const char *name, char *value,
2062 size_t max);
2063
2064
2077ucs_status_t uct_config_modify(void *config, const char *name, const char *value);
2078
2079
2096 const uct_iface_params_t *params,
2097 const uct_iface_config_t *config,
2098 uct_iface_h *iface_p);
2099
2100
2108
2109
2118
2119
2132
2133
2145
2146
2166 const uct_iface_addr_t *iface_addr);
2167
2168
2186ucs_status_t uct_ep_check(const uct_ep_h ep, unsigned flags,
2187 uct_completion_t *comp);
2188
2189
2203
2204
2225
2226
2242ucs_status_t uct_iface_mem_alloc(uct_iface_h iface, size_t length, unsigned flags,
2243 const char *name, uct_allocated_memory_t *mem);
2244
2245
2253
2254
2273 uct_am_callback_t cb, void *arg, uint32_t flags);
2274
2275
2290 void *arg);
2291
2292
2305 uct_conn_request_h conn_request);
2306
2307
2321 uct_conn_request_h conn_request);
2322
2323
2359
2360
2376
2377
2411
2412
2420
2421
2431
2432
2444 const uct_ep_addr_t *ep_addr);
2445
2446
2455
2456
2480
2481
2486typedef struct {
2492 uint64_t field_mask;
2493
2500 unsigned flags;
2501
2512 void *address;
2513
2518
2519 struct {
2524 const uct_md_h *mds;
2525
2531 unsigned count;
2532 } mds;
2533
2540 const char *name;
2542
2543
2562 size_t length, uct_mem_advice_t advice);
2563
2564
2578ucs_status_t uct_md_mem_reg(uct_md_h md, void *address, size_t length,
2579 unsigned flags, uct_mem_h *memh_p);
2580
2581
2590
2591
2605 size_t length,
2606 ucs_memory_type_t *mem_type_p);
2607
2608
2633ucs_status_t uct_mem_alloc(size_t length, const uct_alloc_method_t *methods,
2634 unsigned num_methods,
2635 const uct_mem_alloc_params_t *params,
2637
2638
2649
2665 const char *env_prefix, const char *filename,
2666 uct_md_config_t **config_p);
2667
2668
2691
2692
2705
2706
2726ucs_status_t uct_rkey_unpack(uct_component_h component, const void *rkey_buffer,
2727 uct_rkey_bundle_t *rkey_ob);
2728
2729
2756 uint64_t remote_addr, void **addr_p);
2757
2758
2768 const uct_rkey_bundle_t *rkey_ob);
2769
2770
2785UCT_INLINE_API unsigned uct_worker_progress(uct_worker_h worker)
2786{
2787 return ucs_callbackq_dispatch(&worker->progress_q);
2788}
2789
2790
2819UCT_INLINE_API ucs_status_t uct_iface_flush(uct_iface_h iface, unsigned flags,
2820 uct_completion_t *comp)
2821{
2822 return iface->ops.iface_flush(iface, flags, comp);
2823}
2824
2837UCT_INLINE_API ucs_status_t uct_iface_fence(uct_iface_h iface, unsigned flags)
2838{
2839 return iface->ops.iface_fence(iface, flags);
2840}
2841
2851UCT_INLINE_API void uct_iface_release_desc(void *desc)
2852{
2853 uct_recv_desc_t *release_desc = uct_recv_desc(desc);
2854 release_desc->cb(release_desc, desc);
2855}
2856
2857
2862UCT_INLINE_API ucs_status_t uct_ep_put_short(uct_ep_h ep, const void *buffer, unsigned length,
2863 uint64_t remote_addr, uct_rkey_t rkey)
2864{
2865 return ep->iface->ops.ep_put_short(ep, buffer, length, remote_addr, rkey);
2866}
2867
2868
2873UCT_INLINE_API ssize_t uct_ep_put_bcopy(uct_ep_h ep, uct_pack_callback_t pack_cb,
2874 void *arg, uint64_t remote_addr,
2875 uct_rkey_t rkey)
2876{
2877 return ep->iface->ops.ep_put_bcopy(ep, pack_cb, arg, remote_addr, rkey);
2878}
2879
2880
2911 const uct_iov_t *iov, size_t iovcnt,
2912 uint64_t remote_addr, uct_rkey_t rkey,
2913 uct_completion_t *comp)
2914{
2915 return ep->iface->ops.ep_put_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2916}
2917
2918
2923UCT_INLINE_API ucs_status_t uct_ep_get_short(uct_ep_h ep, void *buffer, unsigned length,
2924 uint64_t remote_addr, uct_rkey_t rkey)
2925{
2926 return ep->iface->ops.ep_get_short(ep, buffer, length, remote_addr, rkey);
2927}
2928
2929
2935 void *arg, size_t length,
2936 uint64_t remote_addr, uct_rkey_t rkey,
2937 uct_completion_t *comp)
2938{
2939 return ep->iface->ops.ep_get_bcopy(ep, unpack_cb, arg, length, remote_addr,
2940 rkey, comp);
2941}
2942
2943
2974 const uct_iov_t *iov, size_t iovcnt,
2975 uint64_t remote_addr, uct_rkey_t rkey,
2976 uct_completion_t *comp)
2977{
2978 return ep->iface->ops.ep_get_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2979}
2980
2981
2986UCT_INLINE_API ucs_status_t uct_ep_am_short(uct_ep_h ep, uint8_t id, uint64_t header,
2987 const void *payload, unsigned length)
2988{
2989 return ep->iface->ops.ep_am_short(ep, id, header, payload, length);
2990}
2991
2992
3023UCT_INLINE_API ucs_status_t uct_ep_am_short_iov(uct_ep_h ep, uint8_t id,
3024 const uct_iov_t *iov, size_t iovcnt)
3025{
3026 return ep->iface->ops.ep_am_short_iov(ep, id, iov, iovcnt);
3027}
3028
3029
3034UCT_INLINE_API ssize_t uct_ep_am_bcopy(uct_ep_h ep, uint8_t id,
3035 uct_pack_callback_t pack_cb, void *arg,
3036 unsigned flags)
3037{
3038 return ep->iface->ops.ep_am_bcopy(ep, id, pack_cb, arg, flags);
3039}
3040
3041
3079UCT_INLINE_API ucs_status_t uct_ep_am_zcopy(uct_ep_h ep, uint8_t id,
3080 const void *header,
3081 unsigned header_length,
3082 const uct_iov_t *iov, size_t iovcnt,
3083 unsigned flags,
3084 uct_completion_t *comp)
3085{
3086 return ep->iface->ops.ep_am_zcopy(ep, id, header, header_length, iov, iovcnt,
3087 flags, comp);
3088}
3089
3094UCT_INLINE_API ucs_status_t uct_ep_atomic_cswap64(uct_ep_h ep, uint64_t compare, uint64_t swap,
3095 uint64_t remote_addr, uct_rkey_t rkey,
3096 uint64_t *result, uct_completion_t *comp)
3097{
3098 return ep->iface->ops.ep_atomic_cswap64(ep, compare, swap, remote_addr, rkey, result, comp);
3099}
3100
3101
3106UCT_INLINE_API ucs_status_t uct_ep_atomic_cswap32(uct_ep_h ep, uint32_t compare, uint32_t swap,
3107 uint64_t remote_addr, uct_rkey_t rkey,
3108 uint32_t *result, uct_completion_t *comp)
3109{
3110 return ep->iface->ops.ep_atomic_cswap32(ep, compare, swap, remote_addr, rkey, result, comp);
3111}
3112
3113
3118UCT_INLINE_API ucs_status_t uct_ep_atomic32_post(uct_ep_h ep, uct_atomic_op_t opcode,
3119 uint32_t value, uint64_t remote_addr,
3120 uct_rkey_t rkey)
3121{
3122 return ep->iface->ops.ep_atomic32_post(ep, opcode, value, remote_addr, rkey);
3123}
3124
3125
3130UCT_INLINE_API ucs_status_t uct_ep_atomic64_post(uct_ep_h ep, uct_atomic_op_t opcode,
3131 uint64_t value, uint64_t remote_addr,
3132 uct_rkey_t rkey)
3133{
3134 return ep->iface->ops.ep_atomic64_post(ep, opcode, value, remote_addr, rkey);
3135}
3136
3137
3142UCT_INLINE_API ucs_status_t uct_ep_atomic32_fetch(uct_ep_h ep, uct_atomic_op_t opcode,
3143 uint32_t value, uint32_t *result,
3144 uint64_t remote_addr, uct_rkey_t rkey,
3145 uct_completion_t *comp)
3146{
3147 return ep->iface->ops.ep_atomic32_fetch(ep, opcode, value, result,
3148 remote_addr, rkey, comp);
3149}
3150
3151
3156UCT_INLINE_API ucs_status_t uct_ep_atomic64_fetch(uct_ep_h ep, uct_atomic_op_t opcode,
3157 uint64_t value, uint64_t *result,
3158 uint64_t remote_addr, uct_rkey_t rkey,
3159 uct_completion_t *comp)
3160{
3161 return ep->iface->ops.ep_atomic64_fetch(ep, opcode, value, result,
3162 remote_addr, rkey, comp);
3163}
3164
3165
3187 uct_pending_req_t *req,
3188 unsigned flags)
3189{
3190 return ep->iface->ops.ep_pending_add(ep, req, flags);
3191}
3192
3193
3205UCT_INLINE_API void uct_ep_pending_purge(uct_ep_h ep,
3207 void *arg)
3208{
3209 ep->iface->ops.ep_pending_purge(ep, cb, arg);
3210}
3211
3212
3241UCT_INLINE_API ucs_status_t uct_ep_flush(uct_ep_h ep, unsigned flags,
3242 uct_completion_t *comp)
3243{
3244 return ep->iface->ops.ep_flush(ep, flags, comp);
3245}
3246
3247
3260UCT_INLINE_API ucs_status_t uct_ep_fence(uct_ep_h ep, unsigned flags)
3261{
3262 return ep->iface->ops.ep_fence(ep, flags);
3263}
3264
3265
3289 const void *data, size_t length)
3290{
3291 return ep->iface->ops.ep_tag_eager_short(ep, tag, data, length);
3292}
3293
3294
3318UCT_INLINE_API ssize_t uct_ep_tag_eager_bcopy(uct_ep_h ep, uct_tag_t tag,
3319 uint64_t imm,
3320 uct_pack_callback_t pack_cb,
3321 void *arg, unsigned flags)
3322{
3323 return ep->iface->ops.ep_tag_eager_bcopy(ep, tag, imm, pack_cb, arg, flags);
3324}
3325
3326
3365 uint64_t imm,
3366 const uct_iov_t *iov,
3367 size_t iovcnt,
3368 unsigned flags,
3369 uct_completion_t *comp)
3370{
3371 return ep->iface->ops.ep_tag_eager_zcopy(ep, tag, imm, iov, iovcnt, flags,
3372 comp);
3373}
3374
3375
3413 const void *header,
3414 unsigned header_length,
3415 const uct_iov_t *iov,
3416 size_t iovcnt,
3417 unsigned flags,
3418 uct_completion_t *comp)
3419{
3420 return ep->iface->ops.ep_tag_rndv_zcopy(ep, tag, header, header_length,
3421 iov, iovcnt, flags, comp);
3422}
3423
3424
3444{
3445 return ep->iface->ops.ep_tag_rndv_cancel(ep, op);
3446}
3447
3448
3469 const void* header,
3470 unsigned header_length,
3471 unsigned flags)
3472{
3473 return ep->iface->ops.ep_tag_rndv_request(ep, tag, header, header_length,
3474 flags);
3475}
3476
3477
3509 uct_tag_t tag,
3510 uct_tag_t tag_mask,
3511 const uct_iov_t *iov,
3512 size_t iovcnt,
3513 uct_tag_context_t *ctx)
3514{
3515 return iface->ops.iface_tag_recv_zcopy(iface, tag, tag_mask, iov, iovcnt, ctx);
3516}
3517
3518
3542 uct_tag_context_t *ctx,
3543 int force)
3544{
3545 return iface->ops.iface_tag_recv_cancel(iface, ctx, force);
3546}
3547
3548
3567UCT_INLINE_API void uct_iface_progress_enable(uct_iface_h iface, unsigned flags)
3568{
3569 iface->ops.iface_progress_enable(iface, flags);
3570}
3571
3572
3592UCT_INLINE_API void uct_iface_progress_disable(uct_iface_h iface, unsigned flags)
3593{
3594 iface->ops.iface_progress_disable(iface, flags);
3595}
3596
3597
3602UCT_INLINE_API unsigned uct_iface_progress(uct_iface_h iface)
3603{
3604 return iface->ops.iface_progress(iface);
3605}
3606
3607
3631 const uct_cm_config_t *config, uct_cm_h *cm_p);
3632
3633
3641
3642
3654
3655
3673 const char *env_prefix, const char *filename,
3674 uct_cm_config_t **config_p);
3675
3676
3690
3691
3710ucs_status_t uct_listener_create(uct_cm_h cm, const struct sockaddr *saddr,
3711 socklen_t socklen,
3712 const uct_listener_params_t *params,
3713 uct_listener_h *listener_p);
3714
3715
3723
3724
3741 uct_conn_request_h conn_request);
3742
3743
3757 uct_listener_attr_t *listener_attr);
3758
3759
3767static UCS_F_ALWAYS_INLINE
3769{
3770 if (ucs_unlikely(status != UCS_OK) && (comp->status == UCS_OK)) {
3771 /* store first failure status */
3772 comp->status = status;
3773 }
3774}
3775
3776
3782END_C_DECLS
3783
3784#endif
enum ucs_memory_type ucs_memory_type_t
Memory types.
ucs_thread_mode_t
Thread sharing mode.
Definition thread_mode.h:19
unsigned long ucs_time_t
Definition time_def.h:23
ucs_status_t
Status codes.
Definition status.h:45
void * ucs_status_ptr_t
Status pointer.
Definition status.h:106
@ UCS_OK
Definition status.h:47
Definition types.h:137
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:2986
uct_msg_flags
Flags for active message send operation.
Definition uct.h:557
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:3023
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.
void uct_iface_release_desc(void *desc)
Release AM descriptor.
Definition uct.h:2851
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
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:3034
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:3079
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.
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_SEND_FLAG_PEER_CHECK
Definition uct.h:564
@ UCT_SEND_FLAG_SIGNALED
Definition uct.h:558
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:3130
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:3142
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:3118
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:3094
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:3106
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:3156
uint64_t field_mask
Definition uct.h:1500
int backlog
Definition uct.h:1507
uint64_t field_mask
Definition uct.h:1436
uint64_t field_mask
Definition uct.h:1460
size_t private_data_length
Definition uct.h:1447
uct_cm_listener_conn_request_callback_t conn_request_cb
Definition uct.h:1512
void * user_data
Definition uct.h:1517
struct sockaddr_storage sockaddr
Definition uct.h:1485
uint64_t field_mask
Definition uct.h:1480
size_t max_conn_priv
Definition uct.h:1466
const void * private_data
Definition uct.h:1441
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
uct_cm_attr_field
UCT connection manager attributes field mask.
Definition uct.h:877
void uct_cm_close(uct_cm_h cm)
Close a connection manager.
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...
ucs_status_t uct_cm_client_ep_conn_notify(uct_ep_h ep)
Notify the server about client-side connection establishment.
ucs_status_t uct_cm_query(uct_cm_h cm, uct_cm_attr_t *cm_attr)
Get connection manager attributes.
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
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
void uct_listener_destroy(uct_listener_h listener)
Destroy a transport listener.
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_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.
uct_ep_connect_params_field
UCT endpoint connected by uct_ep_connect parameters field mask.
Definition uct.h:983
ucs_status_t uct_listener_reject(uct_listener_h listener, uct_conn_request_h conn_request)
Reject a connection request.
ucs_status_t uct_iface_accept(uct_iface_h iface, uct_conn_request_h conn_request)
Accept connection request.
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
uct_listener_attr_field
UCT listener attributes field mask.
Definition uct.h:890
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_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.
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_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.
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_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_listener_params_field
UCT listener created by uct_listener_create parameters field mask.
Definition uct.h:903
@ UCT_CM_ATTR_FIELD_MAX_CONN_PRIV
Definition uct.h:879
@ UCT_EP_CONNECT_PARAM_FIELD_PRIVATE_DATA
Definition uct.h:985
@ UCT_EP_CONNECT_PARAM_FIELD_PRIVATE_DATA_LENGTH
Definition uct.h:988
@ UCT_LISTENER_ATTR_FIELD_SOCKADDR
Definition uct.h:892
@ UCT_LISTENER_PARAM_FIELD_CONN_REQUEST_CB
Definition uct.h:908
@ UCT_LISTENER_PARAM_FIELD_BACKLOG
Definition uct.h:905
@ UCT_LISTENER_PARAM_FIELD_USER_DATA
Definition uct.h:911
Connection manager attributes, capabilities and limitations.
Definition uct.h:1454
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
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...
uct_alloc_method_t
Memory allocation methods.
Definition uct.h:473
void uct_worker_destroy(uct_worker_h worker)
Destroy a worker object.
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.
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.
unsigned uct_worker_progress(uct_worker_h worker)
Explicit progress for UCT worker.
Definition uct.h:2785
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_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_ALLOC_METHOD_MD
Definition uct.h:476
@ UCT_ALLOC_METHOD_LAST
Definition uct.h:480
@ UCT_ALLOC_METHOD_MMAP
Definition uct.h:478
@ UCT_ALLOC_METHOD_HEAP
Definition uct.h:477
@ UCT_ALLOC_METHOD_HUGE
Definition uct.h:479
@ UCT_ALLOC_METHOD_THP
Definition uct.h:474
@ UCT_ALLOC_METHOD_DEFAULT
Definition uct.h:481
void * base_address
Definition uct.h:1623
char component_name[UCT_COMPONENT_NAME_MAX]
Definition uct.h:1545
uct_mem_h memh
Definition uct.h:1688
void * address
Definition uct.h:2512
uct_rkey_t rkey
Definition uct.h:1700
unsigned flags
Definition uct.h:2500
int dmabuf_fd
Definition uct.h:1640
uint64_t field_mask
Definition uct.h:1602
size_t rkey_packed_size
Definition uct.h:1546
ucs_memory_type_t mem_type
Definition uct.h:1609
ucs_linear_func_t reg_cost
Definition uct.h:1541
size_t dmabuf_offset
Definition uct.h:1646
ucs_sys_device_t sys_dev
Definition uct.h:1616
ucs_cpu_set_t local_cpus
Definition uct.h:1547
uint64_t field_mask
Definition uct.h:2492
void * handle
Definition uct.h:1701
void * address
Definition uct.h:1683
uct_alloc_method_t method
Definition uct.h:1685
ucs_memory_type_t mem_type
Definition uct.h:2517
const char * name
Definition uct.h:2540
ucs_memory_type_t mem_type
Definition uct.h:1686
size_t length
Definition uct.h:1684
void * type
Definition uct.h:1702
size_t alloc_length
Definition uct.h:1630
struct uct_md_attr::@19 cap
uct_md_h md
Definition uct.h:1687
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.
ucs_status_t uct_rkey_unpack(uct_component_h component, const void *rkey_buffer, uct_rkey_bundle_t *rkey_ob)
Unpack a remote key.
uct_mem_alloc_params_field_t
UCT allocation parameters specification field mask.
Definition uct.h:2464
struct uct_allocated_memory uct_allocated_memory_t
Describes a memory allocated by UCT.
uct_md_mem_flags
Memory allocation/registration flags.
Definition uct.h:779
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.
ucs_status_t uct_mem_free(const uct_allocated_memory_t *mem)
Release allocated memory.
uct_mem_advice_t
list of UCT memory use advice
Definition uct.h:861
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_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.
enum uct_md_mem_attr_field uct_md_mem_attr_field_t
UCT MD memory attributes field mask.
ucs_status_t uct_md_mkey_pack(uct_md_h md, uct_mem_h memh, void *rkey_buffer)
Pack a remote key.
struct uct_md_mem_attr uct_md_mem_attr_t
Memory domain attributes.
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.
uct_md_mem_attr_field
UCT MD memory attributes field mask.
Definition uct.h:1558
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.
uct_sockaddr_accessibility_t
Socket address accessibility type.
Definition uct.h:690
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.
struct uct_rkey_bundle uct_rkey_bundle_t
Remote key with its type.
ucs_status_t uct_md_query(uct_md_h md, uct_md_attr_t *md_attr)
Query for memory domain attributes.
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_md_mem_dereg(uct_md_h md, uct_mem_h memh)
Undo the operation of uct_md_mem_reg().
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.
@ UCT_MEM_ALLOC_PARAM_FIELD_MEM_TYPE
Definition uct.h:2472
@ UCT_MEM_ALLOC_PARAM_FIELD_MDS
Definition uct.h:2475
@ UCT_MEM_ALLOC_PARAM_FIELD_NAME
Definition uct.h:2478
@ UCT_MEM_ALLOC_PARAM_FIELD_ADDRESS
Definition uct.h:2469
@ UCT_MEM_ALLOC_PARAM_FIELD_FLAGS
Definition uct.h:2466
@ UCT_MD_MEM_ACCESS_REMOTE_PUT
Definition uct.h:807
@ UCT_MD_MEM_FLAG_NONBLOCK
Definition uct.h:784
@ UCT_MD_MEM_FLAG_LOCK
Definition uct.h:795
@ UCT_MD_MEM_SYMMETRIC_RKEY
Definition uct.h:836
@ UCT_MD_MEM_ACCESS_LOCAL_WRITE
Definition uct.h:827
@ UCT_MD_MEM_ACCESS_REMOTE_ATOMIC
Definition uct.h:817
@ UCT_MD_MEM_ACCESS_REMOTE_GET
Definition uct.h:812
@ UCT_MD_MEM_ACCESS_RMA
Definition uct.h:850
@ UCT_MD_MEM_ACCESS_ALL
Definition uct.h:841
@ UCT_MD_MEM_FLAG_FIXED
Definition uct.h:789
@ UCT_MD_MEM_FLAG_HIDE_ERRORS
Definition uct.h:801
@ UCT_MD_MEM_ACCESS_LOCAL_READ
Definition uct.h:822
@ UCT_MD_FLAG_SOCKADDR
Definition uct.h:747
@ UCT_MD_FLAG_INVALIDATE
Definition uct.h:755
@ UCT_MD_FLAG_ADVISE
Definition uct.h:729
@ UCT_MD_FLAG_REG_DMABUF
Definition uct.h:766
@ UCT_MD_FLAG_EXPORTED_MKEY
Definition uct.h:761
@ UCT_MD_FLAG_NEED_MEMH
Definition uct.h:718
@ UCT_MD_FLAG_RKEY_PTR
Definition uct.h:742
@ UCT_MD_FLAG_REG
Definition uct.h:713
@ UCT_MD_FLAG_LAST
Definition uct.h:772
@ UCT_MD_FLAG_ALLOC
Definition uct.h:708
@ UCT_MD_FLAG_FIXED
Definition uct.h:734
@ UCT_MD_FLAG_NEED_RKEY
Definition uct.h:724
@ UCT_MADV_NORMAL
Definition uct.h:862
@ UCT_MADV_WILLNEED
Definition uct.h:863
@ UCT_MD_MEM_ATTR_FIELD_DMABUF_FD
Definition uct.h:1579
@ UCT_MD_MEM_ATTR_FIELD_BASE_ADDRESS
Definition uct.h:1569
@ UCT_MD_MEM_ATTR_FIELD_SYS_DEV
Definition uct.h:1566
@ UCT_MD_MEM_ATTR_FIELD_DMABUF_OFFSET
Definition uct.h:1585
@ UCT_MD_MEM_ATTR_FIELD_ALLOC_LENGTH
Definition uct.h:1572
@ UCT_MD_MEM_ATTR_FIELD_MEM_TYPE
Definition uct.h:1560
@ UCT_SOCKADDR_ACC_LOCAL
Definition uct.h:691
@ UCT_SOCKADDR_ACC_REMOTE
Definition uct.h:694
Describes a memory allocated by UCT.
Definition uct.h:1682
Memory domain attributes.
Definition uct.h:1530
Memory domain attributes.
Definition uct.h:1597
Parameters for allocating memory using uct_mem_alloc.
Definition uct.h:2486
Remote key with its type.
Definition uct.h:1699
uint32_t err_handler_flags
Definition uct.h:1232
void * user_data
Definition uct.h:1308
size_t am_align_offset
Definition uct.h:1277
uint32_t sockaddr_cb_flags
Definition uct.h:1341
size_t device_addr_len
Definition uct.h:1142
char dev_name[UCT_DEVICE_NAME_MAX]
Definition uct.h:330
ucs_sys_device_t sys_device
Definition uct.h:333
uct_iface_h iface
Definition uct.h:1303
const uct_device_addr_t * dev_addr
Definition uct.h:1315
size_t private_data_length
Definition uct.h:1414
uct_completion_callback_t func
Definition uct.h:1725
char priv[UCT_PENDING_REQ_PRIV_LEN]
Definition uct.h:1742
uct_cm_ep_client_connect_callback_t sockaddr_cb_client
Definition uct.h:1374
struct sockaddr_storage listen_sockaddr
Definition uct.h:1148
uct_tag_unexp_eager_cb_t eager_cb
Definition uct.h:1237
const ucs_sock_addr_t * sockaddr
Definition uct.h:1331
char md_name[UCT_MD_NAME_MAX]
Definition uct.h:219
const void * private_data
Definition uct.h:1408
unsigned md_resource_count
Definition uct.h:258
char name[UCT_COMPONENT_NAME_MAX]
Definition uct.h:255
size_t max_conn_priv
Definition uct.h:1145
size_t am_alignment
Definition uct.h:1259
uct_pending_callback_t func
Definition uct.h:1741
void * async_event_arg
Definition uct.h:1242
uct_ppn_bandwidth_t bandwidth
Definition uct.h:1156
struct uct_iface_attr::@7 cap
ucs_stats_node_t * stats_root
Definition uct.h:1222
ucs_cpu_set_t cpu_mask
Definition uct.h:1186
size_t ep_addr_len
Definition uct.h:1144
uct_md_resource_desc_t * md_resources
Definition uct.h:273
void * eager_arg
Definition uct.h:1235
uct_cm_ep_priv_data_pack_callback_t sockaddr_pack_cb
Definition uct.h:1353
uint64_t open_mode
Definition uct.h:1188
uct_device_type_t dev_type
Definition uct.h:331
uct_cm_ep_resolve_callback_t cm_resolve_cb
Definition uct.h:1400
uint64_t features
Definition uct.h:1283
uint8_t priority
Definition uct.h:1159
char tl_name[UCT_TL_NAME_MAX]
Definition uct.h:329
uint64_t field_mask
Definition uct.h:1297
uint64_t field_mask
Definition uct.h:1184
uct_cm_ep_server_conn_notify_callback_t sockaddr_cb_server
Definition uct.h:1380
ucs_status_t status
Definition uct.h:1727
uct_cm_h cm
Definition uct.h:1359
union uct_iface_params::@16 mode
uct_async_event_cb_t async_event_cb
Definition uct.h:1247
double overhead
Definition uct.h:1155
void * err_handler_arg
Definition uct.h:1227
uct_ep_disconnect_cb_t disconnect_cb
Definition uct.h:1385
int count
Definition uct.h:1726
unsigned dev_num_paths
Definition uct.h:1161
const ucs_sock_addr_t * local_sockaddr
Definition uct.h:1422
ucs_linear_func_t latency
Definition uct.h:1157
uint64_t flags
Definition uct.h:278
uct_conn_request_h conn_request
Definition uct.h:1368
uint64_t field_mask
Definition uct.h:252
size_t iface_addr_len
Definition uct.h:1143
const uct_iface_addr_t * iface_addr
Definition uct.h:1322
size_t rx_headroom
Definition uct.h:1224
uct_tag_unexp_rndv_cb_t rndv_cb
Definition uct.h:1240
unsigned path_index
Definition uct.h:1391
size_t max_num_eps
Definition uct.h:1160
ucs_time_t keepalive_interval
Definition uct.h:1250
void * rndv_arg
Definition uct.h:1238
uct_error_handler_t err_handler
Definition uct.h:1229
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.
uct_iface_feature
UCT interface configuration features.
Definition uct.h:1000
struct uct_component_attr uct_component_attr_t
UCT component attributes.
ucs_status_t uct_ep_create(const uct_ep_params_t *params, uct_ep_h *ep_p)
Create new endpoint.
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:3205
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_iface_mem_free(const uct_allocated_memory_t *mem)
Release memory allocated with uct_iface_mem_alloc().
void uct_release_tl_resource_list(uct_tl_resource_desc_t *resources)
Release the list of resources returned from uct_md_query_tl_resources.
ucs_status_t uct_ep_get_address(uct_ep_h ep, uct_ep_addr_t *addr)
Get endpoint address.
uct_component_attr_field
UCT component attributes field mask.
Definition uct.h:230
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:3241
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
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:3260
void(* uct_pending_purge_callback_t)(uct_pending_req_t *self, void *arg)
Callback to purge pending requests.
Definition uct_def.h:586
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.
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:3186
ucs_status_t uct_component_query(uct_component_h component, uct_component_attr_t *component_attr)
Get component attributes.
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
unsigned uct_iface_progress(uct_iface_h iface)
Perform a progress on an interface.
Definition uct.h:3602
void(* uct_unpack_callback_t)(void *arg, const void *data, size_t length)
Callback for consuming data.
Definition uct_def.h:611
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.
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.
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:2819
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:3768
uct_progress_types
UCT progress types.
Definition uct.h:544
void * uct_conn_request_h
Definition uct_def.h:112
void uct_iface_close(uct_iface_h iface)
Close and destroy an interface.
size_t(* uct_pack_callback_t)(void *dest, void *arg)
Callback for producing data.
Definition uct_def.h:598
void uct_iface_progress_disable(uct_iface_h iface, unsigned flags)
Disable synchronous progress for the interface.
Definition uct.h:3592
ucs_status_t uct_iface_get_address(uct_iface_h iface, uct_iface_addr_t *addr)
Get interface address.
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_flush_flags
Flush modifiers.
Definition uct.h:508
uct_iface_params_field
UCT interface created by uct_iface_open parameters field mask.
Definition uct.h:625
uct_iface_open_mode
Mode in which to open the interface.
Definition uct.h:604
uct_ep_params_field
UCT endpoint created by uct_ep_create parameters field mask.
Definition uct.h:922
void uct_config_release(void *config)
Release configuration memory returned from uct_md_iface_config_read(), uct_md_config_read(),...
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
void uct_iface_progress_enable(uct_iface_h iface, unsigned flags)
Enable synchronous progress for the interface.
Definition uct.h:3567
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_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:2837
struct uct_tl_resource_desc uct_tl_resource_desc_t
Communication resource descriptor.
struct uct_iface * uct_iface_h
Definition uct_def.h:79
uct_cm_t * uct_cm_h
Definition uct_def.h:105
struct uct_md_config uct_md_config_t
Definition uct_def.h:81
ucs_status_t uct_query_components(uct_component_h **components_p, unsigned *num_components_p)
Query for list of components.
ucs_status_t uct_iface_query(uct_iface_h iface, uct_iface_attr_t *iface_attr)
Get interface attributes.
void uct_ep_destroy(uct_ep_h ep)
Destroy an endpoint.
struct uct_device_addr uct_device_addr_t
Definition uct_def.h:98
void uct_md_close(uct_md_h md)
Close a memory domain.
uct_cb_flags
Callback flags.
Definition uct.h:580
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_pending_callback_t)(uct_pending_req_t *self)
Callback to process pending requests.
Definition uct_def.h:553
void uct_release_component_list(uct_component_h *components)
Release the list of components returned from uct_query_components.
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.
uct_device_type_t
List of UCX device types.
Definition uct.h:308
ucs_status_t uct_iface_event_fd_get(uct_iface_h iface, int *fd_p)
Obtain a notification file descriptor for polling.
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.
struct uct_ep * uct_ep_h
Definition uct_def.h:83
uct_iface_event_types
Asynchronous event types.
Definition uct.h:496
struct uct_md_resource_desc uct_md_resource_desc_t
Memory domain resource descriptor.
ucs_status_t uct_iface_event_arm(uct_iface_h iface, unsigned events)
Turn on event notification for the next event.
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_IFACE_FEATURE_AMO32
Definition uct.h:1011
@ UCT_IFACE_FEATURE_TAG
Definition uct.h:1017
@ UCT_IFACE_FEATURE_AM
Definition uct.h:1002
@ UCT_IFACE_FEATURE_PUT
Definition uct.h:1005
@ UCT_IFACE_FEATURE_LAST
Definition uct.h:1023
@ UCT_IFACE_FEATURE_FLUSH_REMOTE
Definition uct.h:1020
@ UCT_IFACE_FEATURE_GET
Definition uct.h:1008
@ UCT_IFACE_FEATURE_AMO64
Definition uct.h:1014
@ UCT_COMPONENT_ATTR_FIELD_MD_RESOURCE_COUNT
Definition uct.h:232
@ UCT_COMPONENT_ATTR_FIELD_NAME
Definition uct.h:231
@ UCT_COMPONENT_ATTR_FIELD_MD_RESOURCES
Definition uct.h:233
@ UCT_COMPONENT_ATTR_FIELD_FLAGS
Definition uct.h:234
@ UCT_PROGRESS_RECV
Definition uct.h:546
@ UCT_PROGRESS_SEND
Definition uct.h:545
@ UCT_PROGRESS_THREAD_SAFE
Definition uct.h:547
@ UCT_TAG_RECV_CB_INLINE_DATA
Definition uct.h:1810
@ UCT_FLUSH_FLAG_REMOTE
Definition uct.h:528
@ UCT_FLUSH_FLAG_CANCEL
Definition uct.h:513
@ UCT_FLUSH_FLAG_LOCAL
Definition uct.h:509
@ UCT_IFACE_PARAM_FIELD_DEVICE
Definition uct.h:634
@ UCT_IFACE_PARAM_FIELD_AM_ALIGN_OFFSET
Definition uct.h:680
@ UCT_IFACE_PARAM_FIELD_HW_TM_RNDV_CB
Definition uct.h:665
@ UCT_IFACE_PARAM_FIELD_ERR_HANDLER_FLAGS
Definition uct.h:653
@ UCT_IFACE_PARAM_FIELD_KEEPALIVE_INTERVAL
Definition uct.h:674
@ UCT_IFACE_PARAM_FIELD_OPEN_MODE
Definition uct.h:630
@ UCT_IFACE_PARAM_FIELD_ERR_HANDLER
Definition uct.h:650
@ UCT_IFACE_PARAM_FIELD_HW_TM_RNDV_ARG
Definition uct.h:662
@ UCT_IFACE_PARAM_FIELD_STATS_ROOT
Definition uct.h:641
@ UCT_IFACE_PARAM_FIELD_CPU_MASK
Definition uct.h:627
@ UCT_IFACE_PARAM_FIELD_ASYNC_EVENT_CB
Definition uct.h:671
@ UCT_IFACE_PARAM_FIELD_ASYNC_EVENT_ARG
Definition uct.h:668
@ UCT_IFACE_PARAM_FIELD_AM_ALIGNMENT
Definition uct.h:677
@ UCT_IFACE_PARAM_FIELD_HW_TM_EAGER_CB
Definition uct.h:659
@ UCT_IFACE_PARAM_FIELD_RX_HEADROOM
Definition uct.h:644
@ UCT_IFACE_PARAM_FIELD_ERR_HANDLER_ARG
Definition uct.h:647
@ UCT_IFACE_PARAM_FIELD_HW_TM_EAGER_ARG
Definition uct.h:656
@ UCT_IFACE_PARAM_FIELD_FEATURES
Definition uct.h:683
@ UCT_IFACE_PARAM_FIELD_SOCKADDR
Definition uct.h:638
@ UCT_IFACE_OPEN_MODE_DEVICE
Definition uct.h:606
@ UCT_IFACE_OPEN_MODE_SOCKADDR_SERVER
Definition uct.h:610
@ UCT_IFACE_OPEN_MODE_SOCKADDR_CLIENT
Definition uct.h:614
@ UCT_EP_PARAM_FIELD_IFACE
Definition uct.h:924
@ UCT_EP_PARAM_FIELD_SOCKADDR_DISCONNECT_CB
Definition uct.h:957
@ UCT_EP_PARAM_FIELD_DEV_ADDR
Definition uct.h:930
@ UCT_EP_PARAM_FIELD_CONN_REQUEST
Definition uct.h:948
@ UCT_EP_PARAM_FIELD_PRIV_DATA
Definition uct.h:966
@ UCT_EP_PARAM_FIELD_SOCKADDR_PACK_CB
Definition uct.h:942
@ UCT_EP_PARAM_FIELD_SOCKADDR_CB_FLAGS
Definition uct.h:939
@ UCT_EP_PARAM_FIELD_CM
Definition uct.h:945
@ UCT_EP_PARAM_FIELD_CM_RESOLVE_CB
Definition uct.h:963
@ UCT_EP_PARAM_FIELD_USER_DATA
Definition uct.h:927
@ UCT_EP_PARAM_FIELD_PRIV_DATA_LENGTH
Definition uct.h:969
@ UCT_EP_PARAM_FIELD_SOCKADDR_CONNECT_CB_CLIENT
Definition uct.h:951
@ UCT_EP_PARAM_FIELD_SOCKADDR_NOTIFY_CB_SERVER
Definition uct.h:954
@ UCT_EP_PARAM_FIELD_SOCKADDR
Definition uct.h:936
@ UCT_EP_PARAM_FIELD_IFACE_ADDR
Definition uct.h:933
@ UCT_EP_PARAM_FIELD_PATH_INDEX
Definition uct.h:960
@ UCT_EP_PARAM_FIELD_LOCAL_SOCKADDR
Definition uct.h:972
@ UCT_CB_FLAG_ASYNC
Definition uct.h:582
@ UCT_CB_FLAG_RESERVED
Definition uct.h:581
@ UCT_COMPONENT_FLAG_RKEY_PTR
Definition uct.h:300
@ UCT_COMPONENT_FLAG_CM
Definition uct.h:294
@ UCT_DEVICE_TYPE_SHM
Definition uct.h:310
@ UCT_DEVICE_TYPE_ACC
Definition uct.h:311
@ UCT_DEVICE_TYPE_NET
Definition uct.h:309
@ UCT_DEVICE_TYPE_SELF
Definition uct.h:312
@ UCT_DEVICE_TYPE_LAST
Definition uct.h:313
@ UCT_EVENT_RECV
Definition uct.h:498
@ UCT_EVENT_RECV_SIG
Definition uct.h:499
@ UCT_EVENT_SEND_COMP
Definition uct.h:497
Completion handle.
Definition uct.h:1724
UCT component attributes.
Definition uct.h:245
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
Memory domain resource descriptor.
Definition uct.h:218
Pending request.
Definition uct.h:1740
Communication resource descriptor.
Definition uct.h:328
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:2862
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:2973
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:2934
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:2873
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:2923
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:2910
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:3318
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:3468
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_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:3288
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_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:3412
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:3364
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:3508
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:3541
ucs_status_t uct_ep_tag_rndv_cancel(uct_ep_h ep, void *op)
Cancel outstanding rendezvous operation.
Definition uct.h:3443
double dedicated
Definition uct.h:1035
double shared
Definition uct.h:1036
Definition uct.h:1034
Posted tag context.
Definition uct.h:1753
char priv[UCT_TAG_PRIV_LEN]
Definition uct.h:1800
void(* rndv_cb)(uct_tag_context_t *self, uct_tag_t stag, const void *header, unsigned header_length, ucs_status_t status, unsigned flags)
Definition uct.h:1796
void(* tag_consumed_cb)(uct_tag_context_t *self)
Definition uct.h:1760
void(* completed_cb)(uct_tag_context_t *self, uct_tag_t stag, uint64_t imm, size_t length, void *inline_data, ucs_status_t status)
Definition uct.h:1781