From 668aa15ddadec9b46863e55d5c327a353a7421bf Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sat, 22 Sep 2018 18:48:58 -0400 Subject: [PATCH] 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 --- ompi/mca/pml/base/pml_base_select.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ompi/mca/pml/base/pml_base_select.c b/ompi/mca/pml/base/pml_base_select.c index 258e105a84..fbd1bae012 100644 --- a/ompi/mca/pml/base/pml_base_select.c +++ b/ompi/mca/pml/base/pml_base_select.c @@ -193,6 +193,14 @@ int mca_pml_base_select(bool enable_progress_threads, modex_reqd = true; } + /* Save the winner */ + + mca_pml_base_selected_component = *best_component; + mca_pml = *best_module; + opal_output_verbose( 10, ompi_pml_base_framework.framework_output, + "select: component %s selected", + mca_pml_base_selected_component.pmlm_version.mca_component_name ); + /* Finalize all non-selected components */ for (item = opal_list_remove_first(&opened); @@ -239,14 +247,6 @@ int mca_pml_base_select(bool enable_progress_threads, } #endif - /* Save the winner */ - - mca_pml_base_selected_component = *best_component; - mca_pml = *best_module; - opal_output_verbose( 10, ompi_pml_base_framework.framework_output, - "select: component %s selected", - mca_pml_base_selected_component.pmlm_version.mca_component_name ); - /* This base function closes, unloads, and removes from the available list all unselected components. The available list will contain only the selected component. */