Skip to content

Commit 0a7a2b7

Browse files
committed
ras/alps: use cpuCnt if using hwthreads as cores
This commit updates the alps ras component to allow the use of hyperthreads on compute nodes. In this case we need to use the cpuCnt value from the node structure instead of numPEs. Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from commit c3614d3) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 87a79fa commit 0a7a2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orte/mca/ras/alps/ras_alps_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ orte_ras_alps_read_appinfo_file(opal_list_t *nodes, char *filename,
585585
orte_set_attribute(&node->attributes, ORTE_NODE_LAUNCH_ID, ORTE_ATTR_LOCAL, &apNodes[ix].nid, OPAL_INT32);
586586
node->slots_inuse = 0;
587587
node->slots_max = 0;
588-
node->slots = apNodes[ix].numPEs;
588+
node->slots = opal_hwloc_use_hwthreads_as_cpus ? apNodes[ix].cpuCnt : apNodes[ix].numPEs;
589589
node->state = ORTE_NODE_STATE_UP;
590590
/* need to order these node ids so the regex generator
591591
* can properly function

0 commit comments

Comments
 (0)