1
1
Этот коммит содержится в:
Ralph Castain 2015-04-30 20:49:28 -07:00
родитель 7d1980ba83
Коммит 0bb73645f0

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

@ -441,12 +441,13 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata)
{ {
hwloc_obj_t bd=NULL;; hwloc_obj_t bd=NULL;;
memset(tmp1, 0, 1024);
orte_get_attribute(&proc->attributes, ORTE_PROC_HWLOC_BOUND, (void**)&bd, OPAL_PTR); orte_get_attribute(&proc->attributes, ORTE_PROC_HWLOC_BOUND, (void**)&bd, OPAL_PTR);
if (NULL == bd) { if (NULL == bd) {
(void)strncpy(tmp1, "UNBOUND", strlen("UNBOUND")); (void)strncpy(tmp1, "UNBOUND", strlen("UNBOUND"));
} else { } else {
if (OPAL_ERR_NOT_BOUND == opal_hwloc_base_cset2mapstr(tmp1, sizeof(tmp1), node->topology, bd->cpuset)) { if (OPAL_ERR_NOT_BOUND == opal_hwloc_base_cset2mapstr(tmp1, sizeof(tmp1), node->topology, bd->cpuset)) {
(void)strncpy(tmp1, "UNBOUND", strlen("UNBOUND")); (void)strncpy(tmp1, "UNBOUND", strlen("UNBOUND"));
} }
} }
opal_output(orte_clean_output, "\t\t<process rank=%s app_idx=%ld local_rank=%lu node_rank=%lu binding=%s>", opal_output(orte_clean_output, "\t\t<process rank=%s app_idx=%ld local_rank=%lu node_rank=%lu binding=%s>",