Skip to content

Commit 3f5a1dc

Browse files
author
Ralph Castain
authored
Merge pull request #3356 from rhc54/topic/bind
Use the node index to compare to daemon vpid when identifying procs to bind
2 parents 31ad453 + bb1aaa3 commit 3f5a1dc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,9 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer,
423423
if (!ORTE_FLAG_TEST(pptr, ORTE_PROC_FLAG_LOCAL)) {
424424
/* not on the local list */
425425
OPAL_OUTPUT_VERBOSE((5, orte_odls_base_framework.framework_output,
426-
"%s adding proc %s to my local list",
426+
"%s[%s:%d] adding proc %s to my local list",
427427
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
428+
__FILE__, __LINE__,
428429
ORTE_NAME_PRINT(&pptr->name)));
429430
/* keep tabs of the number of local procs */
430431
jdata->num_local_procs++;
@@ -464,8 +465,9 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer,
464465
if (!ORTE_FLAG_TEST(pptr, ORTE_PROC_FLAG_LOCAL)) {
465466
/* not on the local list */
466467
OPAL_OUTPUT_VERBOSE((5, orte_odls_base_framework.framework_output,
467-
"%s adding proc %s to my local list",
468+
"%s[%s:%d] adding proc %s to my local list",
468469
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
470+
__FILE__, __LINE__,
469471
ORTE_NAME_PRINT(&pptr->name)));
470472
/* keep tabs of the number of local procs */
471473
jdata->num_local_procs++;

orte/mca/rmaps/base/rmaps_base_binding.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,12 +843,15 @@ int orte_rmaps_base_compute_bindings(orte_job_t *jdata)
843843
*/
844844
execute:
845845
/* initialize */
846+
opal_output_verbose(5, orte_rmaps_base_framework.framework_output,
847+
"mca:rmaps: computing bindings for job %s",
848+
ORTE_JOBID_PRINT(jdata->jobid));
846849

847850
for (i=0; i < jdata->map->nodes->size; i++) {
848851
if (NULL == (node = (orte_node_t*)opal_pointer_array_get_item(jdata->map->nodes, i))) {
849852
continue;
850853
}
851-
if (!orte_no_vm && (int)ORTE_PROC_MY_NAME->vpid != i) {
854+
if (!orte_no_vm && (int)ORTE_PROC_MY_NAME->vpid != node->index) {
852855
continue;
853856
}
854857
if (!orte_do_not_launch) {

0 commit comments

Comments
 (0)