Skip to content

Commit

Permalink
TOPO: Fix socket ldr sbgp create if no libnuma (openucx#1029)
Browse files Browse the repository at this point in the history
Co-authored-by: nsarkauskas <[email protected]>
  • Loading branch information
nsarka and nsarkauskas authored Oct 7, 2024
1 parent 5a70394 commit fb041fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/topo/ucc_sbgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const char* ucc_sbgp_str(ucc_sbgp_type_t type)
return ucc_sbgp_type_str[type];
}

#define UCC_TOPO_IS_BOUND(_topo, _sbgp_type) \
(UCC_SBGP_SOCKET == (_sbgp_type)) ? \
(_topo)->topo->sock_bound : (_topo)->topo->numa_bound
#define UCC_TOPO_IS_BOUND(_topo, _sbgp_type) \
(UCC_SBGP_SOCKET == (_sbgp_type) || \
UCC_SBGP_SOCKET_LEADERS == (_sbgp_type)) ? \
(_topo)->topo->sock_bound : (_topo)->topo->numa_bound

static inline int ucc_ranks_on_local_sn(ucc_rank_t rank1, ucc_rank_t rank2,
ucc_topo_t *topo, ucc_sbgp_type_t type)
Expand Down

0 comments on commit fb041fd

Please sign in to comment.