Few cleanups in Rank_File component + fixed opal_paffinity_slot_list without rankfile
This commit was SVN r18249.
Этот коммит содержится в:
родитель
eb5f5d77cc
Коммит
456ce6c4da
@ -76,6 +76,9 @@ static int map_app_by_user_map(
|
||||
orte_std_cntr_t round_cnt;
|
||||
|
||||
OPAL_TRACE(2);
|
||||
if ( NULL == orte_rmaps_rank_file_path ) {
|
||||
return ORTE_SUCCESS;
|
||||
}
|
||||
|
||||
while (orte_rmaps_rank_file_num_alloc < app->num_procs) {
|
||||
/** see if any nodes remain unused and available. We need to do this check
|
||||
|
@ -77,26 +77,14 @@ orte_rmaps_rank_file_component_t mca_rmaps_rank_file_component = {
|
||||
static int orte_rmaps_rank_file_open(void)
|
||||
{
|
||||
int index, paffinity_alone;
|
||||
|
||||
mca_base_param_reg_int(&mca_rmaps_rank_file_component.super.rmaps_version, "priority",
|
||||
"Selection priority for Rank File RMAPS component",
|
||||
false, false, 1,
|
||||
&mca_rmaps_rank_file_component.priority);
|
||||
mca_rmaps_rank_file_component.priority = 0;
|
||||
|
||||
mca_base_param_reg_string(&mca_rmaps_rank_file_component.super.rmaps_version,
|
||||
"path",
|
||||
"The path to the rank mapping file",
|
||||
false, false, NULL, &orte_rmaps_rank_file_path);
|
||||
if (NULL != orte_rmaps_rank_file_path) {
|
||||
index = mca_base_param_find("rank_file",NULL,NULL);
|
||||
if ( OPAL_ERROR != index) {
|
||||
mca_base_param_set_string(index,"rank_file");
|
||||
}
|
||||
mca_base_param_lookup_string(index, &orte_rmaps_rank_file_path);
|
||||
/* if rankfile path is present than set higher priority to this component */
|
||||
mca_rmaps_rank_file_component.priority = 1000000;
|
||||
} else {
|
||||
mca_rmaps_rank_file_component.priority = 0;
|
||||
}
|
||||
|
||||
index = mca_base_param_find("opal", NULL, "paffinity_slot_list");
|
||||
@ -106,8 +94,6 @@ static int orte_rmaps_rank_file_open(void)
|
||||
mca_rmaps_rank_file_component.priority = 1000000;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mca_rmaps_rank_file_component.priority = 0;
|
||||
}
|
||||
|
||||
index = mca_base_param_find("opal", NULL, "paffinity_alone");
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user