Silence Coverity warning
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
1e8add52d7
Коммит
d2040497b8
@ -90,6 +90,11 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata,
|
|||||||
} else if (0 < orte_rmaps_base_n_pernode) {
|
} else if (0 < orte_rmaps_base_n_pernode) {
|
||||||
num_procs_to_assign = orte_rmaps_base_n_pernode;
|
num_procs_to_assign = orte_rmaps_base_n_pernode;
|
||||||
} else if (0 < orte_rmaps_base_n_persocket) {
|
} 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);
|
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 {
|
} else {
|
||||||
/* assign a number of procs equal to the number of available slots */
|
/* assign a number of procs equal to the number of available slots */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user