From fb041fdd8fe89d8009836873f50e6e525bf7e6e0 Mon Sep 17 00:00:00 2001 From: nsarka Date: Mon, 7 Oct 2024 08:23:44 -0400 Subject: [PATCH] TOPO: Fix socket ldr sbgp create if no libnuma (#1029) Co-authored-by: nsarkauskas --- src/components/topo/ucc_sbgp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/topo/ucc_sbgp.c b/src/components/topo/ucc_sbgp.c index e0264ee9e2..9dcfbe5239 100644 --- a/src/components/topo/ucc_sbgp.c +++ b/src/components/topo/ucc_sbgp.c @@ -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)