|
| 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 |
@@ -143,27 +146,26 @@ mca_pml_cm_component_init(int* priority, |
143 | 146 | { |
144 | 147 | int ret; |
145 | 148 |
|
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, |
| 149 | + opal_output_verbose( 10, 0, |
152 | 150 | "in cm pml priority is %d\n", *priority); |
153 | 151 | /* find a useable MTL */ |
154 | 152 | ret = ompi_mtl_base_select(enable_progress_threads, enable_mpi_threads); |
155 | | - if (OMPI_SUCCESS != ret) { |
| 153 | + if (OMPI_SUCCESS != ret) { |
156 | 154 | *priority = -1; |
157 | 155 | return NULL; |
158 | 156 | } else if((strcmp(ompi_mtl_base_selected_component->mtl_version.mca_component_name, "psm") == 0) || |
159 | 157 | (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)) { |
| 158 | + (strcmp(ompi_mtl_base_selected_component->mtl_version.mca_component_name, "mxm") == 0) || |
| 159 | + (strcmp(ompi_mtl_base_selected_component->mtl_version.mca_component_name, "ofi") == 0) || |
| 160 | + (strcmp(ompi_mtl_base_selected_component->mtl_version.mca_component_name, "portals4") == 0)) { |
161 | 161 | /* |
162 | 162 | * If MTL is MXM or PSM then up our priority |
163 | 163 | * For every other communication layer having MTLs and BTLs, the user/admin |
164 | 164 | * may still select PML/ob1 (BTLs) or PML/cm (MTLs) if preferable for the app/site. |
165 | 165 | */ |
166 | 166 | *priority = 30; |
| 167 | + } else { |
| 168 | + *priority = ompi_pml_cm.default_priority; |
167 | 169 | } |
168 | 170 |
|
169 | 171 |
|
|
0 commit comments