@@ -101,14 +101,6 @@ mca_pml_cm_component_register(void)
101101 MCA_BASE_VAR_SCOPE_READONLY ,
102102 & ompi_pml_cm .free_list_inc );
103103
104- ompi_pml_cm .default_priority = 10 ;
105- (void ) mca_base_component_var_register (& mca_pml_cm_component .pmlm_version , "priority" ,
106- "CM PML selection priority" ,
107- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
108- OPAL_INFO_LVL_9 ,
109- MCA_BASE_VAR_SCOPE_READONLY ,
110- & ompi_pml_cm .default_priority );
111-
112104 return OPAL_SUCCESS ;
113105}
114106
@@ -143,32 +135,16 @@ mca_pml_cm_component_init(int* priority,
143135{
144136 int ret ;
145137
146- if ((* priority ) > ompi_pml_cm .default_priority ) {
147- * priority = ompi_pml_cm .default_priority ;
148- return NULL ;
149- }
150- * priority = ompi_pml_cm .default_priority ;
138+ * priority = -1 ;
139+
151140 opal_output_verbose ( 10 , 0 ,
152141 "in cm pml priority is %d\n" , * priority );
153142 /* find a useable MTL */
154- ret = ompi_mtl_base_select (enable_progress_threads , enable_mpi_threads );
143+ ret = ompi_mtl_base_select (enable_progress_threads , enable_mpi_threads , priority );
155144 if (OMPI_SUCCESS != ret ) {
156- * priority = -1 ;
157145 return NULL ;
158- } else if ((strcmp (ompi_mtl_base_selected_component -> mtl_version .mca_component_name , "psm" ) == 0 ) ||
159- (strcmp (ompi_mtl_base_selected_component -> mtl_version .mca_component_name , "psm2" ) == 0 ) ||
160- (strcmp (ompi_mtl_base_selected_component -> mtl_version .mca_component_name , "mxm" ) == 0 ) ||
161- (strcmp (ompi_mtl_base_selected_component -> mtl_version .mca_component_name , "ofi" ) == 0 ) ||
162- (strcmp (ompi_mtl_base_selected_component -> mtl_version .mca_component_name , "portals4" ) == 0 )) {
163- /*
164- * If MTL is MXM or PSM then up our priority
165- * For every other communication layer having MTLs and BTLs, the user/admin
166- * may still select PML/ob1 (BTLs) or PML/cm (MTLs) if preferable for the app/site.
167- */
168- * priority = 30 ;
169146 }
170147
171-
172148 if (ompi_mtl -> mtl_flags & MCA_MTL_BASE_FLAG_REQUIRE_WORLD ) {
173149 ompi_pml_cm .super .pml_flags |= MCA_PML_BASE_FLAG_REQUIRE_WORLD ;
174150 }
0 commit comments