Skip to content

Commit

Permalink
UCT/UCP: Fix compilation errors with armcc-22.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brminich committed Mar 30, 2023
1 parent a5c3aae commit 998fcca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucp/wireup/ep_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions src/uct/ib/base/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/uct/ib/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ AS_IF([test "x$with_ib" = "xyes"],
[], [], [[#include <infiniband/verbs.h>]])
AC_CHECK_DECLS([IBV_ACCESS_RELAXED_ORDERING,
IBV_ACCESS_ON_DEMAND,
IBV_QPF_GRH_REQUIRED],
[], [], [[#include <infiniband/verbs.h>]])
Expand Down

0 comments on commit 998fcca

Please sign in to comment.