Skip to content

Commit 85de1b2

Browse files
authored
Merge pull request #5 from hppritcha/upstream_pr_1989
2 parents 225468c + c19e875 commit 85de1b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hwloc/hwloc_base_util.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ static hwloc_obj_t df_search(hwloc_topology_t topo, hwloc_obj_t start, hwloc_obj
516516
unsigned cache_level, unsigned int nobj, unsigned int *num_objs)
517517
{
518518
int search_depth;
519+
PRTE_HIDE_UNUSED_PARAMS(start);
519520

520521
search_depth = hwloc_get_type_depth(topo, target);
521522
if (HWLOC_TYPE_DEPTH_MULTIPLE == search_depth) {
@@ -1304,6 +1305,7 @@ static int bitmap_list_snprintf_exp(char *__hwloc_restrict buf, size_t buflen,
13041305
}
13051306
}
13061307
#else
1308+
PRTE_HIDE_UNUSED_PARAMS(set, type);
13071309
if (buflen > 0) {
13081310
tmp[0] = '\0';
13091311
}
@@ -1876,10 +1878,12 @@ int prte_hwloc_base_topology_set_flags(hwloc_topology_t topology, unsigned long
18761878
// Blacklist the "gl" component due to potential conflicts.
18771879
// See "https://github.com/open-mpi/ompi/issues/10025" for
18781880
// an explanation
1881+
#ifdef HWLOC_VERSION_MAJOR
18791882
#if HWLOC_VERSION_MAJOR > 2
18801883
hwloc_topology_set_components(topology, HWLOC_TOPOLOGY_COMPONENTS_FLAG_BLACKLIST, "gl");
18811884
#elif HWLOC_VERSION_MAJOR == 2 && HWLOC_VERSION_MINOR >= 1
18821885
hwloc_topology_set_components(topology, HWLOC_TOPOLOGY_COMPONENTS_FLAG_BLACKLIST, "gl");
1886+
#endif
18831887
#endif
18841888
return hwloc_topology_set_flags(topology, flags);
18851889
}

0 commit comments

Comments
 (0)