Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit babeac7

Browse files
author
rhc54
committed
Merge pull request #920 from ggouaillardet/topic/v1.10/hwloc_base_get_pu
hwloc: have opal_hwloc_base_get_pu search for HWLOC_OBJ_PU when mpiru…
2 parents 9d743fe + ce334a7 commit babeac7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/hwloc/base/hwloc_base_util.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
1414
* All rights reserved.
1515
* Copyright (c) 2013-2014 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
* $COPYRIGHT$
1719
*
1820
* Additional copyrights may follow
@@ -68,7 +70,7 @@ hwloc_obj_t opal_hwloc_base_get_pu(hwloc_topology_t topo,
6870
So first we have to see if we can find *any* cores by looking
6971
for the 0th core. If we find it, then try to find the Nth
7072
core. Otherwise, try to find the Nth PU. */
71-
if (NULL == hwloc_get_obj_by_type(topo, HWLOC_OBJ_CORE, 0)) {
73+
if (opal_hwloc_use_hwthreads_as_cpus || (NULL == hwloc_get_obj_by_type(topo, HWLOC_OBJ_CORE, 0))) {
7274
obj_type = HWLOC_OBJ_PU;
7375
}
7476

0 commit comments

Comments
 (0)