From 16b4dc12d9c9d1b5e81552079d9c6318893fed5c Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Thu, 22 Feb 2024 01:20:38 +0200 Subject: [PATCH] Fix build error --- include/ibvwrap.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/ibvwrap.h b/include/ibvwrap.h index afd4ebbe..00aa457f 100644 --- a/include/ibvwrap.h +++ b/include/ibvwrap.h @@ -22,6 +22,23 @@ # define IBV_QPF_GRH_REQUIRED 0 #endif +#if !HAVE_DECL_IBV_SET_ECE +struct ibv_ece { + /* + * Unique identifier of the provider vendor on the network. + * The providers will set IEEE OUI here to distinguish + * itself in non-homogenius network. + */ + uint32_t vendor_id; + /* + * Provider specific attributes which are supported or + * needed to be enabled by ECE users. + */ + uint32_t options; + uint32_t comp_mask; +}; +#endif + ncclResult_t wrap_ibv_fork_init(void); ncclResult_t wrap_ibv_get_device_list(struct ibv_device ***ret, int *num_devices); ncclResult_t wrap_ibv_free_device_list(struct ibv_device **list);