1
1

Merge pull request #5111 from rhc54/topic/silence

Silence warning
Этот коммит содержится в:
Ralph Castain 2018-04-27 08:57:32 -07:00 коммит произвёл GitHub
родитель dc0f984743 d2040497b8
Коммит 0552d12771
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -378,7 +378,7 @@ static int rank_by(orte_job_t *jdata,
* algorithm, but this works for now.
*/
i = 0;
while (cnt < app->num_procs && i < node->num_procs) {
while (cnt < app->num_procs && i < (int)node->num_procs) {
/* get the next object */
obj = (hwloc_obj_t)opal_pointer_array_get_item(&objs, i % num_objs);
if (NULL == obj) {

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

@ -90,6 +90,11 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata,
} else if (0 < orte_rmaps_base_n_pernode) {
num_procs_to_assign = orte_rmaps_base_n_pernode;
} else if (0 < orte_rmaps_base_n_persocket) {
if (NULL == node->topology) {
orte_show_help("help-orte-rmaps-ppr.txt", "ppr-topo-missing",
true, node->name);
return ORTE_ERR_SILENT;
}
num_procs_to_assign = orte_rmaps_base_n_persocket * opal_hwloc_base_get_nbobjs_by_type(node->topology->topo, HWLOC_OBJ_PACKAGE, 0, OPAL_HWLOC_AVAILABLE);
} else {
/* assign a number of procs equal to the number of available slots */