File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments