1
1

Few cleanups in Rank_File component + fixed opal_paffinity_slot_list without rankfile

This commit was SVN r18249.
Этот коммит содержится в:
Lenny Verkhovsky 2008-04-23 13:34:05 +00:00
родитель eb5f5d77cc
Коммит 456ce6c4da
2 изменённых файлов: 5 добавлений и 16 удалений

Просмотреть файл

@ -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");