Skip to content

Commit 668aa15

Browse files
committed
Early selection of the best PML.
With this patch the best PML is selected earlier, before finalizing the others PML. This provides a simpler mechanism to intercept and highjack the PML (as done in the monitoring PML) Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
1 parent 6213d23 commit 668aa15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ompi/mca/pml/base/pml_base_select.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ int mca_pml_base_select(bool enable_progress_threads,
193193
modex_reqd = true;
194194
}
195195

196+
/* Save the winner */
197+
198+
mca_pml_base_selected_component = *best_component;
199+
mca_pml = *best_module;
200+
opal_output_verbose( 10, ompi_pml_base_framework.framework_output,
201+
"select: component %s selected",
202+
mca_pml_base_selected_component.pmlm_version.mca_component_name );
203+
196204
/* Finalize all non-selected components */
197205

198206
for (item = opal_list_remove_first(&opened);
@@ -239,14 +247,6 @@ int mca_pml_base_select(bool enable_progress_threads,
239247
}
240248
#endif
241249

242-
/* Save the winner */
243-
244-
mca_pml_base_selected_component = *best_component;
245-
mca_pml = *best_module;
246-
opal_output_verbose( 10, ompi_pml_base_framework.framework_output,
247-
"select: component %s selected",
248-
mca_pml_base_selected_component.pmlm_version.mca_component_name );
249-
250250
/* This base function closes, unloads, and removes from the
251251
available list all unselected components. The available list will
252252
contain only the selected component. */

0 commit comments

Comments
 (0)