|
| 1 | +/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ |
1 | 2 | /* |
2 | 3 | * Copyright (c) 2006-2007 The Trustees of Indiana University and Indiana |
3 | 4 | * University Research and Technology |
|
9 | 10 | * All rights reserved. |
10 | 11 | * Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved. |
11 | 12 | * Copyright (c) 2013 Sandia National Laboratories. All rights reserved. |
| 13 | + * Copyright (c) 2015 Los Alamos National Security, LLC. All rights |
| 14 | + * reserved. |
12 | 15 | * $COPYRIGHT$ |
13 | 16 | * |
14 | 17 | * Additional copyrights may follow |
@@ -101,14 +104,6 @@ mca_pml_cm_component_register(void) |
101 | 104 | MCA_BASE_VAR_SCOPE_READONLY, |
102 | 105 | &ompi_pml_cm.free_list_inc); |
103 | 106 |
|
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 | | - |
112 | 107 | return OPAL_SUCCESS; |
113 | 108 | } |
114 | 109 |
|
@@ -143,27 +138,14 @@ mca_pml_cm_component_init(int* priority, |
143 | 138 | { |
144 | 139 | int ret; |
145 | 140 |
|
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; |
151 | | - opal_output_verbose( 10, 0, |
| 141 | + *priority = -1; |
| 142 | + |
| 143 | + opal_output_verbose( 10, 0, |
152 | 144 | "in cm pml priority is %d\n", *priority); |
153 | 145 | /* find a useable MTL */ |
154 | | - ret = ompi_mtl_base_select(enable_progress_threads, enable_mpi_threads); |
155 | | - if (OMPI_SUCCESS != ret) { |
156 | | - *priority = -1; |
| 146 | + ret = ompi_mtl_base_select(enable_progress_threads, enable_mpi_threads, priority); |
| 147 | + if (OMPI_SUCCESS != ret) { |
157 | 148 | 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 | | - /* |
162 | | - * If MTL is MXM or PSM then up our priority |
163 | | - * For every other communication layer having MTLs and BTLs, the user/admin |
164 | | - * may still select PML/ob1 (BTLs) or PML/cm (MTLs) if preferable for the app/site. |
165 | | - */ |
166 | | - *priority = 30; |
167 | 149 | } |
168 | 150 |
|
169 | 151 |
|
|
0 commit comments