Changeset 5667
- Timestamp:
- 11/02/09 18:10:03 (3 weeks ago)
- Location:
- mpich2/trunk/src
- Files:
-
- 2 modified
-
include/mpiimpl.h (modified) (1 diff)
-
mpid/ch3/src/mpid_vc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/src/include/mpiimpl.h
r5665 r5667 63 63 #endif 64 64 65 /* Default PMI version to use */ 66 #define MPIU_DEFAULT_PMI_VERSION 1 67 #define MPIU_DEFAULT_PMI_SUBVERSION 1 65 68 66 69 /* This allows us to keep names local to a single file when we can use -
mpich2/trunk/src/mpid/ch3/src/mpid_vc.c
r5664 r5667 1086 1086 int no_local = 0; 1087 1087 int odd_even_cliques = 0; 1088 int pmi_version = MPIU_DEFAULT_PMI_VERSION, pmi_subversion = MPIU_DEFAULT_PMI_SUBVERSION; 1088 1089 MPIU_CHKLMEM_DECL(4); 1090 1091 /* See if the user wants to override our default values */ 1092 MPIU_GetEnvInt("PMI_VERSION", &pmi_version); 1093 MPIU_GetEnvInt("PMI_SUBVERSION", &pmi_subversion); 1089 1094 1090 1095 if (pg->size == 1) { … … 1189 1194 1190 1195 /* FIXME 'PMI_process_mapping' only applies for the original PG (MPI_COMM_WORLD) */ 1191 pmi_errno = PMI_KVS_Get(kvs_name, "PMI_process_mapping", value, val_max_sz); 1192 if (pmi_errno == 0) { 1193 int did_map = 0; 1194 int num_nodes = 0; 1195 /* this code currently assumes pg is comm_world */ 1196 mpi_errno = populate_ids_from_mapping(value, &num_nodes, pg, &did_map); 1197 if (mpi_errno) MPIU_ERR_POP(mpi_errno); 1198 g_num_nodes = num_nodes; 1199 if (did_map) { 1200 goto fn_exit; 1196 if (pmi_version == 1 && pmi_subversion == 1) { 1197 pmi_errno = PMI_KVS_Get(kvs_name, "PMI_process_mapping", value, val_max_sz); 1198 if (pmi_errno == 0) { 1199 int did_map = 0; 1200 int num_nodes = 0; 1201 /* this code currently assumes pg is comm_world */ 1202 mpi_errno = populate_ids_from_mapping(value, &num_nodes, pg, &did_map); 1203 if (mpi_errno) MPIU_ERR_POP(mpi_errno); 1204 g_num_nodes = num_nodes; 1205 if (did_map) { 1206 goto fn_exit; 1207 } 1208 else { 1209 MPIU_DBG_MSG_S(CH3_OTHER,TERSE,"did_map==0, unable to populate node ids from mapping=%s",value); 1210 } 1211 /* else fall through to O(N^2) PMI_KVS_Gets version */ 1201 1212 } 1202 1213 else { 1203 MPIU_DBG_MSG _S(CH3_OTHER,TERSE,"did_map==0, unable to populate node ids from mapping=%s",value);1214 MPIU_DBG_MSG(CH3_OTHER,TERSE,"unable to obtain the 'PMI_process_mapping' PMI key"); 1204 1215 } 1205 /* else fall through to O(N^2) PMI_KVS_Gets version */1206 }1207 else {1208 MPIU_DBG_MSG(CH3_OTHER,TERSE,"unable to obtain the 'PMI_process_mapping' PMI key");1209 1216 } 1210 1217
