UCX  1.15
Unified Communication X
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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/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>
26 
27 #include <sys/socket.h>
28 #include <stdio.h>
29 #include <sched.h>
30 
31 BEGIN_C_DECLS
32 
217 typedef struct uct_md_resource_desc {
218  char md_name[UCT_MD_NAME_MAX];
220 
221 
234 };
235 
236 
244 typedef struct uct_component_attr {
251  uint64_t field_mask;
252 
254  char name[UCT_COMPONENT_NAME_MAX];
255 
258 
273 
277  uint64_t flags;
279 
280 
288 enum {
293  UCT_COMPONENT_FLAG_CM = UCS_BIT(0),
294 
300 };
301 
302 
307 typedef enum {
314 
315 
327 typedef struct uct_tl_resource_desc {
328  char tl_name[UCT_TL_NAME_MAX];
329  char dev_name[UCT_DEVICE_NAME_MAX];
332  ucs_sys_device_t sys_device;
335 
336 #define UCT_TL_RESOURCE_DESC_FMT "%s/%s"
337 #define UCT_TL_RESOURCE_DESC_ARG(_resource) (_resource)->tl_name, (_resource)->dev_name
338 
339 
347 typedef enum uct_atomic_op {
348  UCT_ATOMIC_OP_ADD,
349  UCT_ATOMIC_OP_AND,
350  UCT_ATOMIC_OP_OR,
351  UCT_ATOMIC_OP_XOR,
352  UCT_ATOMIC_OP_SWAP,
353  UCT_ATOMIC_OP_CSWAP,
354  UCT_ATOMIC_OP_LAST
355 } uct_atomic_op_t;
356 
357 
368  /* Active message capabilities */
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)
375  /* PUT capabilities */
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)
380  /* GET capabilities */
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)
385  /* Atomic operations domain */
386 #define UCT_IFACE_FLAG_ATOMIC_CPU UCS_BIT(30)
388 #define UCT_IFACE_FLAG_ATOMIC_DEVICE UCS_BIT(31)
392  /* Error handling capabilities */
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)
403  /* Connection establishment */
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)
408  /* Special transport flags */
409 #define UCT_IFACE_FLAG_AM_DUP UCS_BIT(43)
413  /* Callback invocation */
414 #define UCT_IFACE_FLAG_CB_SYNC UCS_BIT(44)
417 #define UCT_IFACE_FLAG_CB_ASYNC UCS_BIT(45)
424  /* Keepalive */
425 #define UCT_IFACE_FLAG_EP_KEEPALIVE UCS_BIT(46)
431  /* Tag matching operations */
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)
451  /* Event types */
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)
458  /* Event notification mechanisms */
459 #define UCT_IFACE_FLAG_EVENT_FD UCS_BIT(3)
461 #define UCT_IFACE_FLAG_EVENT_ASYNC_CB UCS_BIT(4)
472 typedef enum {
482 
483 
496  UCT_EVENT_SEND_COMP = UCS_BIT(0),
497  UCT_EVENT_RECV = UCS_BIT(1),
498  UCT_EVENT_RECV_SIG = UCS_BIT(2)
500 };
502 
507 enum uct_flush_flags {
512  UCT_FLUSH_FLAG_CANCEL = UCS_BIT(0),
527  UCT_FLUSH_FLAG_REMOTE = UCS_BIT(1)
536 };
537 
538 
543 enum uct_progress_types {
544  UCT_PROGRESS_SEND = UCS_BIT(0),
545  UCT_PROGRESS_RECV = UCS_BIT(1),
546  UCT_PROGRESS_THREAD_SAFE = UCS_BIT(7)
549 };
550 
551 
556 enum uct_msg_flags {
557  UCT_SEND_FLAG_SIGNALED = UCS_BIT(0),
563  UCT_SEND_FLAG_PEER_CHECK = UCS_BIT(1)
570 };
571 
572 
579 enum uct_cb_flags {
580  UCT_CB_FLAG_RESERVED = UCS_BIT(1),
581  UCT_CB_FLAG_ASYNC = UCS_BIT(2)
596 };
597 
598 
603 enum uct_iface_open_mode {
605  UCT_IFACE_OPEN_MODE_DEVICE = UCS_BIT(0),
606 
610 
614 };
615 
616 
627 
629  UCT_IFACE_PARAM_FIELD_OPEN_MODE = UCS_BIT(1),
633  UCT_IFACE_PARAM_FIELD_DEVICE = UCS_BIT(2),
637  UCT_IFACE_PARAM_FIELD_SOCKADDR = UCS_BIT(3),
638 
641 
644 
653 
656 
659 
662 
665 
668 
671 
674 
677 
680 
683 };
684 
689 typedef enum {
698 
703 enum {
707  UCT_MD_FLAG_ALLOC = UCS_BIT(0),
708 
712  UCT_MD_FLAG_REG = UCS_BIT(1),
713 
717  UCT_MD_FLAG_NEED_MEMH = UCS_BIT(2),
718 
723  UCT_MD_FLAG_NEED_RKEY = UCS_BIT(3),
724 
728  UCT_MD_FLAG_ADVISE = UCS_BIT(4),
729 
733  UCT_MD_FLAG_FIXED = UCS_BIT(5),
734 
741  UCT_MD_FLAG_RKEY_PTR = UCS_BIT(6),
742 
746  UCT_MD_FLAG_SOCKADDR = UCS_BIT(7),
747 
755 
760  UCT_MD_FLAG_EXPORTED_MKEY = UCS_BIT(9),
761 
765  UCT_MD_FLAG_REG_DMABUF = UCS_BIT(10),
766 
771  UCT_MD_FLAG_LAST = UCS_BIT(11)
772 };
773 
778 enum uct_md_mem_flags {
783  UCT_MD_MEM_FLAG_NONBLOCK = UCS_BIT(0),
784 
788  UCT_MD_MEM_FLAG_FIXED = UCS_BIT(1),
789 
794  UCT_MD_MEM_FLAG_LOCK = UCS_BIT(2),
795 
800  UCT_MD_MEM_FLAG_HIDE_ERRORS = UCS_BIT(3),
801 
802  /* Memory access flags */
806  UCT_MD_MEM_ACCESS_REMOTE_PUT = UCS_BIT(5),
807 
811  UCT_MD_MEM_ACCESS_REMOTE_GET = UCS_BIT(6),
812 
816  UCT_MD_MEM_ACCESS_REMOTE_ATOMIC = UCS_BIT(7),
817 
822 
826  UCT_MD_MEM_ACCESS_LOCAL_WRITE = UCS_BIT(9),
836 
844 };
845 
846 
851 typedef enum {
858 
859 
867 enum uct_cm_attr_field {
870 };
871 
883 };
884 
885 
896 
899 
902 };
904 
912 enum uct_ep_params_field {
915 
917  UCT_EP_PARAM_FIELD_USER_DATA = UCS_BIT(1),
918 
920  UCT_EP_PARAM_FIELD_DEV_ADDR = UCS_BIT(2),
921 
923  UCT_EP_PARAM_FIELD_IFACE_ADDR = UCS_BIT(3),
924 
926  UCT_EP_PARAM_FIELD_SOCKADDR = UCS_BIT(4),
927 
930 
935  UCT_EP_PARAM_FIELD_CM = UCS_BIT(7),
936 
939 
942 
945 
948 
951 
954 
957 
960 
963 };
964 
976 
979 };
981 
990 enum uct_iface_feature {
992  UCT_IFACE_FEATURE_AM = UCS_BIT(0),
993 
995  UCT_IFACE_FEATURE_PUT = UCS_BIT(1),
998  UCT_IFACE_FEATURE_GET = UCS_BIT(2),
1001  UCT_IFACE_FEATURE_AMO32 = UCS_BIT(3),
1002 
1004  UCT_IFACE_FEATURE_AMO64 = UCS_BIT(4),
1005 
1007  UCT_IFACE_FEATURE_TAG = UCS_BIT(5),
1008 
1010  UCT_IFACE_FEATURE_FLUSH_REMOTE = UCS_BIT(6),
1014 };
1015 
1016 /*
1017  * @ingroup UCT_RESOURCE
1018  * @brief Process Per Node (PPN) bandwidth specification: f(ppn) = dedicated + shared / ppn
1019  *
1020  * This structure specifies a function which is used as basis for bandwidth
1021  * estimation of various UCT operations. This information can be used to select
1022  * the best performing combination of UCT operations.
1023  */
1024 typedef struct uct_ppn_bandwidth {
1025  double dedicated;
1026  double shared;
1029 
1035  struct {
1036  struct {
1037  size_t max_short;
1038  size_t max_bcopy;
1039  size_t min_zcopy;
1042  size_t max_zcopy;
1045  size_t opt_zcopy_align;
1047  size_t align_mtu;
1048  size_t max_iov;
1051  } put;
1053  struct {
1054  size_t max_short;
1055  size_t max_bcopy;
1056  size_t min_zcopy;
1059  size_t max_zcopy;
1062  size_t opt_zcopy_align;
1064  size_t align_mtu;
1065  size_t max_iov;
1068  } get;
1070  struct {
1071  size_t max_short;
1073  size_t max_bcopy;
1074  size_t min_zcopy;
1077  size_t max_zcopy;
1080  size_t opt_zcopy_align;
1082  size_t align_mtu;
1083  size_t max_hdr;
1084  size_t max_iov;
1087  } am;
1089  struct {
1090  struct {
1091  size_t min_recv;
1092  size_t max_zcopy;
1094  size_t max_iov;
1097  size_t max_outstanding;
1099  } recv;
1100 
1101  struct {
1102  size_t max_short;
1104  size_t max_bcopy;
1106  size_t max_zcopy;
1108  size_t max_iov;
1110  } eager;
1112  struct {
1113  size_t max_zcopy;
1115  size_t max_hdr;
1118  size_t max_iov;
1120  } rndv;
1121  } tag;
1123  struct {
1124  uint64_t op_flags;
1125  uint64_t fop_flags;
1126  } atomic32, atomic64;
1128  uint64_t flags;
1129  uint64_t event_flags;
1130  } cap;
1132  size_t device_addr_len;
1134  size_t ep_addr_len;
1135  size_t max_conn_priv;
1138  struct sockaddr_storage listen_sockaddr;
1140  /*
1141  * The following fields define expected performance of the communication
1142  * interface, this would usually be a combination of device and system
1143  * characteristics and determined at run time.
1144  */
1145  double overhead;
1147  ucs_linear_func_t latency;
1149  uint8_t priority;
1150  size_t max_num_eps;
1151  unsigned dev_num_paths;
1160 };
1161 
1162 
1174  uint64_t field_mask;
1176  ucs_cpu_set_t cpu_mask;
1178  uint64_t open_mode;
1180  union {
1187  struct {
1188  const char *tl_name;
1189  const char *dev_name;
1190  } device;
1198  struct {
1199  ucs_sock_addr_t listen_sockaddr;
1201  void *conn_request_arg;
1203  uct_sockaddr_conn_request_callback_t conn_request_cb;
1206  uint32_t cb_flags;
1207  } sockaddr;
1208  } mode;
1209 
1212  ucs_stats_node_t *stats_root;
1214  size_t rx_headroom;
1215 
1217  void *err_handler_arg;
1222  uint32_t err_handler_flags;
1223 
1225  void *eager_arg;
1228  void *rndv_arg;
1231 
1232  void *async_event_arg;
1239  /* Time period between keepalive rounds */
1241 
1250 
1267  size_t am_align_offset;
1268 
1273  uint64_t features;
1274 };
1275 
1276 
1281 struct uct_ep_params {
1287  uint64_t field_mask;
1298  void *user_data;
1299 
1305  const uct_device_addr_t *dev_addr;
1306 
1313 
1321  const ucs_sock_addr_t *sockaddr;
1322 
1331  uint32_t sockaddr_cb_flags;
1332 
1344 
1349  uct_cm_h cm;
1350 
1359 
1365 
1371 
1376 
1381  unsigned path_index;
1382 
1398  const void *private_data;
1399 
1404  size_t private_data_length;
1405 
1413 };
1414 
1415 
1420 struct uct_ep_connect_params {
1426  uint64_t field_mask;
1427 
1431  const void *private_data;
1432 
1437  size_t private_data_length;
1438 };
1439 
1444 struct uct_cm_attr {
1450  uint64_t field_mask;
1451 
1456  size_t max_conn_priv;
1457 };
1459 
1464 struct uct_listener_attr {
1470  uint64_t field_mask;
1475  struct sockaddr_storage sockaddr;
1476 };
1478 
1484 struct uct_listener_params {
1490  uint64_t field_mask;
1497  int backlog;
1498 
1503 
1507  void *user_data;
1508 };
1509 
1510 
1520 struct uct_md_attr {
1521  struct {
1522  uint64_t max_alloc;
1523  size_t max_reg;
1524  uint64_t flags;
1525  uint64_t reg_mem_types;
1526  uint64_t detect_mem_types;
1527  uint64_t alloc_mem_types;
1528  uint64_t access_mem_types;
1529  } cap;
1530 
1531  ucs_linear_func_t reg_cost;
1535  char component_name[UCT_COMPONENT_NAME_MAX];
1536  size_t rkey_packed_size;
1537  ucs_cpu_set_t local_cpus;
1538 };
1539 
1540 
1548 typedef enum uct_md_mem_attr_field {
1550  UCT_MD_MEM_ATTR_FIELD_MEM_TYPE = UCS_BIT(0),
1551 
1560 
1563 
1570 
1578 
1587 typedef struct uct_md_mem_attr {
1592  uint64_t field_mask;
1593 
1600 
1606  ucs_sys_device_t sys_dev;
1607 
1614 
1621 
1630  int dmabuf_fd;
1631 
1636  size_t dmabuf_offset;
1638 
1639 
1660 ucs_status_t uct_md_mem_query(uct_md_h md, const void *address, size_t length,
1661  uct_md_mem_attr_t *mem_attr);
1662 
1663 
1672 typedef struct uct_allocated_memory {
1673  void *address;
1674  size_t length;
1677  uct_md_h md;
1678  uct_mem_h memh;
1680 
1681 
1689 typedef struct uct_rkey_bundle {
1690  uct_rkey_t rkey;
1691  void *handle;
1692  void *type;
1714 struct uct_completion {
1716  int count;
1720 };
1721 
1722 
1730 struct uct_pending_req {
1732  char priv[UCT_PENDING_REQ_PRIV_LEN];
1733 };
1734 
1743 struct uct_tag_context {
1750  void (*tag_consumed_cb)(uct_tag_context_t *self);
1771  void (*completed_cb)(uct_tag_context_t *self, uct_tag_t stag, uint64_t imm,
1772  size_t length, void *inline_data, ucs_status_t status);
1773 
1786  void (*rndv_cb)(uct_tag_context_t *self, uct_tag_t stag, const void *header,
1787  unsigned header_length, ucs_status_t status, unsigned flags);
1788 
1790  char priv[UCT_TAG_PRIV_LEN];
1791 };
1793 
1798 enum {
1799  /* If set, header points to inline data, otherwise it is user buffer. */
1800  UCT_TAG_RECV_CB_INLINE_DATA = UCS_BIT(0)
1801 };
1802 
1803 
1804 extern const char *uct_alloc_method_names[];
1805 extern const char *uct_device_type_names[];
1806 
1822  unsigned *num_components_p);
1823 
1834 
1835 
1849  uct_component_attr_t *component_attr);
1850 
1851 
1871 ucs_status_t uct_md_open(uct_component_h component, const char *md_name,
1872  const uct_md_config_t *config, uct_md_h *md_p);
1873 
1880 void uct_md_close(uct_md_h md);
1881 
1882 
1898  uct_tl_resource_desc_t **resources_p,
1899  unsigned *num_resources_p);
1900 
1901 
1912 
1913 
1928 ucs_status_t uct_worker_create(ucs_async_context_t *async,
1929  ucs_thread_mode_t thread_mode,
1930  uct_worker_h *worker_p);
1931 
1932 
1939 void uct_worker_destroy(uct_worker_h worker);
1940 
1941 
1965 void uct_worker_progress_register_safe(uct_worker_h worker, ucs_callback_t func,
1966  void *arg, unsigned flags,
1967  uct_worker_cb_id_t *id_p);
1968 
1969 
1991  uct_worker_cb_id_t *id_p);
1992 
1993 
2021 ucs_status_t uct_md_iface_config_read(uct_md_h md, const char *tl_name,
2022  const char *env_prefix, const char *filename,
2023  uct_iface_config_t **config_p);
2024 
2025 
2033 void uct_config_release(void *config);
2034 
2035 
2051 ucs_status_t uct_config_get(void *config, const char *name, char *value,
2052  size_t max);
2053 
2054 
2067 ucs_status_t uct_config_modify(void *config, const char *name, const char *value);
2068 
2069 
2086  const uct_iface_params_t *params,
2087  const uct_iface_config_t *config,
2088  uct_iface_h *iface_p);
2089 
2090 
2097 void uct_iface_close(uct_iface_h iface);
2098 
2099 
2108 
2109 
2122 
2123 
2135 
2136 
2155 int uct_iface_is_reachable(const uct_iface_h iface, const uct_device_addr_t *dev_addr,
2156  const uct_iface_addr_t *iface_addr);
2157 
2158 
2176 ucs_status_t uct_ep_check(const uct_ep_h ep, unsigned flags,
2177  uct_completion_t *comp);
2178 
2179 
2193 
2194 
2214 ucs_status_t uct_iface_event_arm(uct_iface_h iface, unsigned events);
2215 
2216 
2232 ucs_status_t uct_iface_mem_alloc(uct_iface_h iface, size_t length, unsigned flags,
2233  const char *name, uct_allocated_memory_t *mem);
2234 
2235 
2243 
2244 
2263  uct_am_callback_t cb, void *arg, uint32_t flags);
2264 
2265 
2280  void *arg);
2281 
2282 
2295  uct_conn_request_h conn_request);
2296 
2297 
2311  uct_conn_request_h conn_request);
2312 
2313 
2348 ucs_status_t uct_ep_create(const uct_ep_params_t *params, uct_ep_h *ep_p);
2349 
2350 
2366 
2367 
2400 ucs_status_t uct_ep_disconnect(uct_ep_h ep, unsigned flags);
2401 
2402 
2409 void uct_ep_destroy(uct_ep_h ep);
2410 
2411 
2421 
2422 
2434  const uct_ep_addr_t *ep_addr);
2435 
2436 
2445 
2446 
2454 typedef enum {
2456  UCT_MEM_ALLOC_PARAM_FIELD_FLAGS = UCS_BIT(0),
2457 
2459  UCT_MEM_ALLOC_PARAM_FIELD_ADDRESS = UCS_BIT(1),
2460 
2463 
2465  UCT_MEM_ALLOC_PARAM_FIELD_MDS = UCS_BIT(3),
2466 
2468  UCT_MEM_ALLOC_PARAM_FIELD_NAME = UCS_BIT(4)
2470 
2471 
2476 typedef struct {
2482  uint64_t field_mask;
2490  unsigned flags;
2491 
2502  void *address;
2507  ucs_memory_type_t mem_type;
2508 
2509  struct {
2514  const uct_md_h *mds;
2515 
2521  unsigned count;
2522  } mds;
2530  const char *name;
2532 
2533 
2552  size_t length, uct_mem_advice_t advice);
2553 
2554 
2568 ucs_status_t uct_md_mem_reg(uct_md_h md, void *address, size_t length,
2569  unsigned flags, uct_mem_h *memh_p);
2570 
2571 
2580 
2581 
2594 ucs_status_t uct_md_detect_memory_type(uct_md_h md, const void *addr,
2595  size_t length,
2596  ucs_memory_type_t *mem_type_p);
2597 
2598 
2623 ucs_status_t uct_mem_alloc(size_t length, const uct_alloc_method_t *methods,
2624  unsigned num_methods,
2625  const uct_mem_alloc_params_t *params,
2626  uct_allocated_memory_t *mem);
2627 
2628 
2639 
2655  const char *env_prefix, const char *filename,
2656  uct_md_config_t **config_p);
2657 
2658 
2681 
2682 
2694 ucs_status_t uct_md_mkey_pack(uct_md_h md, uct_mem_h memh, void *rkey_buffer);
2695 
2696 
2716 ucs_status_t uct_rkey_unpack(uct_component_h component, const void *rkey_buffer,
2717  uct_rkey_bundle_t *rkey_ob);
2718 
2719 
2746  uint64_t remote_addr, void **addr_p);
2747 
2748 
2758  const uct_rkey_bundle_t *rkey_ob);
2759 
2760 
2775 UCT_INLINE_API unsigned uct_worker_progress(uct_worker_h worker)
2776 {
2777  return ucs_callbackq_dispatch(&worker->progress_q);
2778 }
2779 
2780 
2809 UCT_INLINE_API ucs_status_t uct_iface_flush(uct_iface_h iface, unsigned flags,
2810  uct_completion_t *comp)
2811 {
2812  return iface->ops.iface_flush(iface, flags, comp);
2813 }
2814 
2827 UCT_INLINE_API ucs_status_t uct_iface_fence(uct_iface_h iface, unsigned flags)
2828 {
2829  return iface->ops.iface_fence(iface, flags);
2831 
2841 UCT_INLINE_API void uct_iface_release_desc(void *desc)
2842 {
2843  uct_recv_desc_t *release_desc = uct_recv_desc(desc);
2844  release_desc->cb(release_desc, desc);
2845 }
2846 
2847 
2852 UCT_INLINE_API ucs_status_t uct_ep_put_short(uct_ep_h ep, const void *buffer, unsigned length,
2853  uint64_t remote_addr, uct_rkey_t rkey)
2854 {
2855  return ep->iface->ops.ep_put_short(ep, buffer, length, remote_addr, rkey);
2856 }
2857 
2858 
2863 UCT_INLINE_API ssize_t uct_ep_put_bcopy(uct_ep_h ep, uct_pack_callback_t pack_cb,
2864  void *arg, uint64_t remote_addr,
2865  uct_rkey_t rkey)
2866 {
2867  return ep->iface->ops.ep_put_bcopy(ep, pack_cb, arg, remote_addr, rkey);
2868 }
2869 
2870 
2900 UCT_INLINE_API ucs_status_t uct_ep_put_zcopy(uct_ep_h ep,
2901  const uct_iov_t *iov, size_t iovcnt,
2902  uint64_t remote_addr, uct_rkey_t rkey,
2903  uct_completion_t *comp)
2904 {
2905  return ep->iface->ops.ep_put_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2906 }
2907 
2908 
2913 UCT_INLINE_API ucs_status_t uct_ep_get_short(uct_ep_h ep, void *buffer, unsigned length,
2914  uint64_t remote_addr, uct_rkey_t rkey)
2915 {
2916  return ep->iface->ops.ep_get_short(ep, buffer, length, remote_addr, rkey);
2917 }
2918 
2919 
2924 UCT_INLINE_API ucs_status_t uct_ep_get_bcopy(uct_ep_h ep, uct_unpack_callback_t unpack_cb,
2925  void *arg, size_t length,
2926  uint64_t remote_addr, uct_rkey_t rkey,
2927  uct_completion_t *comp)
2928 {
2929  return ep->iface->ops.ep_get_bcopy(ep, unpack_cb, arg, length, remote_addr,
2930  rkey, comp);
2931 }
2932 
2933 
2963 UCT_INLINE_API ucs_status_t uct_ep_get_zcopy(uct_ep_h ep,
2964  const uct_iov_t *iov, size_t iovcnt,
2965  uint64_t remote_addr, uct_rkey_t rkey,
2966  uct_completion_t *comp)
2967 {
2968  return ep->iface->ops.ep_get_zcopy(ep, iov, iovcnt, remote_addr, rkey, comp);
2969 }
2970 
2971 
2976 UCT_INLINE_API ucs_status_t uct_ep_am_short(uct_ep_h ep, uint8_t id, uint64_t header,
2977  const void *payload, unsigned length)
2978 {
2979  return ep->iface->ops.ep_am_short(ep, id, header, payload, length);
2980 }
2981 
2982 
3013 UCT_INLINE_API ucs_status_t uct_ep_am_short_iov(uct_ep_h ep, uint8_t id,
3014  const uct_iov_t *iov, size_t iovcnt)
3015 {
3016  return ep->iface->ops.ep_am_short_iov(ep, id, iov, iovcnt);
3017 }
3018 
3019 
3024 UCT_INLINE_API ssize_t uct_ep_am_bcopy(uct_ep_h ep, uint8_t id,
3025  uct_pack_callback_t pack_cb, void *arg,
3026  unsigned flags)
3027 {
3028  return ep->iface->ops.ep_am_bcopy(ep, id, pack_cb, arg, flags);
3029 }
3030 
3031 
3069 UCT_INLINE_API ucs_status_t uct_ep_am_zcopy(uct_ep_h ep, uint8_t id,
3070  const void *header,
3071  unsigned header_length,
3072  const uct_iov_t *iov, size_t iovcnt,
3073  unsigned flags,
3074  uct_completion_t *comp)
3075 {
3076  return ep->iface->ops.ep_am_zcopy(ep, id, header, header_length, iov, iovcnt,
3077  flags, comp);
3078 }
3079 
3084 UCT_INLINE_API ucs_status_t uct_ep_atomic_cswap64(uct_ep_h ep, uint64_t compare, uint64_t swap,
3085  uint64_t remote_addr, uct_rkey_t rkey,
3086  uint64_t *result, uct_completion_t *comp)
3087 {
3088  return ep->iface->ops.ep_atomic_cswap64(ep, compare, swap, remote_addr, rkey, result, comp);
3089 }
3091 
3096 UCT_INLINE_API ucs_status_t uct_ep_atomic_cswap32(uct_ep_h ep, uint32_t compare, uint32_t swap,
3097  uint64_t remote_addr, uct_rkey_t rkey,
3098  uint32_t *result, uct_completion_t *comp)
3099 {
3100  return ep->iface->ops.ep_atomic_cswap32(ep, compare, swap, remote_addr, rkey, result, comp);
3101 }
3102 
3103 
3108 UCT_INLINE_API ucs_status_t uct_ep_atomic32_post(uct_ep_h ep, uct_atomic_op_t opcode,
3109  uint32_t value, uint64_t remote_addr,
3110  uct_rkey_t rkey)
3111 {
3112  return ep->iface->ops.ep_atomic32_post(ep, opcode, value, remote_addr, rkey);
3113 }
3114 
3115 
3120 UCT_INLINE_API ucs_status_t uct_ep_atomic64_post(uct_ep_h ep, uct_atomic_op_t opcode,
3121  uint64_t value, uint64_t remote_addr,
3122  uct_rkey_t rkey)
3123 {
3124  return ep->iface->ops.ep_atomic64_post(ep, opcode, value, remote_addr, rkey);
3125 }
3126 
3127 
3132 UCT_INLINE_API ucs_status_t uct_ep_atomic32_fetch(uct_ep_h ep, uct_atomic_op_t opcode,
3133  uint32_t value, uint32_t *result,
3134  uint64_t remote_addr, uct_rkey_t rkey,
3135  uct_completion_t *comp)
3136 {
3137  return ep->iface->ops.ep_atomic32_fetch(ep, opcode, value, result,
3138  remote_addr, rkey, comp);
3139 }
3140 
3146 UCT_INLINE_API ucs_status_t uct_ep_atomic64_fetch(uct_ep_h ep, uct_atomic_op_t opcode,
3147  uint64_t value, uint64_t *result,
3148  uint64_t remote_addr, uct_rkey_t rkey,
3149  uct_completion_t *comp)
3150 {
3151  return ep->iface->ops.ep_atomic64_fetch(ep, opcode, value, result,
3152  remote_addr, rkey, comp);
3154 
3155 
3176 UCT_INLINE_API ucs_status_t uct_ep_pending_add(uct_ep_h ep,
3177  uct_pending_req_t *req,
3178  unsigned flags)
3179 {
3180  return ep->iface->ops.ep_pending_add(ep, req, flags);
3181 }
3182 
3183 
3195 UCT_INLINE_API void uct_ep_pending_purge(uct_ep_h ep,
3197  void *arg)
3198 {
3199  ep->iface->ops.ep_pending_purge(ep, cb, arg);
3200 }
3201 
3202 
3231 UCT_INLINE_API ucs_status_t uct_ep_flush(uct_ep_h ep, unsigned flags,
3232  uct_completion_t *comp)
3233 {
3234  return ep->iface->ops.ep_flush(ep, flags, comp);
3235 }
3236 
3237 
3250 UCT_INLINE_API ucs_status_t uct_ep_fence(uct_ep_h ep, unsigned flags)
3251 {
3252  return ep->iface->ops.ep_fence(ep, flags);
3253 }
3254 
3255 
3278 UCT_INLINE_API ucs_status_t uct_ep_tag_eager_short(uct_ep_h ep, uct_tag_t tag,
3279  const void *data, size_t length)
3280 {
3281  return ep->iface->ops.ep_tag_eager_short(ep, tag, data, length);
3282 }
3283 
3284 
3308 UCT_INLINE_API ssize_t uct_ep_tag_eager_bcopy(uct_ep_h ep, uct_tag_t tag,
3309  uint64_t imm,
3310  uct_pack_callback_t pack_cb,
3311  void *arg, unsigned flags)
3312 {
3313  return ep->iface->ops.ep_tag_eager_bcopy(ep, tag, imm, pack_cb, arg, flags);
3314 }
3315 
3316 
3354 UCT_INLINE_API ucs_status_t uct_ep_tag_eager_zcopy(uct_ep_h ep, uct_tag_t tag,
3355  uint64_t imm,
3356  const uct_iov_t *iov,
3357  size_t iovcnt,
3358  unsigned flags,
3359  uct_completion_t *comp)
3360 {
3361  return ep->iface->ops.ep_tag_eager_zcopy(ep, tag, imm, iov, iovcnt, flags,
3362  comp);
3363 }
3364 
3365 
3403  const void *header,
3404  unsigned header_length,
3405  const uct_iov_t *iov,
3406  size_t iovcnt,
3407  unsigned flags,
3408  uct_completion_t *comp)
3409 {
3410  return ep->iface->ops.ep_tag_rndv_zcopy(ep, tag, header, header_length,
3411  iov, iovcnt, flags, comp);
3412 }
3413 
3414 
3433 UCT_INLINE_API ucs_status_t uct_ep_tag_rndv_cancel(uct_ep_h ep, void *op)
3434 {
3435  return ep->iface->ops.ep_tag_rndv_cancel(ep, op);
3436 }
3437 
3438 
3459  const void* header,
3460  unsigned header_length,
3461  unsigned flags)
3462 {
3463  return ep->iface->ops.ep_tag_rndv_request(ep, tag, header, header_length,
3464  flags);
3465 }
3466 
3467 
3499  uct_tag_t tag,
3500  uct_tag_t tag_mask,
3501  const uct_iov_t *iov,
3502  size_t iovcnt,
3503  uct_tag_context_t *ctx)
3504 {
3505  return iface->ops.iface_tag_recv_zcopy(iface, tag, tag_mask, iov, iovcnt, ctx);
3506 }
3507 
3508 
3532  uct_tag_context_t *ctx,
3533  int force)
3534 {
3535  return iface->ops.iface_tag_recv_cancel(iface, ctx, force);
3536 }
3537 
3538 
3557 UCT_INLINE_API void uct_iface_progress_enable(uct_iface_h iface, unsigned flags)
3558 {
3559  iface->ops.iface_progress_enable(iface, flags);
3560 }
3561 
3562 
3582 UCT_INLINE_API void uct_iface_progress_disable(uct_iface_h iface, unsigned flags)
3583 {
3584  iface->ops.iface_progress_disable(iface, flags);
3585 }
3586 
3587 
3592 UCT_INLINE_API unsigned uct_iface_progress(uct_iface_h iface)
3593 {
3594  return iface->ops.iface_progress(iface);
3595 }
3596 
3597 
3621  const uct_cm_config_t *config, uct_cm_h *cm_p);
3622 
3623 
3630 void uct_cm_close(uct_cm_h cm);
3631 
3632 
3644 
3645 
3663  const char *env_prefix, const char *filename,
3664  uct_cm_config_t **config_p);
3665 
3666 
3680 
3681 
3700 ucs_status_t uct_listener_create(uct_cm_h cm, const struct sockaddr *saddr,
3701  socklen_t socklen,
3702  const uct_listener_params_t *params,
3703  uct_listener_h *listener_p);
3704 
3705 
3712 void uct_listener_destroy(uct_listener_h listener);
3713 
3714 
3731  uct_conn_request_h conn_request);
3732 
3733 
3747  uct_listener_attr_t *listener_attr);
3748 
3749 
3757 static UCS_F_ALWAYS_INLINE
3759 {
3760  if (ucs_unlikely(status != UCS_OK) && (comp->status == UCS_OK)) {
3761  /* store first failure status */
3762  comp->status = status;
3763  }
3764 }
3765 
3766 
3772 END_C_DECLS
3773 
3774 #endif
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:888
uct_tag_unexp_rndv_cb_t rndv_cb
Definition: uct.h:1251
Definition: uct.h:852
size_t max_conn_priv
Definition: uct.h:1477
size_t private_data_length
Definition: uct.h:1425
void * async_event_arg
Definition: uct.h:1253
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:3375
Definition: uct.h:847
uct_progress_types
UCT progress types.
Definition: uct.h:564
Definition: uct.h:517
Definition: uct.h:873
uct_error_handler_t err_handler
Definition: uct.h:1240
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.
Definition: uct.h:837
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:3779
uct_async_event_cb_t async_event_cb
Definition: uct.h:1258
Definition: uct.h:944
struct uct_tl_resource_desc uct_tl_resource_desc_t
Communication resource descriptor.
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
Definition: uct.h:762
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.
Definition: uct.h:809
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:3423
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
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:3129
ucs_status_t uct_iface_event_arm(uct_iface_h iface, unsigned events)
Turn on event notification for the next event.
ucs_cpu_set_t local_cpus
Definition: uct.h:1558
void * uct_mem_h
Definition: uct_def.h:84
int count
Definition: uct.h:1737
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.
Definition: uct.h:977
void * type
Definition: uct.h:1713
size_t private_data_length
Definition: uct.h:1458
Definition: uct.h:703
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:3216
Definition: uct.h:754
ucs_status_t uct_rkey_unpack(uct_component_h component, const void *rkey_buffer, uct_rkey_bundle_t *rkey_ob)
Unpack a remote key.
Definition: uct.h:497
Definition: uct.h:654
union uct_iface_params::@16 mode
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:3329
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:3252
uct_cm_ep_client_connect_callback_t sockaddr_cb_client
Definition: uct.h:1385
ucs_status_t uct_listener_query(uct_listener_h listener, uct_listener_attr_t *listener_attr)
Get attributes specific to a particular listener.
Definition: uct.h:2480
Definition: uct.h:310
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:3552
struct uct_md_attr::@19 cap
Definition: uct.h:971
Definition: uct.h:293
int backlog
Definition: uct.h:1518
Definition: uct.h:650
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:872
void uct_listener_destroy(uct_listener_h listener)
Destroy a transport listener.
Parameters used for interface creation.
Definition: uct.h:1191
struct uct_md_config uct_md_config_t
Definition: uct_def.h:81
size_t dmabuf_offset
Definition: uct.h:1657
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:2921
uint64_t field_mask
Definition: uct.h:1308
Memory domain resource descriptor.
Definition: uct.h:217
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_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.
uct_mem_alloc_params_field_t
UCT allocation parameters specification field mask.
Definition: uct.h:2475
size_t iface_addr_len
Definition: uct.h:1154
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:914
uint64_t field_mask
Definition: uct.h:1613
void * address
Definition: uct.h:1694
const uct_device_addr_t * dev_addr
Definition: uct.h:1326
UCT component attributes.
Definition: uct.h:244
Definition: uct.h:1821
ucs_status_t uct_mem_free(const uct_allocated_memory_t *mem)
Release allocated memory.
double dedicated
Definition: uct.h:1046
Definition: uct.h:309
uct_cb_flags
Callback flags.
Definition: uct.h:600
Definition: uct.h:2477
const void * private_data
Definition: uct.h:1419
uint64_t field_mask
Definition: uct.h:1491
uct_listener_attr_field
UCT listener attributes field mask.
Definition: uct.h:901
Definition: uct.h:744
Definition: uct.h:711
void uct_iface_release_desc(void *desc)
Release AM descriptor.
Definition: uct.h:2862
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
uct_alloc_method_t method
Definition: uct.h:1696
ucs_linear_func_t reg_cost
Definition: uct.h:1552
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:1485
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:3105
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:3141
Interface attributes: capabilities and limitations.
Definition: uct.h:1055
Definition: uct.h:821
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:2873
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:3034
uint64_t field_mask
Definition: uct.h:1447
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:2934
void * base_address
Definition: uct.h:1634
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.
double overhead
Definition: uct.h:1166
Definition: uct.h:567
ucs_linear_func_t latency
Definition: uct.h:1168
ucs_cpu_set_t cpu_mask
Definition: uct.h:1197
Definition: uct.h:956
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:2830
Definition: uct.h:529
void(* uct_completion_callback_t)(uct_completion_t *self)
Callback to process send completion.
Definition: uct_def.h:536
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_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:2984
Definition: uct.h:1571
void uct_iface_progress_disable(uct_iface_h iface, unsigned flags)
Disable synchronous progress for the interface.
Definition: uct.h:3603
Definition: uct.h:749
char name[UCT_COMPONENT_NAME_MAX]
Definition: uct.h:254
struct uct_iface_addr uct_iface_addr_t
Definition: uct_def.h:99
uint64_t field_mask
Definition: uct.h:251
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_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_...
Definition: uct.h:519
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
Definition: uct.h:938
Definition: uct.h:311
Definition: uct.h:308
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:933
Definition: uct.h:786
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:3299
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:2997
uct_cm_ep_server_conn_notify_callback_t sockaddr_cb_server
Definition: uct.h:1391
Remote key with its type.
Definition: uct.h:1710
ucs_status_t uct_ep_tag_rndv_cancel(uct_ep_h ep, void *op)
Cancel outstanding rendezvous operation.
Definition: uct.h:3454
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:1608
uint8_t priority
Definition: uct.h:1170
struct uct_rkey_bundle uct_rkey_bundle_t
Remote key with its type.
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:1792
Definition: uct.h:299
Definition: uct.h:658
char md_name[UCT_MD_NAME_MAX]
Definition: uct.h:218
Definition: uct.h:775
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:3090
char tl_name[UCT_TL_NAME_MAX]
Definition: uct.h:328
Definition: uct.h:815
uct_iface_h iface
Definition: uct.h:1314
ucs_status_t
Status codes.
Definition: status.h:45
char component_name[UCT_COMPONENT_NAME_MAX]
Definition: uct.h:1556
Definition: uct.h:601
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.
Definition: uct.h:842
Definition: uct.h:533
Definition: uct.h:312
enum uct_md_mem_attr_field uct_md_mem_attr_field_t
UCT MD memory attributes field mask.
void * user_data
Definition: uct.h:1319
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.
size_t length
Definition: uct.h:1695
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.
Definition: uct.h:626
uct_md_mem_flags
Memory allocation/registration flags.
Definition: uct.h:799
double shared
Definition: uct.h:1047
void * err_handler_arg
Definition: uct.h:1238
Parameters for creating a listener object uct_listener_h by uct_listener_create.
Definition: uct.h:1505
char priv[UCT_PENDING_REQ_PRIV_LEN]
Definition: uct.h:1753
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
Definition: uct.h:714
Definition: uct.h:496
Definition: uct.h:947
Definition: uct.h:2489
Definition: uct.h:1016
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
uint64_t flags
Definition: uct.h:277
Definition: uct.h:565
ucs_status_t uct_cm_client_ep_conn_notify(uct_ep_h ep)
Notify the server about client-side connection establishment.
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_h cm
Definition: uct.h:1370
Connection manager attributes, capabilities and limitations.
Definition: uct.h:1465
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.
Definition: uct.h:647
ucs_memory_type_t mem_type
Definition: uct.h:1620
ucs_status_t uct_md_query(uct_md_h md, uct_md_attr_t *md_attr)
Query for memory domain attributes.
Definition: uct.h:738
size_t am_align_offset
Definition: uct.h:1288
void * user_data
Definition: uct.h:1528
Definition: uct.h:501
void uct_iface_progress_enable(uct_iface_h iface, unsigned flags)
Enable synchronous progress for the interface.
Definition: uct.h:3578
struct sockaddr_storage listen_sockaddr
Definition: uct.h:1159
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_ppn_bandwidth_t bandwidth
Definition: uct.h:1167
Definition: uct.h:233
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:3167
uct_iface_feature
UCT interface configuration features.
Definition: uct.h:1011
ucs_memory_type_t mem_type
Definition: uct.h:1697
Definition: uct.h:728
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:3045
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:1569
uct_alloc_method_t
Memory allocation methods.
Definition: uct.h:493
Definition: uct.h:1031
Definition: status.h:47
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
uint64_t uct_tag_t
Definition: uct_def.h:110
Definition: uct.h:767
Definition: uct.h:494
const ucs_sock_addr_t * local_sockaddr
Definition: uct.h:1433
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.
const ucs_sock_addr_t * sockaddr
Definition: uct.h:1342
unsigned dev_num_paths
Definition: uct.h:1172
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...
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
Parameters for connecting a UCT endpoint by uct_ep_connect.
Definition: uct.h:1441
uct_pending_callback_t func
Definition: uct.h:1752
uint64_t open_mode
Definition: uct.h:1199
Parameters for allocating memory using uct_mem_alloc.
Definition: uct.h:2497
ucs_sys_device_t sys_dev
Definition: uct.h:1627
uint64_t field_mask
Definition: uct.h:1471
void uct_iface_mem_free(const uct_allocated_memory_t *mem)
Release memory allocated with uct_iface_mem_alloc().
Definition: uct.h:781
Definition: uct.h:602
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
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:2848
ucs_status_t status
Definition: uct.h:1738
uct_ep_connect_params_field
UCT endpoint connected by uct_ep_connect parameters field mask.
Definition: uct.h:994
struct uct_md_resource_desc uct_md_resource_desc_t
Memory domain resource descriptor.
uint32_t sockaddr_cb_flags
Definition: uct.h:1352
uct_cm_ep_resolve_callback_t cm_resolve_cb
Definition: uct.h:1411
Definition: uct.h:1019
unsigned md_resource_count
Definition: uct.h:257
Definition: uct.h:1577
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:3479
uct_iface_open_mode
Mode in which to open the interface.
Definition: uct.h:624
Definition: uct.h:935
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_pending_callback_t)(uct_pending_req_t *self)
Callback to process pending requests.
Definition: uct_def.h:553
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:3197
size_t device_addr_len
Definition: uct.h:1153
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.
Definition: uct.h:566
void uct_ep_destroy(uct_ep_h ep)
Destroy an endpoint.
Parameters for creating a UCT endpoint by uct_ep_create.
Definition: uct.h:1302
void * ucs_status_ptr_t
Status pointer.
Definition: status.h:106
void(* uct_async_event_cb_t)(void *arg, unsigned flags)
Callback to process asynchronous events.
Definition: uct_def.h:897
uct_ep_disconnect_cb_t disconnect_cb
Definition: uct.h:1396
uct_sockaddr_accessibility_t
Socket address accessibility type.
Definition: uct.h:710
Definition: uct.h:959
Definition: uct.h:1590
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.
Definition: uct.h:1022
size_t am_alignment
Definition: uct.h:1270
uint64_t features
Definition: uct.h:1294
ucs_stats_node_t * stats_root
Definition: uct.h:1233
Definition: uct.h:1025
struct uct_iface_attr::@7 cap
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:1541
Definition: uct.h:578
uct_iface_params_field
UCT interface created by uct_iface_open parameters field mask.
Definition: uct.h:645
uct_completion_callback_t func
Definition: uct.h:1736
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.
int dmabuf_fd
Definition: uct.h:1651
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
Definition: uct.h:1013
size_t ep_addr_len
Definition: uct.h:1155
void uct_release_tl_resource_list(uct_tl_resource_desc_t *resources)
Release the list of resources returned from uct_md_query_tl_resources.
Definition: uct.h:827
void uct_cm_close(uct_cm_h cm)
Close a connection manager.
Definition: uct.h:2486
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.
Definition: uct.h:499
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:3271
uct_mem_h memh
Definition: uct.h:1699
size_t rx_headroom
Definition: uct.h:1235
struct uct_allocated_memory uct_allocated_memory_t
Describes a memory allocated by UCT.
Definition: uct.h:874
void uct_worker_destroy(uct_worker_h worker)
Destroy a worker object.
uct_cm_listener_conn_request_callback_t conn_request_cb
Definition: uct.h:1523
Definition: uct.h:498
size_t rkey_packed_size
Definition: uct.h:1557
Communication resource descriptor.
Definition: uct.h:327
Pending request.
Definition: uct.h:1751
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.
Definition: uct.h:1045
unsigned uct_worker_progress(uct_worker_h worker)
Explicit progress for UCT worker.
Definition: uct.h:2796
uct_conn_request_h conn_request
Definition: uct.h:1379
const uct_iface_addr_t * iface_addr
Definition: uct.h:1333
uct_md_h md
Definition: uct.h:1698
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
Definition: uct.h:890
Definition: uct.h:230
void(* tag_consumed_cb)(uct_tag_context_t *self)
Definition: uct.h:1771
void(* uct_pending_purge_callback_t)(uct_pending_req_t *self, void *arg)
Callback to purge pending requests.
Definition: uct_def.h:586
struct sockaddr_storage sockaddr
Definition: uct.h:1496
Definition: uct.h:1034
Definition: types.h:137
size_t max_num_eps
Definition: uct.h:1171
void * eager_arg
Definition: uct.h:1246
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.
uint64_t field_mask
Definition: uct.h:1195
struct uct_ep * uct_ep_h
Definition: uct_def.h:83
Definition: uct.h:548
uct_tag_unexp_eager_cb_t eager_cb
Definition: uct.h:1248
Definition: uct.h:861
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:1764
ucs_status_t uct_iface_query(uct_iface_h iface, uct_iface_attr_t *iface_attr)
Get interface attributes.
uint64_t field_mask
Definition: uct.h:1511
size_t(* uct_pack_callback_t)(void *dest, void *arg)
Callback for producing data.
Definition: uct_def.h:598
Completion handle.
Definition: uct.h:1735
uct_rkey_t rkey
Definition: uct.h:1711
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:1807
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:2884
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:2945
size_t alloc_length
Definition: uct.h:1641
uint32_t err_handler_flags
Definition: uct.h:1243
uct_cm_ep_priv_data_pack_callback_t sockaddr_pack_cb
Definition: uct.h:1364
unsigned path_index
Definition: uct.h:1402
Definition: uct.h:832
struct uct_device_addr uct_device_addr_t
Definition: uct_def.h:98
Definition: uct.h:584
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:3613
ucs_sys_device_t sys_device
Definition: uct.h:332
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:3519
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.
const void * private_data
Definition: uct.h:1452
char priv[UCT_TAG_PRIV_LEN]
Definition: uct.h:1811
Definition: uct.h:518
size_t max_conn_priv
Definition: uct.h:1156
void * handle
Definition: uct.h:1712
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.
Definition: uct.h:500
Definition: uct.h:804
void * rndv_arg
Definition: uct.h:1249
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_time_t keepalive_interval
Definition: uct.h:1261
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:3153
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.
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
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:3117
uct_iface_event_types
Asynchronous event types.
Definition: uct.h:516
char dev_name[UCT_DEVICE_NAME_MAX]
Definition: uct.h:329
Definition: uct.h:1028
Definition: uct.h:733
Describes a memory allocated by UCT.
Definition: uct.h:1693
Definition: uct.h:792
Definition: uct.h:941