1
1

Selectign Maffinity only if Paffinity selected fix

This commit was SVN r18797.
Этот коммит содержится в:
Lenny Verkhovsky 2008-07-03 13:39:34 +00:00
родитель 7897db314e
Коммит ba1fa73881
2 изменённых файлов: 11 добавлений и 11 удалений

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

@ -331,18 +331,18 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
}
/* Setup process affinity */
if (OMPI_SUCCESS != (ret = opal_paffinity_base_slot_list_set((long)ORTE_PROC_MY_NAME->vpid))) {
error = "opal_paffinity_base_slot_list_set: error slot_list assigning";
goto error;
} else {
/* If we were able to set processor affinity, try setting
up memory affinity */
if ( OPAL_SUCCESS == (ret = opal_paffinity_base_slot_list_set((long)ORTE_PROC_MY_NAME->vpid))) {
/* If we were able to set processor affinity, try setting up memory affinity */
if (OPAL_SUCCESS == opal_maffinity_base_open() &&
OPAL_SUCCESS == opal_maffinity_base_select()) {
ompi_mpi_maffinity_setup = true;
}
}
if ( OPAL_ERROR == ret ){
error = "opal_paffinity_base_slot_list_set: error slot_list assigning";
goto error;
}
/* initialize datatypes. This step should be done early as it will
* create the local convertor and local arch used in the proc
* init.

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

@ -343,13 +343,13 @@ int opal_paffinity_base_slot_list_set(long rank)
if (rc >= 0) {
if (OPAL_SUCCESS == mca_base_param_lookup_string(rc, &slot_str)) {
if (NULL == slot_str) {
return OPAL_SUCCESS;
return OPAL_ERR_BAD_PARAM;
}
}
}else{
return OPAL_SUCCESS;
}
if (0 == strcmp("", slot_str)){
return OPAL_ERR_BAD_PARAM;
}
opal_output_verbose(5, opal_paffinity_base_output, "paffinity slot assignment: slot_list == %s", slot_str);
item = opal_argv_split (slot_str, ',');