diff --git a/src/ucp/wireup/ep_match.c b/src/ucp/wireup/ep_match.c index dbd431e76166..5a35fc61711d 100644 --- a/src/ucp/wireup/ep_match.c +++ b/src/ucp/wireup/ep_match.c @@ -88,7 +88,7 @@ ucp_ep_h ucp_ep_match_retrieve(ucp_worker_h worker, uint64_t dest_uuid, ucp_ep_match_conn_sn_t conn_sn, ucs_conn_match_queue_type_t conn_queue_type) { - ucp_ep_flags_t exp_ep_flags = UCP_EP_FLAG_ON_MATCH_CTX; + ucp_ep_flags_t UCS_V_UNUSED exp_ep_flags = UCP_EP_FLAG_ON_MATCH_CTX; ucs_conn_match_elem_t *conn_match; ucp_ep_h ep; diff --git a/src/uct/ib/base/ib_verbs.h b/src/uct/ib/base/ib_verbs.h index 198c3803e4d0..905d1be72ce5 100644 --- a/src/uct/ib/base/ib_verbs.h +++ b/src/uct/ib/base/ib_verbs.h @@ -71,6 +71,9 @@ static inline ucs_status_t uct_ib_query_device(struct ibv_context *ctx, # define IBV_ACCESS_RELAXED_ORDERING 0 #endif +#if !HAVE_DECL_IBV_ACCESS_ON_DEMAND +# define IBV_ACCESS_ON_DEMAND 0 +#endif /* * DC support diff --git a/src/uct/ib/configure.m4 b/src/uct/ib/configure.m4 index 937932c2c724..9ca5be18561f 100644 --- a/src/uct/ib/configure.m4 +++ b/src/uct/ib/configure.m4 @@ -223,6 +223,7 @@ AS_IF([test "x$with_ib" = "xyes"], [], [], [[#include ]]) AC_CHECK_DECLS([IBV_ACCESS_RELAXED_ORDERING, + IBV_ACCESS_ON_DEMAND, IBV_QPF_GRH_REQUIRED], [], [], [[#include ]])