Skip to content

Commit 90da0de

Browse files
authored
Merge pull request open-mpi#4958 from karasevb/3.1_host_filtering
v3.1.x: plm/base: fixed the hosts filtering
2 parents b366a29 + c08ea6f commit 90da0de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orte/mca/plm/base/plm_base_launch_support.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,6 +2183,11 @@ int orte_plm_base_setup_virtual_machine(orte_job_t *jdata)
21832183
if (!ORTE_FLAG_TEST(node, ORTE_NODE_FLAG_MAPPED)) {
21842184
opal_list_remove_item(&nodes, item);
21852185
OBJ_RELEASE(item);
2186+
} else {
2187+
/* The filtering logic sets this flag only for nodes which
2188+
* are kept after filtering. This flag will be subsequently
2189+
* used in rmaps components and must be reset here */
2190+
ORTE_FLAG_UNSET(node, ORTE_NODE_FLAG_MAPPED);
21862191
}
21872192
item = next;
21882193
}

0 commit comments

Comments
 (0)